1 |
include ../Makefile.inc |
2 |
|
3 |
INCLUDE = ../headers |
4 |
CP_OBJ = mpiBASS.o mpiSimulation.o mpiForceField.o |
5 |
F_OBJ = mpiSimulation_module.o |
6 |
|
7 |
all: $(LIBDIR)/$(LIBNAME) |
8 |
|
9 |
$(LIBDIR)/$(LIBNAME): $(CP_OBJ) $(F_OBJ) |
10 |
ar -crsv $@ $? |
11 |
|
12 |
mpiBASS.o: $(INCLUDE)/mpiBASS.h mpiBASS.c |
13 |
$(CC) $(CFLAGS) -I$(INCLUDE) -c mpiBASS.c |
14 |
|
15 |
mpiForceField.o: $(INCLUDE)/mpiForceField.h mpiForceField.c |
16 |
$(CC) $(CFLAGS) -I$(INCLUDE) -c mpiForceField.c |
17 |
|
18 |
mpiSimulation.o: $(INCLUDE)/mpiSimulation.hpp mpiSimulation.cpp |
19 |
$(CC_PLUS) $(CFLAGS) -I$(INCLUDE) -c mpiSimulation.cpp |
20 |
|
21 |
mpiSimulation_module.o: mpiSimulation_module.F90 |
22 |
$(FC) $(FFLAGS) -I$(INCLUDE) -c mpiSimulation_module.F90 |
23 |
|
24 |
clean: |
25 |
rm *.o *~ |