OBJECTS = libthreads.o schedule.o model.o threads.o librace.o action.o \
nodestack.o clockvector.o main.o snapshot-interface.o cyclegraph.o \
datarace.o impatomic.o cmodelint.o \
- snapshot.o malloc.o mymemory.o common.o mutex.o promise.o
+ snapshot.o malloc.o mymemory.o common.o mutex.o promise.o conditionvariable.o
CPPFLAGS += -Iinclude -I. -rdynamic
LDFLAGS = -ldl -lrt
tests: $(LIB_SO)
$(MAKE) -C $(TESTS_DIR)
+BENCHMARKS := benchmarks
+
+PHONY += benchmarks
+benchmarks: $(LIB_SO)
+ @if ! test -d $(BENCHMARKS); then \
+ echo "Directory $(BENCHMARKS) does not exist" && \
+ echo "Please clone the benchmarks repository" && \
+ echo && \
+ exit 1; \
+ fi
+ $(MAKE) -C $(BENCHMARKS)
+
.PHONY: $(PHONY)