diff options
| author | Florian Fischer <florian.fl.fischer@fau.de> | 2019-09-19 10:45:06 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fl.fischer@fau.de> | 2019-09-19 10:45:06 +0200 |
| commit | b121c1dabaf8d4bf686cce319f36a078463b0a80 (patch) | |
| tree | 29ca69b21a39f70cb7fe0763121f14ab97e0eebe /src/benchmarks/blowup/Makefile | |
| parent | 0e85d0b2fecb40be3239582bffd710358de08858 (diff) | |
| download | allocbench-b121c1dabaf8d4bf686cce319f36a078463b0a80.tar.gz allocbench-b121c1dabaf8d4bf686cce319f36a078463b0a80.zip | |
add blowup test
Blowup tests the described blowup problem of ptmalloc described in the
TCMalloc post.
Diffstat (limited to 'src/benchmarks/blowup/Makefile')
| -rw-r--r-- | src/benchmarks/blowup/Makefile | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/benchmarks/blowup/Makefile b/src/benchmarks/blowup/Makefile new file mode 100644 index 0000000..afb5f2a --- /dev/null +++ b/src/benchmarks/blowup/Makefile @@ -0,0 +1,25 @@ +OBJDIR ?= obj + +CC ?= gcc + +WARNFLAGS ?= -Wall -Wextra +COMMONFLAGS ?= -fno-builtin -fPIC -DPIC -pthread +OPTFLAGS ?= -O3 -DNDEBUG + +CFLAGS ?= $(OPTFLAGS) $(WARNFLAGS) $(COMMONFLAGS) + +LDFLAGS ?= -pthread -static-libgcc + +.PHONY = all clean + +all: $(OBJDIR)/blowup + +$(OBJDIR)/blowup: blowup.c | $(OBJDIR) + @echo compiling $@... + $(CC) $(LDFLAGS) $(CFLAGS) -o $@ $< + +$(OBJDIR): + mkdir -p $@ + +clean: + rm -rf $(OBJDIR) |
