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. --- src/benchmarks/falsesharing/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/benchmarks/falsesharing') diff --git a/src/benchmarks/falsesharing/Makefile b/src/benchmarks/falsesharing/Makefile index 7dec230..763864a 100644 --- a/src/benchmarks/falsesharing/Makefile +++ b/src/benchmarks/falsesharing/Makefile @@ -17,13 +17,15 @@ HEADER = cpuinfo.h fred.h timer.h all: $(OBJDIR)/cache-thrash $(OBJDIR)/cache-scratch $(OBJDIR)/cache-thrash: cache-thrash.cc $(HEADER) | $(OBJDIR) + @echo compiling $@... $(CXX) $(LDXXFLAGS) $(CXXFLAGS) -o $@ $< $(OBJDIR)/cache-scratch: cache-scratch.cc $(HEADER) | $(OBJDIR) + @echo compiling $@... $(CXX) $(LDXXFLAGS) $(CXXFLAGS) -o $@ $< $(OBJDIR): - mkdir $@ + mkdir -p $@ clean: rm -rf $(OBJDIR) -- cgit v1.2.3