aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2019-04-28 18:00:34 +0200
committerFlorian Fischer <florian.fl.fischer@fau.de>2019-04-28 18:00:34 +0200
commit3fce1d3f3c616eae0c319050276072932dd04d83 (patch)
tree9e68eca22061b2c51756a125502421ecbe91aa7e
parent74878db39a9247936d78def423c74c95ea088d00 (diff)
downloadallocbench-3fce1d3f3c616eae0c319050276072932dd04d83.tar.gz
allocbench-3fce1d3f3c616eae0c319050276072932dd04d83.zip
export make variables for subcalls
-rw-r--r--Makefile20
1 files changed, 10 insertions, 10 deletions
diff --git a/Makefile b/Makefile
index 36d3bd9..397d6ba 100644
--- a/Makefile
+++ b/Makefile
@@ -2,19 +2,19 @@ MAKEFILES = $(shell dirname $(shell find . -name Makefile ! -path ./Makefile ! -
OBJDIR = $(PWD)/build
-CC = gcc
-CXX = g++
+export CC = gcc
+export CXX = g++
-WARNFLAGS = -Wall -Wextra
-COMMONFLAGS = -fno-builtin -fPIC -DPIC -pthread
-OPTFLAGS = -O3 -DNDEBUG
-# OPTFLAGS = -O0 -g3
+export WARNFLAGS = -Wall -Wextra
+export COMMONFLAGS = -fno-builtin -fPIC -DPIC -pthread
+# export OPTFLAGS = -O3 -DNDEBUG
+export OPTFLAGS = -O0 -g
-CFLAGS = -I. $(OPTFLAGS) $(WARNFLAGS) $(COMMONFLAGS)
-CXXFLAGS = -std=c++11 $(CFLAGS) -fno-exceptions
+export CFLAGS = -I. $(OPTFLAGS) $(WARNFLAGS) $(COMMONFLAGS)
+export CXXFLAGS = -std=c++11 $(CFLAGS) -fno-exceptions
-LDFLAGS = -pthread -static-libgcc
-LDXXFLAGS = $(LDFLAGS) -static-libstdc++
+export LDFLAGS = -pthread -static-libgcc
+export LDXXFLAGS = $(LDFLAGS) -static-libstdc++
.PHONY: all clean $(MAKEFILES)
all: $(OBJDIR)/ccinfo $(MAKEFILES)