diff options
| author | Florian Fischer <florian.fl.fischer@fau.de> | 2019-05-15 21:27:05 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fl.fischer@fau.de> | 2019-05-15 21:27:05 +0200 |
| commit | 05b8e3e6dcb12df1e6897bbfc6ace6d5e6740c06 (patch) | |
| tree | 0aa57b58f76788584e1ae205d3290df2a42a3fa8 /src/benchmarks/t_test1/Makefile | |
| parent | 342764869b7cab91a24a998003fbbff032eea25d (diff) | |
| download | allocbench-05b8e3e6dcb12df1e6897bbfc6ace6d5e6740c06.tar.gz allocbench-05b8e3e6dcb12df1e6897bbfc6ace6d5e6740c06.zip | |
add ttest1 from ptmalloc
Diffstat (limited to 'src/benchmarks/t_test1/Makefile')
| -rw-r--r-- | src/benchmarks/t_test1/Makefile | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/src/benchmarks/t_test1/Makefile b/src/benchmarks/t_test1/Makefile new file mode 100644 index 0000000..109e9a6 --- /dev/null +++ b/src/benchmarks/t_test1/Makefile @@ -0,0 +1,37 @@ +# Makefile for t-test1 from ptmalloc, version 2 +# by Florian Fischer 2019 +# derived from +# Makefile for ptmalloc, version 2 +# by Wolfram Gloger 1996-1999, 2001, 2002, 2003, 2004, 2006 + +OBJDIR ?= obj + +CC ?= cc + +SYS_FLAGS = -D_GNU_SOURCE=1 +OPT_FLAGS ?= -g -O # -O2 +WARN_FLAGS ?= -Wall -Wstrict-prototypes + +# Flags for the test programs +T_FLAGS = -DTEST=1 + +# Thread flags. +# See the platform-specific targets below. +THR_FLAGS = -DUSE_TSD_DATA_HACK -D_REENTRANT +THR_LIBS = -lpthread + +RM = rm -f + +CFLAGS ?= $(SYS_FLAGS) $(OPT_FLAGS) $(WARN_FLAGS) $(THR_FLAGS) + +all: $(OBJDIR)/t-test1 + +$(OBJDIR)/t-test1: t-test1.c t-test.h | $(OBJDIR) + @echo compiling $@ + $(CC) $(CFLAGS) $(T_FLAGS) t-test1.c $(THR_LIBS) -o $@ + +$(OBJDIR): + mkdir -p $@ + +clean: + $(RM) -rf $(OBJDIR) |
