-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
30 lines (21 loc) · 1008 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
CPP = g++
CFLAGS = -Wall -Werror -Wextra -O3 -fPIC -std=c++11
INC = -Isrc
LIBS = -lm -lboost_thread -lboost_system
all: film3 contactrecomb
src/pdb.o: src/pdb.cpp
$(CPP) $(CFLAGS) $(INC) -c src/pdb.cpp -o src/pdb.o
src/ga.o: src/ga.cpp
$(CPP) $(CFLAGS) $(INC) -c src/ga.cpp -o src/ga.o
src/direct.o: src/direct.cpp
$(CPP) $(CFLAGS) $(INC) -c src/direct.cpp -o src/direct.o
src/film3.o: src/film3.cpp
$(CPP) -O3 -fPIC -Wno-write-strings -Wno-unused-result $(INC) -c src/film3.cpp -o src/film3.o
src/contactrecomb.o: src/contactrecomb.cpp
$(CPP) -O3 -fPIC -Wno-write-strings -Wno-unused-result $(INC) -c src/contactrecomb.cpp -o src/contactrecomb.o
film3: src/pdb.o src/ga.o src/direct.o src/film3.o
$(CPP) $(CFLAGS) $(INC) src/pdb.o src/ga.o src/direct.o src/film3.o ${LIBS} -o film3
contactrecomb: src/pdb.o src/ga.o src/direct.o src/contactrecomb.o
$(CPP) $(CFLAGS) $(INC) src/pdb.o src/ga.o src/direct.o src/contactrecomb.o ${LIBS} -o contactrecomb
clean:
rm film3 contactrecomb src/*.o