aboutsummaryrefslogtreecommitdiff
path: root/targets/Makefile
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2019-02-02 14:45:21 +0100
committerFlorian Fischer <florian.fl.fischer@fau.de>2019-02-02 14:45:21 +0100
commit8c12b0494aa241bb6ddf3779a99d2f5d6ededf73 (patch)
treeb7bcaf69bfc9c8d7933bcaaedc66a907a04c9ca6 /targets/Makefile
parent130765de719a3ddc475284e13749d09ff371a8e1 (diff)
downloadallocbench-8c12b0494aa241bb6ddf3779a99d2f5d6ededf73.tar.gz
allocbench-8c12b0494aa241bb6ddf3779a99d2f5d6ededf73.zip
rework build system #2: call make before executing any benchmark
Make scans the project directory for Makefiles and executes them. The targets should be build by the new targets/Makefile. All included Makefiles are now "quiet" by default.
Diffstat (limited to 'targets/Makefile')
-rw-r--r--targets/Makefile22
1 files changed, 22 insertions, 0 deletions
diff --git a/targets/Makefile b/targets/Makefile
new file mode 100644
index 0000000..5df4999
--- /dev/null
+++ b/targets/Makefile
@@ -0,0 +1,22 @@
+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)
+ @echo building targets
+
+$(OBJDIR):
+ mkdir $@
+
+clean:
+ rm -rf $(OBJDIR)