From 8676bdeadd162d8e3c1f27cc7ad9f7456496b0ce Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Thu, 27 Jun 2019 01:08:35 +0200 Subject: add draft of loop benchmark with two flavors plot_fixed is broken because of the three args TODO: implement usfull plots for n arg commands. --- src/benchmarks/loop/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/benchmarks/loop/Makefile') 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 $@ -- cgit v1.2.3