X-Git-Url: http://plrg.eecs.uci.edu/git/?p=cdsspec-compiler.git;a=blobdiff_plain;f=benchmark%2Fms-queue%2FMakefile;h=c697477bb65473d6df993ce0c74ed7e22922b473;hp=da3a0e46b3ee7f4c5d5a9e4f8165db58d00c1774;hb=574370fb84b50f462162260fda11eff80e90b867;hpb=18609d4482268ee61246f182a6a5cb1144e34573 diff --git a/benchmark/ms-queue/Makefile b/benchmark/ms-queue/Makefile index da3a0e4..c697477 100644 --- a/benchmark/ms-queue/Makefile +++ b/benchmark/ms-queue/Makefile @@ -1,17 +1,18 @@ -include ../benchmarks.mk +#DIRS := barrier mcs-lock mpmc-queue spsc-queue spsc-bugfix linuxrwlocks \ + dekker-fences chase-lev-deque ms-queue chase-lev-deque-bugfix \ + concurrent-hashmap seqlock spsc-example spsc-queue-scfence \ + treiber-stack -TESTNAME = main +DIRS := ms-queue concurrent-hashmap -HEADERS = my_queue.h -OBJECTS = main.o my_queue.o +.PHONY: $(DIRS) -all: $(TESTNAME) +all: $(DIRS) -$(TESTNAME): $(HEADERS) $(OBJECTS) - $(CC) -o $@ $(OBJECTS) $(CFLAGS) $(LDFLAGS) +clean: $(DIRS:%=clean-%) -%.o: %.c - $(CC) -c -o $@ $< $(CFLAGS) +$(DIRS): + $(MAKE) -C $@ -clean: - rm -f $(TESTNAME) *.o +clean-%: + -$(MAKE) -C $* clean