forked from code-mphi/ECOGEN
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
40 lines (29 loc) · 823 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#desactivation of the implicite rules
.SUFFIXES:
.PHONY: nonreg
#Definitions
EXECUTABLE = ECOGEN
CXX = mpicxx
CXXFLAGS = -O3 -std=c++11 -Wall -Wextra -Wpedantic #release
#CXXFLAGS = -g -std=c++11 -Wall -Wextra -Wpedantic #debug
#CXXFLAGS = -O3 -std=c++11 -Wall -Wextra -Wpedantic -fprofile-arcs -ftest-coverage #code coverage
#CXXFLAGS = -O3 -std=c++11 -Wall -Wextra -Wpedantic -pg #code profile
dirs = $(shell find . -type d)
SOURCES = $(foreach dir,$(dirs),$(wildcard $(dir)/*.cpp))
OBJETS = $(SOURCES:.cpp=.o)
all: $(OBJETS)
$(CXX) $^ -o $(EXECUTABLE) $(CXXFLAGS)
%o: %cpp
$(CXX) -c $< -o $@ $(CXXFLAGS)
###
depend:
makedepend $(SOURCES)
clean:
rm -rf $(OBJETS)
cleanres:
rm -rf ./results/*
#Use command: time make nonreg
nonreg:
@./nonreg/nonreg.sh || true
cleannonreg:
rm -rf ./nonreg/reports/*