mpmc-queue: makefile bugfix
[model-checker-benchmarks.git] / mpmc-queue / Makefile
index 07e2540..520fcf9 100644 (file)
@@ -1,11 +1,16 @@
 include ../benchmarks.mk
 
 TESTNAME = mpmc-queue
+TESTS = mpmc-queue mpmc-1r2w mpmc-2r1w
 
-all: $(TESTNAME)
+all: $(TESTS)
 
-$(TESTNAME): $(TESTNAME).cc $(TESTNAME).h
+mpmc-queue: CPPFLAGS += -DCONFIG_MPMC_READERS=2 -DCONFIG_MPMC_WRITERS=2
+mpmc-1r2w: CPPFLAGS += -DCONFIG_MPMC_READERS=1 -DCONFIG_MPMC_WRITERS=2
+mpmc-2r1w: CPPFLAGS += -DCONFIG_MPMC_READERS=2 -DCONFIG_MPMC_WRITERS=1
+
+$(TESTS): $(TESTNAME).cc $(TESTNAME).h
        $(CXX) -o $@ $< $(CPPFLAGS) $(LDFLAGS)
 
 clean:
-       rm -f $(TESTNAME) *.o
+       rm -f $(TESTS) *.o