diff options
Diffstat (limited to 'src/benchmarks/loop/Makefile')
| -rw-r--r-- | src/benchmarks/loop/Makefile | 6 |
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 $@ |
