472b7946ce29ee64a2cd46aebf1765904eb62d16
[model-checker-benchmarks.git] / mpmc-queue / Makefile
1 include ../benchmarks.mk
2
3 TESTNAME = mpmc-queue
4 TESTS = mpmc-queue mpmc-1r2w mpmc-2r1w
5 TESTS += mpmc-queue-noinit mpmc-1r2w-noinit mpmc-2r1w-noinit
6
7 all: $(TESTS)
8
9 mpmc-queue: CPPFLAGS += -DCONFIG_MPMC_READERS=2 -DCONFIG_MPMC_WRITERS=2
10 mpmc-1r2w: CPPFLAGS += -DCONFIG_MPMC_READERS=1 -DCONFIG_MPMC_WRITERS=2
11 mpmc-2r1w: CPPFLAGS += -DCONFIG_MPMC_READERS=2 -DCONFIG_MPMC_WRITERS=1
12 mpmc-queue-noinit: CPPFLAGS += -DCONFIG_MPMC_READERS=2 -DCONFIG_MPMC_WRITERS=2 -DCONFIG_MPMC_NO_INITIAL_ELEMENT
13 mpmc-1r2w-noinit: CPPFLAGS += -DCONFIG_MPMC_READERS=1 -DCONFIG_MPMC_WRITERS=2 -DCONFIG_MPMC_NO_INITIAL_ELEMENT
14 mpmc-2r1w-noinit: CPPFLAGS += -DCONFIG_MPMC_READERS=2 -DCONFIG_MPMC_WRITERS=1 -DCONFIG_MPMC_NO_INITIAL_ELEMENT
15
16 $(TESTS): $(TESTNAME).cc $(TESTNAME).h
17         $(CXX) -o $@ $< $(CPPFLAGS) $(LDFLAGS)
18
19 clean:
20         rm -f $(TESTS) *.o