1 |
|
include ../Makefile.inc |
2 |
|
|
3 |
+ |
|
4 |
|
INCLUDE = ../headers |
5 |
|
CP_OBJ = mpiBASS.o mpiSimulation.o mpiForceField.o |
6 |
+ |
F_OBJ = mpiSimulation_module.o |
7 |
|
|
8 |
< |
all: $(LIBDIR)/$(LIBNAME) |
8 |
> |
all: $(LIBDIR)/$(LIBNAME) f90_include |
9 |
|
|
10 |
< |
$(LIBDIR)/$(LIBNAME): $(CP_OBJ) |
10 |
> |
$(LIBDIR)/$(LIBNAME): $(CP_OBJ) $(F_OBJ) |
11 |
|
ar -crsv $@ $? |
12 |
|
|
13 |
|
mpiBASS.o: $(INCLUDE)/mpiBASS.h mpiBASS.c |
19 |
|
mpiSimulation.o: $(INCLUDE)/mpiSimulation.hpp mpiSimulation.cpp |
20 |
|
$(CC_PLUS) $(CFLAGS) -I$(INCLUDE) -c mpiSimulation.cpp |
21 |
|
|
22 |
+ |
mpiSimulation_module.o: mpiSimulation_module.F90 |
23 |
+ |
$(FC) $(FFLAGS) -I$(INCLUDE) -c mpiSimulation_module.F90 |
24 |
+ |
|
25 |
+ |
f90_include: |
26 |
+ |
cp *.mod ../f90_include |
27 |
+ |
|
28 |
|
clean: |
29 |
< |
rm *.o *~ |
29 |
> |
rm *.o *~ *.mod |