-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
35 lines (24 loc) · 933 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
CC = g++ -O3
EFILE = ./sop.x
OBJS = ./sop.o ./random_generator.o ./global.o ./energy.o ./io.o ./params.o ./neighbor_list.o ./cell_list.o
sop.x: $(OBJS)
@echo "linking ..."
$(CC) -o $(EFILE) $(OBJS)
sop.o: ./sop.h ./random_generator.h ./global.h ./energy.h ./io.h ./params.h ./neighbor_list.h ./cell_list.o
$(CC) -c ./sop.cpp -o ./sop.o
random_generator.o: ./random_generator.h
$(CC) -c ./random_generator.cpp -o ./random_generator.o
global.o: ./global.h ./random_generator.h
$(CC) -c ./global.cpp -o ./global.o
energy.o: ./global.h ./energy.h
$(CC) -c ./energy.cpp -o ./energy.o
io.o: ./global.h ./io.h
$(CC) -c ./io.cpp -o ./io.o
params.o: ./global.h ./params.h
$(CC) -c ./params.cpp -o ./params.o
neighbor_list.o: ./global.h ./neighbor_list.h
$(CC) -c ./neighbor_list.cpp -o ./neighbor_list.o
cell_list.o: ./global.h ./cell_list.h
$(CC) -c ./cell_list.cpp -o ./cell_list.o
clean:
rm -f $(OBJS) $(EFILE)