From 8c12b0494aa241bb6ddf3779a99d2f5d6ededf73 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Sat, 2 Feb 2019 14:45:21 +0100 Subject: 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. --- targets/Makefile | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 targets/Makefile (limited to 'targets') 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) -- cgit v1.2.3