4 |
|
#LD = ld |
5 |
|
#FC = ifc |
6 |
|
INCLUDE = ../headers |
7 |
< |
CP_OBJ = mpiInterface.o |
7 |
> |
CP_OBJ = mpiBASS.o mpiSimulation.o |
8 |
|
#CFLAGS = -s -static -O3 |
9 |
|
#CFLAGS = -mp -tpp6 -O3 |
10 |
|
|
11 |
|
LIBDIR = ../lib |
12 |
|
|
13 |
|
|
14 |
+ |
GLOBAL_DEPENDS = $(INCLUDE)/mpiBASS.h |
15 |
|
|
15 |
– |
GLOBAL_DEPENDS = $(INCLUDE)/mpiInterface.h |
16 |
– |
|
16 |
|
all: $(LIBDIR)/libmdtools.a |
17 |
|
|
18 |
|
$(LIBDIR)/libmdtools.a: $(CP_OBJ) |
19 |
|
ar -crsv $@ $? |
20 |
|
|
21 |
|
|
22 |
< |
mpiInterface.o: $(GLOBAL_DEPENDS) |
23 |
< |
$(CC) $(CFLAGS) -I$(INCLUDE) -c mpiInterface.c |
22 |
> |
mpiBASS.o: $(GLOBAL_DEPENDS) mpiBASS.c |
23 |
> |
$(CC) $(CFLAGS) -I$(INCLUDE) -c mpiBASS.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 *~ |