aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2019-06-27 01:25:41 +0200
committerFlorian Fischer <florian.fl.fischer@fau.de>2019-06-27 01:25:41 +0200
commit5de25aaac2358494469605ace1685307d294bdbf (patch)
tree5f386f3d2ad8d3f9907a4d459d7e3462d334600c /Makefile
parent23e77009bb8da35e2285c3a8f5913c192f9e009f (diff)
downloadallocbench-5de25aaac2358494469605ace1685307d294bdbf.tar.gz
allocbench-5de25aaac2358494469605ace1685307d294bdbf.zip
fix realloc micro benchmark for allocators returning null for realloc(ptr, 0)
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 2 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 397d6ba..6f9713e 100644
--- a/Makefile
+++ b/Makefile
@@ -7,8 +7,7 @@ export CXX = g++
export WARNFLAGS = -Wall -Wextra
export COMMONFLAGS = -fno-builtin -fPIC -DPIC -pthread
-# export OPTFLAGS = -O3 -DNDEBUG
-export OPTFLAGS = -O0 -g
+export OPTFLAGS = -O3 -DNDEBUG
export CFLAGS = -I. $(OPTFLAGS) $(WARNFLAGS) $(COMMONFLAGS)
export CXXFLAGS = -std=c++11 $(CFLAGS) -fno-exceptions
@@ -20,7 +19,7 @@ export LDXXFLAGS = $(LDFLAGS) -static-libstdc++
all: $(OBJDIR)/ccinfo $(MAKEFILES)
$(MAKEFILES):
- $(MAKE) -C $@ OBJDIR=$(OBJDIR)/$(shell echo $@ | sed s/src//)
+ $(MAKE) -C $@ OBJDIR=$(OBJDIR)$(shell echo $@ | sed s/src//)
$(OBJDIR)/ccinfo: | $(OBJDIR)
$(CC) -v 2> $@