1 |
< |
CC_PLUS = /usr/local/bin/gcc |
2 |
< |
LD = ld |
3 |
< |
FC = ifc |
1 |
> |
include ../Makefile.inc |
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 |
< |
Molecule.o |
11 |
< |
F_LIBS = |
12 |
< |
CP_LIBS = |
13 |
< |
F_FLAGS = -mp -O3 -tpp6 |
14 |
< |
C_FLAGS = -s -static -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 |
19 |
< |
|
20 |
< |
$(LIBDIR)/libmdtools.a: $(F_OBJ) $(CP_OBJ) |
14 |
> |
$(LIBDIR)/$(LIBNAME): $(F_OBJ) $(CP_OBJ) |
15 |
|
ar -crsv $@ $? |
16 |
|
|
23 |
– |
f_longRange.o: f_longRange.f90 |
24 |
– |
$(FC) $(F_FLAGS) -c f_longRange.f90 |
17 |
|
|
26 |
– |
f_LJ.o: f_LJ.f90 |
27 |
– |
$(FC) $(F_FLAGS) -c f_LJ.f90 |
28 |
– |
|
18 |
|
f_verlet_constrained.o: f_verlet_constrained.f |
19 |
< |
$(FC) $(F_FLAGS) -c f_verlet_constrained.f |
19 |
> |
$(FC) $(FFLAGS) -c f_verlet_constrained.f |
20 |
|
|
32 |
– |
f_VDW.o: f_VDW.f90 |
33 |
– |
$(FC) $(F_FLAGS) -c f_VDW.f90 |
21 |
|
|
22 |
< |
f_dipole.o: f_dipole.f90 |
23 |
< |
$(FC) $(F_FLAGS) -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) $(F_FLAGS) -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) $(F_FLAGS) -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) $(C_FLAGS) -I$(INCLUDE) -c Verlet.cpp |
43 |
> |
$(CC_PLUS) $(CFLAGS) -I$(INCLUDE) -c Verlet.cpp |
44 |
|
|
45 |
|
AllLong.o: $(INCLUDE)/LRI.hpp $(INCLUDE)/Atom.hpp $(INCLUDE)/SimInfo.hpp \ |
46 |
|
$(INCLUDE)/AbstractClasses.hpp AllLong.cpp |
47 |
< |
$(CC_PLUS) $(C_FLAGS) -I$(INCLUDE) -c AllLong.cpp |
47 |
> |
$(CC_PLUS) $(CFLAGS) -I$(INCLUDE) -c AllLong.cpp |
48 |
|
|
49 |
|
Bond.o : $(INCLUDE)/SRI.hpp $(INCLUDE)/Atom.hpp Bond.cpp |
50 |
< |
$(CC_PLUS) $(C_FLAGS) -I$(INCLUDE) -c Bond.cpp |
50 |
> |
$(CC_PLUS) $(CFLAGS) -I$(INCLUDE) -c Bond.cpp |
51 |
|
|
52 |
|
Bend.o : $(INCLUDE)/SRI.hpp $(INCLUDE)/Atom.hpp Bend.cpp |
53 |
< |
$(CC_PLUS) $(C_FLAGS) -I$(INCLUDE) -c Bend.cpp |
53 |
> |
$(CC_PLUS) $(CFLAGS) -I$(INCLUDE) -c Bend.cpp |
54 |
|
|
55 |
|
Torsion.o : $(INCLUDE)/SRI.hpp $(INCLUDE)/Atom.hpp Torsion.cpp |
56 |
< |
$(CC_PLUS) $(C_FLAGS) -I$(INCLUDE) -c Torsion.cpp |
56 |
> |
$(CC_PLUS) $(CFLAGS) -I$(INCLUDE) -c Torsion.cpp |
57 |
|
|
58 |
|
InitializeFromFile.o: $(INCLUDE)/ReadWrite.hpp $(INCLUDE)/Atom.hpp \ |
59 |
|
InitializeFromFile.cpp |
60 |
< |
$(CC_PLUS) $(C_FLAGS) -I$(INCLUDE) -c InitializeFromFile.cpp |
60 |
> |
$(CC_PLUS) $(CFLAGS) -I$(INCLUDE) -c InitializeFromFile.cpp |
61 |
|
|
62 |
|
DumpWriter.o: $(INCLUDE)/ReadWrite.hpp DumpWriter.cpp |
63 |
< |
$(CC_PLUS) $(C_FLAGS) -I$(INCLUDE) -c DumpWriter.cpp |
63 |
> |
$(CC_PLUS) $(CFLAGS) -I$(INCLUDE) -c DumpWriter.cpp |
64 |
|
|
65 |
|
StatWriter.o: $(INCLUDE)/ReadWrite.hpp StatWriter.cpp |
66 |
< |
$(CC_PLUS) $(C_FLAGS) -I$(INCLUDE) -c StatWriter.cpp |
66 |
> |
$(CC_PLUS) $(CFLAGS) -I$(INCLUDE) -c StatWriter.cpp |
67 |
|
|
68 |
|
BondExtensions.o : $(INCLUDE)/SRI.hpp $(INCLUDE)/Atom.hpp BondExtensions.cpp |
69 |
< |
$(CC_PLUS) $(C_FLAGS) -I$(INCLUDE) -c BondExtensions.cpp |
69 |
> |
$(CC_PLUS) $(CFLAGS) -I$(INCLUDE) -c BondExtensions.cpp |
70 |
|
|
71 |
|
BendExtensions.o : $(INCLUDE)/SRI.hpp $(INCLUDE)/Atom.hpp BendExtensions.cpp |
72 |
< |
$(CC_PLUS) $(C_FLAGS) -I$(INCLUDE) -c BendExtensions.cpp |
72 |
> |
$(CC_PLUS) $(CFLAGS) -I$(INCLUDE) -c BendExtensions.cpp |
73 |
|
|
74 |
|
TorsionExtensions.o : $(INCLUDE)/SRI.hpp $(INCLUDE)/Atom.hpp \ |
75 |
|
TorsionExtensions.cpp |
76 |
< |
$(CC_PLUS) $(C_FLAGS) -I$(INCLUDE) -c TorsionExtensions.cpp |
76 |
> |
$(CC_PLUS) $(CFLAGS) -I$(INCLUDE) -c TorsionExtensions.cpp |
77 |
|
|
78 |
|
Thermo.o: $(INCLUDE)/Thermo.hpp Thermo.cpp |
79 |
< |
$(CC_PLUS) $(C_FLAGS) -I$(INCLUDE) -c Thermo.cpp |
79 |
> |
$(CC_PLUS) $(CFLAGS) -I$(INCLUDE) -c Thermo.cpp |
80 |
|
|
81 |
|
DirectionalAtom.o: $(INCLUDE)/Atom.hpp DirectionalAtom.cpp |
82 |
< |
$(CC_PLUS) $(C_FLAGS) -I$(INCLUDE) -c DirectionalAtom.cpp |
82 |
> |
$(CC_PLUS) $(CFLAGS) -I$(INCLUDE) -c DirectionalAtom.cpp |
83 |
|
|
84 |
|
Symplectic.o: $(INCLUDE)/Integrator.hpp Symplectic.cpp |
85 |
< |
$(CC_PLUS) $(C_FLAGS) -I$(INCLUDE) -c Symplectic.cpp |
85 |
> |
$(CC_PLUS) $(CFLAGS) -I$(INCLUDE) -c Symplectic.cpp |
86 |
|
|
87 |
< |
Molecule.o : $(INCLUDE)/SRI.hpp $(INCLUDE)/Atom.hpp \ |
88 |
< |
$(INCLUDE)/Molecule.hpp Molecule.cpp |
92 |
< |
$(CC_PLUS) $(C_FLAGS) -I$(INCLUDE) -c Molecule.cpp |
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 |