forked from SeriousSamV/2D-Heat-Transfer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
25 lines (19 loc) · 741 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
headers = ./header/*.h
files = ./*cpp ./test/*.cpp ./definition/*.cxx
objects = ./lib/Nodes.a ./lib/NodesHelper.a
Ldir = -L/usr/lib/x86_64-linux-gnu
libs = -lboost_regex
def = ./definition/
G++ = g++ -std=c++1y -Og -Wall -pthread -Wl,--no-as-needed $(Ldir)
Gdbg = g++ -std=c++1y -Og -Wall -Wshadow -ggdb -pthread -Wl,--no-as-needed $(Ldir)
release = ./bin/main.out
all: ./bin/main.out
./bin/main.out: $(files) $(objects) main.cpp
$(G++) $(libs) $(objects) -o $(release) main.cpp
./lib/Nodes.a: $(headers) $(def)/Nodes.cxx
$(G++) -o ./lib/Nodes.a -c $(def)/Nodes.cxx
./lib/NodesHelper.a: $(headers) $(def)/NodesHelper.cxx
$(G++) -o ./lib/NodesHelper.a -c $(def)/NodesHelper.cxx
clean:
\rm $(objects) && \rm $(release)
.PHONEY: clean