aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2018-07-13 18:30:31 +0200
committerFlorian Fischer <florian.fl.fischer@fau.de>2018-07-13 18:30:31 +0200
commitbff09822125125d6eaf6d555ea7a6a8908bda79c (patch)
tree6a8d91e4a6a27b93ca28c3d1ea0cd9c7664c1b76 /Makefile
parent1c2da462246798b35731088ba54488c1e24e5c4c (diff)
downloadallocbench-bff09822125125d6eaf6d555ea7a6a8908bda79c.tar.gz
allocbench-bff09822125125d6eaf6d555ea7a6a8908bda79c.zip
add consumer producer benchmark
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 11 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 5614832..903aadb 100644
--- a/Makefile
+++ b/Makefile
@@ -26,12 +26,22 @@ OBJECTS = $(notdir $(CC_SOURCES:.cc=.o)) $(notdir $(C_SOURCES:.c=.o))
OBJPRE = $(addprefix $(OBJDIR)/,$(OBJECTS))
MAKEFILE_LIST = Makefile
-all: $(OBJDIR)/bench_loop
+all: $(OBJDIR)/bench_loop $(OBJDIR)/memusage $(OBJDIR)/bench_conprod
bench: all
@if test \( ! \( -d bench.d \) \) ;then mkdir -p bench.d;fi
bash -c "./bench.py"
+$(OBJDIR)/memusage: $(OBJDIR)/memusage.o
+ @echo "ld $@"
+ @if test \( ! \( -d $(@D) \) \) ;then mkdir -p $(@D);fi
+ $(VERBOSE) $(CC) -o $@ $^
+
+$(OBJDIR)/bench_conprod: $(OBJDIR)/bench_conprod.o
+ @echo "ld $@"
+ @if test \( ! \( -d $(@D) \) \) ;then mkdir -p $(@D);fi
+ $(VERBOSE) $(CC) -pthread -o $@ $^
+
$(OBJDIR)/bench_loop: $(OBJDIR)/bench_loop.o
@echo "ld $@"
@if test \( ! \( -d $(@D) \) \) ;then mkdir -p $(@D);fi