1 |
|
include ../Makefile.inc |
2 |
< |
#CC_PLUS = /usr/local/bin/gcc |
3 |
< |
#CC_PLUS = icc |
4 |
< |
#LD = ld |
5 |
< |
#FC = ifc |
2 |
> |
|
3 |
|
INCLUDE = ../headers |
4 |
< |
F_OBJ = f_VDW.o f_verlet_constrained.o f_LJ.o f_longRange.o f_dipole.o \ |
5 |
< |
f_reactionField.o f_ssdForces.o |
4 |
> |
F_OBJ = Linux_ifc_machdef.o atype_typedefs.o generic_atype_recombination.o \ |
5 |
> |
simulation_module.o lj_FF.o wrappers.o f_verlet_constrained.o |
6 |
> |
|
7 |
|
CP_OBJ = Bend.o Torsion.o Bond.o Verlet.o InitializeFromFile.o \ |
8 |
|
BondExtensions.o BendExtensions.o TorsionExtensions.o Thermo.o \ |
9 |
< |
DirectionalAtom.o AllLong.o DumpWriter.o StatWriter.o Symplectic.o |
10 |
< |
#F_LIBS = |
13 |
< |
#CP_LIBS = |
14 |
< |
FFLAGS = -mp -O3 -tpp6 |
15 |
< |
#CFLAGS = -s -static -O3 |
16 |
< |
CFLAGS = -mp -tpp6 -O3 |
9 |
> |
DirectionalAtom.o AllLong.o DumpWriter.o StatWriter.o Symplectic.o\ |
10 |
> |
SimInfo.o |
11 |
|
|
12 |
< |
LIBDIR = ../../../lib |
12 |
> |
all: $(LIBDIR)/$(LIBNAME) |
13 |
|
|
14 |
< |
all: $(LIBDIR)/libmdtools.a |
21 |
< |
|
22 |
< |
$(LIBDIR)/libmdtools.a: $(F_OBJ) $(CP_OBJ) |
14 |
> |
$(LIBDIR)/$(LIBNAME): $(F_OBJ) $(CP_OBJ) |
15 |
|
ar -crsv $@ $? |
16 |
|
|
25 |
– |
f_longRange.o: f_longRange.f90 |
26 |
– |
$(FC) $(FFLAGS) -c f_longRange.f90 |
17 |
|
|
28 |
– |
f_LJ.o: f_LJ.f90 |
29 |
– |
$(FC) $(FFLAGS) -c f_LJ.f90 |
30 |
– |
|
18 |
|
f_verlet_constrained.o: f_verlet_constrained.f |
19 |
|
$(FC) $(FFLAGS) -c f_verlet_constrained.f |
20 |
|
|
34 |
– |
f_VDW.o: f_VDW.f90 |
35 |
– |
$(FC) $(FFLAGS) -c f_VDW.f90 |
21 |
|
|
22 |
< |
f_dipole.o: f_dipole.f90 |
23 |
< |
$(FC) $(FFLAGS) -c f_dipole.f90 |
22 |
> |
Linux_ifc_machdef.o: Linux_ifc_machdep.F90 |
23 |
> |
$(FC) $(FFLAGS) -c Linux_ifc_machdep.F90 |
24 |
|
|
25 |
< |
f_reactionField.o: f_reactionField.f90 |
26 |
< |
$(FC) $(FFLAGS) -c f_reactionField.f90 |
25 |
> |
atype_typedefs.o: atype_typedefs.F90 Linux_ifc_machdef.o |
26 |
> |
$(FC) $(FFLAGS) -c atype_typedefs.F90 |
27 |
|
|
28 |
< |
f_ssdForces.o: f_ssdForces.f90 f_ssd.inc |
29 |
< |
$(FC) $(FFLAGS) -c f_ssdForces.f90 |
28 |
> |
generic_atype_recombination.o: generic_atype_recombination.F90 Linux_ifc_machdef.o atype_typedefs.o |
29 |
> |
$(FC) $(FFLAGS) -c generic_atype_recombination.F90 |
30 |
|
|
31 |
+ |
simulation_module.o:simulation_module.F90 Linux_ifc_machdef.o |
32 |
+ |
$(FC) $(FFLAGS) -c simulation_module.F90 |
33 |
+ |
|
34 |
+ |
lj_FF.o: lj_FF.F90 simulation_module.o generic_atype_recombination.o \ |
35 |
+ |
atype_typedefs.o Linux_ifc_machdef.o |
36 |
+ |
$(FC) $(FFLAGS) -c lj_FF.F90 |
37 |
+ |
|
38 |
+ |
wrappers.o: wrappers.F90 simulation_module.o |
39 |
+ |
$(FC) $(FFLAGS) -c wrappers.F90 |
40 |
+ |
|
41 |
|
Verlet.o: $(INCLUDE)/Integrator.hpp $(INCLUDE)/Atom.hpp \ |
42 |
|
$(INCLUDE)/SimInfo.hpp $(INCLUDE)/AbstractClasses.hpp Verlet.cpp |
43 |
|
$(CC_PLUS) $(CFLAGS) -I$(INCLUDE) -c Verlet.cpp |
84 |
|
Symplectic.o: $(INCLUDE)/Integrator.hpp Symplectic.cpp |
85 |
|
$(CC_PLUS) $(CFLAGS) -I$(INCLUDE) -c Symplectic.cpp |
86 |
|
|
87 |
+ |
SimInfo.o: $(INCLUDE)/SimInfo.hpp SimInfo.cpp |
88 |
+ |
$(CC_PLUS) $(CFLAGS) -I$(INCLUDE) -c SimInfo.cpp |
89 |
+ |
|
90 |
|
clean: |
91 |
|
rm *.o *~ work.pcl work.pc |