aboutsummaryrefslogtreecommitdiff
path: root/src/benchmarks/loop/Makefile
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2019-06-27 01:08:35 +0200
committerFlorian Fischer <florian.fl.fischer@fau.de>2019-06-27 01:08:35 +0200
commit8676bdeadd162d8e3c1f27cc7ad9f7456496b0ce (patch)
tree69ee5b183195e4fb72d60c6fd5e74a5b67d76859 /src/benchmarks/loop/Makefile
parent23e77009bb8da35e2285c3a8f5913c192f9e009f (diff)
downloadallocbench-loop_keep_allocs.tar.gz
allocbench-loop_keep_allocs.zip
add draft of loop benchmark with two flavorsloop_keep_allocs
plot_fixed is broken because of the three args TODO: implement usfull plots for n arg commands.
Diffstat (limited to 'src/benchmarks/loop/Makefile')
-rw-r--r--src/benchmarks/loop/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/benchmarks/loop/Makefile b/src/benchmarks/loop/Makefile
index b297933..9bcb247 100644
--- a/src/benchmarks/loop/Makefile
+++ b/src/benchmarks/loop/Makefile
@@ -12,12 +12,16 @@ LDFLAGS ?= -pthread -static-libgcc
.PHONY = all clean
-all: $(OBJDIR)/loop
+all: $(OBJDIR)/loop $(OBJDIR)/loopKeepAllocs
$(OBJDIR)/loop: loop.c | $(OBJDIR)
@echo compiling $@...
$(CC) $(LDFLAGS) $(CFLAGS) -o $@ $<
+$(OBJDIR)/loopKeepAllocs: loop.c | $(OBJDIR)
+ @echo compiling $@...
+ $(CC) $(LDFLAGS) -DKEEP_ALLOCS $(CFLAGS) -o $@ $<
+
$(OBJDIR):
mkdir -p $@