4 |
|
#LD = ld |
5 |
|
#FC = ifc |
6 |
|
INCLUDE = ../headers |
7 |
< |
CP_OBJ = mpiInterface.o |
7 |
> |
CP_OBJ = mpiInterface.o mpiSimulation.o |
8 |
|
#CFLAGS = -s -static -O3 |
9 |
|
#CFLAGS = -mp -tpp6 -O3 |
10 |
|
|
11 |
|
LIBDIR = ../lib |
12 |
|
|
13 |
|
|
14 |
– |
|
14 |
|
GLOBAL_DEPENDS = $(INCLUDE)/mpiInterface.h |
15 |
|
|
16 |
|
all: $(LIBDIR)/libmdtools.a |
19 |
|
ar -crsv $@ $? |
20 |
|
|
21 |
|
|
22 |
< |
mpiInterface.o: $(GLOBAL_DEPENDS) |
22 |
> |
mpiInterface.o: $(GLOBAL_DEPENDS) mpiInterface.c |
23 |
|
$(CC) $(CFLAGS) -I$(INCLUDE) -c mpiInterface.c |
24 |
|
|
25 |
+ |
mpiSimulation.o: $(INCLUDE)/mpiSimulation.hpp mpiSimulation.cpp |
26 |
+ |
$(CC_PLUS) $(CFLAGS) -I$(INCLUDE) -c mpiSimulation.cpp |
27 |
|
|
27 |
– |
|
28 |
|
clean: |
29 |
|
rm *.o *~ |