-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile.mpi
61 lines (36 loc) · 1.13 KB
/
Makefile.mpi
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
CC = mpicc
LD = mpicc
CPPFLAGS = -I.
CFLAGS = -O3
LDFLAGS =
LDLIBS =
EXEC = miniAMR.x
OBJS = block.o check_sum.o comm_block.o comm.o comm_parent.o comm_refine.o \
comm_util.o driver.o init.o main.o move.o pack.o plot.o profile.o \
rcb.o refine.o stencil.o target.o util.o
$(EXEC): $(OBJS)
$(LD) $(LDFLAGS) -o $@ $(OBJS) $(LDLIBS)
.c.o:
$(CC) $(CPPFLAGS) $(CFLAGS) -c $<
clean:
rm *.o miniAMR.x
# need dependencies
block.o: block.h proto.h comm.h timer.h
check_sum.o: block.h comm.h proto.h
comm_block.o: block.h comm.h proto.h
comm.o: block.h comm.h proto.h timer.h
comm_parent.o: block.h comm.h proto.h
comm_refine.o: block.h comm.h proto.h
comm_util.o: block.h comm.h proto.h
driver.o: block.h comm.h proto.h timer.h
init.o: block.h proto.h comm.h
main.o: block.h comm.h proto.h param.h
move.o: block.h comm.h proto.h
pack.o: block.h comm.h proto.h
plot.o: block.h comm.h proto.h
profile.o: block.h comm.h proto.h timer.h
rcb.o: block.h comm.h proto.h timer.h
refine.o: block.h comm.h proto.h timer.h
stencil.o: block.h comm.h proto.h
target.o: block.h comm.h proto.h timer.h
util.o: block.h comm.h proto.h