aboutsummaryrefslogtreecommitdiff
path: root/src/benchmarks/blowup/Makefile
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2019-09-19 10:45:06 +0200
committerFlorian Fischer <florian.fl.fischer@fau.de>2019-09-19 10:45:06 +0200
commitb121c1dabaf8d4bf686cce319f36a078463b0a80 (patch)
tree29ca69b21a39f70cb7fe0763121f14ab97e0eebe /src/benchmarks/blowup/Makefile
parent0e85d0b2fecb40be3239582bffd710358de08858 (diff)
downloadallocbench-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/Makefile25
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)