diff options
| author | Florian Fischer <florian.fl.fischer@fau.de> | 2019-08-25 00:07:02 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fl.fischer@fau.de> | 2019-08-25 00:07:02 +0200 |
| commit | 3998a3155b54c2e25ed059a292de8b1bdf9ca203 (patch) | |
| tree | ad8ade82b8df390262dd9226a78f7f09dbc0479d | |
| parent | 110bcf125084808a959d3d84c5593caee1ac5555 (diff) | |
| download | allocbench-3998a3155b54c2e25ed059a292de8b1bdf9ca203.tar.gz allocbench-3998a3155b54c2e25ed059a292de8b1bdf9ca203.zip | |
integrate cmake projects into the root Makefile
| -rw-r--r-- | Makefile | 10 | ||||
| -rw-r--r-- | src/benchmarks/cfrac/Makefile | 10 | ||||
| -rw-r--r-- | src/benchmarks/espresso/Makefile | 10 |
3 files changed, 8 insertions, 22 deletions
@@ -1,4 +1,5 @@ MAKEFILES = $(shell dirname $(shell find . -name Makefile ! -path ./Makefile ! -path "./build/*")) +CMAKELISTS = $(shell dirname $(shell find . -name CMakeLists.txt ! -path "./build/*")) OBJDIR = $(PWD)/build @@ -15,8 +16,13 @@ export CXXFLAGS = -std=c++11 $(CFLAGS) -fno-exceptions export LDFLAGS = -pthread -static-libgcc export LDXXFLAGS = $(LDFLAGS) -static-libstdc++ -.PHONY: all clean pylint $(MAKEFILES) -all: $(OBJDIR)/ccinfo $(MAKEFILES) +.PHONY: all clean pylint $(MAKEFILES) $(CMAKELISTS) +all: $(OBJDIR)/ccinfo $(MAKEFILES) $(CMAKELISTS) + +$(CMAKELISTS): + $(eval BENCHDIR=$(OBJDIR)$(shell echo $@ | sed s/src//)) + @if test \( ! \( -d $(BENCHDIR) \) \) ;then mkdir -p $(BENCHDIR);fi + cd $(BENCHDIR); cmake $(PWD)/$@; make $(MAKEFILES): $(MAKE) -C $@ OBJDIR=$(OBJDIR)$(shell echo $@ | sed s/src//) diff --git a/src/benchmarks/cfrac/Makefile b/src/benchmarks/cfrac/Makefile deleted file mode 100644 index 3c42b66..0000000 --- a/src/benchmarks/cfrac/Makefile +++ /dev/null @@ -1,10 +0,0 @@ -OBJDIR ?= obj - -.PHONY = all clean - -all: - cmake -S $(shell pwd) -B $(OBJDIR) - make -C $(OBJDIR) - -clean: - rm -rf $(OBJDIR) diff --git a/src/benchmarks/espresso/Makefile b/src/benchmarks/espresso/Makefile deleted file mode 100644 index 3c42b66..0000000 --- a/src/benchmarks/espresso/Makefile +++ /dev/null @@ -1,10 +0,0 @@ -OBJDIR ?= obj - -.PHONY = all clean - -all: - cmake -S $(shell pwd) -B $(OBJDIR) - make -C $(OBJDIR) - -clean: - rm -rf $(OBJDIR) |
