ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE/libmdtools/Makefile.in
(Generate patch)

Comparing trunk/OOPSE/libmdtools/Makefile.in (file contents):
Revision 891 by mmeineke, Fri Dec 19 20:36:35 2003 UTC vs.
Revision 1233 by gezelter, Fri Jun 4 02:38:23 2004 UTC

# Line 36 | Line 36 | SPRNG_INC=@SPRNG_INC@
36  
37   # SPRNG include path
38   SPRNG_INC=@SPRNG_INC@
39 +
40 + # Compile MPI code?
41 + USE_MPI=@USE_MPI@
42 +  
43 + # MPI include path
44 + MPI_INC_DIR=@MPI_INC_DIR@
45  
46 < # MPICH library path
47 < MPI_LIBDIR=@MPI_LIBDIR@
46 > # MPI include path
47 > MPI_F90_INC=@MPI_F90_INC@
48  
43 # MPICH library
44 MPI_LIB=@MPI_LIB@
45
46 # MPICH include path
47 MPI_INC=@MPI_INC@
48
49 # MODDIRFLAG
50 MODDIRFLAG=@MODDIRFLAG@
51
52 # MPI F90 Module path
53 MPI_F90_MODS=@MPI_F90_MODS@
54
49   # Compiler dependent Fortran module
50   FLIBS_EXTRA = @F90LIBS@
51  
# Line 127 | Line 121 | MPI_INCLUDES= -I$(MPI_INC) $(MODDIRFLAG)$(MPI_F90_MODS
121   # include paths starting with "." are all relative to the SUBDIRS!!!
122  
123   INCLUDES= -I.. -I../../libBASS $(SPRNG_INC)
124 < MPI_INCLUDES= -I$(MPI_INC) $(MODDIRFLAG)$(MPI_F90_MODS)
125 < F90_INCLUDES= -I/usr/local/include
124 > MPI_INCLUDES= -I$(MPI_INC_DIR)
125 > MPI_F90_INCLUDES= -I$(MPI_F90_INC)
126  
127 < CFLAGS=$(CFLAGS_C) $(INCLUDES) $(DECLARE) $(MPI_INCLUDES) $(FUNCWRAP)
128 < CXXFLAGS=$(CXXFLAGS_C) $(OOPSE_TEMPLATE_FLAGS) $(EXTRA_CC_FLAG) $(INCLUDES) $(DECLARE) $(FUNCWRAP)
127 > CFLAGS=$(CFLAGS_C) $(INCLUDES) $(DECLARE)
128 > CXXFLAGS=$(CXXFLAGS_C) $(OOPSE_TEMPLATE_FLAGS) $(EXTRA_CC_FLAG) $(INCLUDES) $(DECLARE)
129   FFLAGS=$(PREPFLAG) $(FFLAGS_C)
130 < F90FLAGS=$(PREPFLAG) $(F90FLAGS_C) $(F90_INCLUDES)
130 > F90FLAGS=$(PREPFLAG) $(F90FLAGS_C) -I../../libBASS
131   DEPFLAGS=$(CFLAGS_C) -I. -I../libBASS $(SPRNG_INC) $(MPI_INCLUDES)
132  
133   MPI_CFLAGS=$(CFLAGS) $(MPI_INCLUDES) $(MPI_DECLARE)
134   MPI_CXXFLAGS=$(CXXFLAGS) $(MPI_INCLUDES) $(MPI_DECLARE)
135 < MPI_F90FLAGS=$(F90FLAGS) $(PREPDEFFLAG)$(MPI_DECLARE) $(MPI_INCLUDES)
135 > MPI_F90FLAGS=$(F90FLAGS) $(MPI_F90_INCLUDES) $(PREPDEFFLAG)$(MPI_DECLARE)
136  
137   SRC_DIR := ..
138  
# Line 166 | Line 160 | C_FILES = \
160  
161   C_FILES = \
162          $(DIR)/mpiForceField.c \
163 +        $(DIR)/MatVec3.c \
164          $(DIR)/fInfo.c
165  
166   CXX_FILES = \
167 <        $(DIR)/Atom.cpp \
167 >        $(DIR)/Atom.cpp \
168 >        $(DIR)/AtomVisitor.cpp \
169          $(DIR)/Bend.cpp \
170          $(DIR)/BendExtensions.cpp \
171          $(DIR)/Bond.cpp \
172          $(DIR)/BondExtensions.cpp \
173 +        $(DIR)/CGFamilyMinimizer.cpp \
174 +        $(DIR)/CompositeVisitor.cpp \
175          $(DIR)/DirectionalAtom.cpp \
176 <        $(DIR)/DumpWriter.cpp \
176 >        $(DIR)/DUFF.cpp \
177          $(DIR)/DumpReader.cpp \
178 +        $(DIR)/DumpWriter.cpp \
179 +        $(DIR)/EAM_FF.cpp \
180          $(DIR)/Exclude.cpp \
181 +        $(DIR)/ForceFields.cpp \
182 +        $(DIR)/fortranWrappers.cpp \
183 +        $(DIR)/GenericData.cpp \
184 +        $(DIR)/GhostBend.cpp \
185          $(DIR)/InitializeFromFile.cpp \
182        $(DIR)/LJFF.cpp \
183        $(DIR)/EAM_FF.cpp \
184        $(DIR)/SimInfo.cpp \
185        $(DIR)/SimSetup.cpp \
186        $(DIR)/StatWriter.cpp \
186          $(DIR)/Integrator.cpp \
187 <        $(DIR)/Thermo.cpp \
188 <        $(DIR)/GhostBend.cpp \
190 <        $(DIR)/Torsion.cpp \
191 <        $(DIR)/TorsionExtensions.cpp \
192 <        $(DIR)/DUFF.cpp \
193 <        $(DIR)/randomSPRNG.cpp \
194 <        $(DIR)/fortranWrappers.cpp \
195 <        $(DIR)/ForceFields.cpp \
196 <        $(DIR)/mpiSimulation.cpp \
187 >        $(DIR)/LJFF.cpp \
188 >        $(DIR)/mdProfile.cpp \
189          $(DIR)/Molecule.cpp \
190 +        $(DIR)/mpiSimulation.cpp \
191 +        $(DIR)/NPT.cpp \
192          $(DIR)/NPTf.cpp \
193          $(DIR)/NPTi.cpp \
194          $(DIR)/NPTxyz.cpp \
195          $(DIR)/NVT.cpp \
196 +        $(DIR)/OOPSEMinimizer.cpp \
197 +        $(DIR)/OtherVisitor.cpp \
198 +        $(DIR)/PRCG.cpp \
199 +        $(DIR)/randomSPRNG.cpp \
200 +        $(DIR)/Restraints.cpp \
201 +        $(DIR)/RigidBody.cpp \
202 +        $(DIR)/RigidBodyVisitor.cpp \
203 +        $(DIR)/SDMinimizer.cpp \
204 +        $(DIR)/SimInfo.cpp \
205 +        $(DIR)/SimSetup.cpp \
206          $(DIR)/SimState.cpp \
207 +        $(DIR)/SkipList.cpp \
208 +        $(DIR)/StatWriter.cpp \
209 +        $(DIR)/StreamTokenizer.cpp \
210 +        $(DIR)/StuntDouble.cpp \
211 +        $(DIR)/Thermo.cpp \
212 +        $(DIR)/Torsion.cpp \
213 +        $(DIR)/TorsionExtensions.cpp \
214 +        $(DIR)/Utility.cpp \
215 +        $(DIR)/WATER.cpp \
216 +        $(DIR)/ZConsReader.cpp \
217          $(DIR)/ZConstraint.cpp \
218 <        $(DIR)/ZConsWriter.cpp \
219 <        $(DIR)/mdProfile.cpp \
206 <        $(DIR)/GenericData.cpp
218 >        $(DIR)/ZconsVisitor.cpp \
219 >        $(DIR)/ZConsWriter.cpp
220  
221   F90_FILES= \
222 <        $(DIR)/definitions_module.F90 \
223 <        $(DIR)/status_module.F90 \
211 <        $(DIR)/atype_module.F90 \
222 >        $(DIR)/atype_module.F90 \
223 >        $(DIR)/calc_charge_charge.F90 \
224          $(DIR)/calc_dipole_dipole.F90 \
213        $(DIR)/calc_reaction_field.F90 \
214        $(DIR)/calc_LJ_FF.F90 \
225          $(DIR)/calc_eam.F90 \
226 +        $(DIR)/calc_gb.F90 \
227 +        $(DIR)/calc_LJ_FF.F90 \
228 +        $(DIR)/calc_reaction_field.F90 \
229          $(DIR)/calc_sticky_pair.F90 \
230 +        $(DIR)/definitions_module.F90 \
231          $(DIR)/do_Forces.F90 \
218        $(DIR)/vector_class.F90 \
219        $(DIR)/simulation_module.F90 \
220        $(DIR)/wrappers.F90 \
221        $(DIR)/neighborLists.F90 \
222        $(DIR)/calc_gb.F90 \
232          $(DIR)/force_globals.F90 \
233          $(DIR)/mpiSimulation_module.F90 \
234 +        $(DIR)/neighborLists.F90 \
235          $(DIR)/notifyCutoffs.F90 \
236          $(DIR)/oopseMPI_module.F90 \
237 <        $(DIR)/timing.F90
237 >        $(DIR)/simulation_module.F90 \
238 >        $(DIR)/status_module.F90 \
239 >        $(DIR)/switch_module.F90 \
240 >        $(DIR)/timing.F90 \
241 >        $(DIR)/vector_class.F90 \
242 >        $(DIR)/wrappers.F90
243  
244   DIR:=.
245   C_SRCS   :=     $(C_FILES)
# Line 250 | Line 265 | all: libmdtools.a libmdtools_MPI.a
265  
266   # Possible make targets:
267  
268 + ifeq ($(USE_MPI),yes)
269   all: libmdtools.a libmdtools_MPI.a
270 + else
271 + all: libmdtools.a
272 + endif
273  
274 +
275   libmdtools.a: $(OBJS)
276          $(RM) $@
277          $(AR) cr $@ $(OBJS)
# Line 341 | Line 361 | obj/simulation_module$(O): ./simulation_module.F90 \
361          obj/vector_class$(O) \
362          obj/force_globals$(O) \
363          obj/atype_module$(O) \
364 +        obj/switch_module$(O) \
365          obj/neighborLists$(O)
366  
367   obj/calc_LJ_FF$(O): ./calc_LJ_FF.F90 \
368          obj/definitions_module$(O) \
369          obj/atype_module$(O) \
370 +        obj/switch_module$(O) \
371          obj/simulation_module$(O) \
372          obj/vector_class$(O) \
373          obj/force_globals$(O)
# Line 355 | Line 377 | obj/calc_reaction_field$(O): ./calc_reaction_field.F90
377          obj/vector_class$(O) \
378          obj/atype_module$(O) \
379          obj/simulation_module$(O) \
380 +        obj/status_module$(O) \
381          obj/force_globals$(O)
382  
383   obj/calc_dipole_dipole$(O): ./calc_dipole_dipole.F90 \
# Line 362 | Line 385 | obj/calc_dipole_dipole$(O): ./calc_dipole_dipole.F90 \
385          obj/atype_module$(O) \
386          obj/simulation_module$(O) \
387          obj/force_globals$(O) \
388 +        obj/status_module$(O) \
389          obj/vector_class$(O)
390  
391 + obj/calc_charge_charge$(O): ./calc_charge_charge.F90 \
392 +        obj/definitions_module$(O) \
393 +        obj/atype_module$(O) \
394 +        obj/simulation_module$(O) \
395 +        obj/force_globals$(O) \
396 +        obj/status_module$(O) \
397 +        obj/vector_class$(O)
398 +
399   obj/do_Forces$(O): ./do_Forces.F90 \
400          obj/definitions_module$(O) \
401          obj/atype_module$(O) \
402 +        obj/switch_module$(O) \
403          obj/simulation_module$(O) \
404          obj/neighborLists$(O) \
405          obj/calc_LJ_FF$(O) \
# Line 375 | Line 408 | obj/do_Forces$(O): ./do_Forces.F90 \
408          obj/calc_reaction_field$(O) \
409          obj/calc_gb$(O) \
410          obj/force_globals$(O) \
411 +        obj/status_module$(O) \
412          obj/vector_class$(O)
413  
414   obj/notifyCutoffs$(O): ./notifyCutoffs.F90 \
# Line 384 | Line 418 | obj/notifyCutoffs$(O): ./notifyCutoffs.F90 \
418          obj/calc_eam$(O) \
419          obj/calc_dipole_dipole$(O) \
420          obj/calc_reaction_field$(O) \
421 +        obj/switch_module$(O) \
422          obj/do_Forces$(O)
423  
424   obj/wrappers$(O): ./wrappers.F90 \
# Line 453 | Line 488 | MPIobj/simulation_module$(O): ./simulation_module.F90
488          MPIobj/force_globals$(O) \
489          MPIobj/mpiSimulation_module$(O) \
490          MPIobj/atype_module$(O) \
491 +        MPIobj/switch_module$(O) \
492          MPIobj/neighborLists$(O)
493  
494   MPIobj/calc_LJ_FF$(O): ./calc_LJ_FF.F90 \
495          MPIobj/definitions_module$(O) \
496          MPIobj/atype_module$(O) \
497 +        MPIobj/switch_module$(O) \
498          MPIobj/simulation_module$(O) \
499          MPIobj/mpiSimulation_module$(O) \
500          MPIobj/atype_module$(O) \
# Line 471 | Line 508 | MPIobj/calc_reaction_field$(O): ./calc_reaction_field.
508          MPIobj/mpiSimulation_module$(O) \
509          MPIobj/vector_class$(O) \
510          MPIobj/atype_module$(O) \
511 +        MPIobj/status_module$(O) \
512          MPIobj/force_globals$(O)
513  
514   MPIobj/calc_dipole_dipole$(O): ./calc_dipole_dipole.F90 \
# Line 479 | Line 517 | MPIobj/calc_dipole_dipole$(O): ./calc_dipole_dipole.F9
517          MPIobj/simulation_module$(O) \
518          MPIobj/mpiSimulation_module$(O) \
519          MPIobj/force_globals$(O) \
520 +        MPIobj/status_module$(O) \
521          MPIobj/vector_class$(O)
522  
523 + MPIobj/calc_charge_charge$(O): ./calc_charge_charge.F90 \
524 +        MPIobj/definitions_module$(O) \
525 +        MPIobj/atype_module$(O) \
526 +        MPIobj/simulation_module$(O) \
527 +        MPIobj/mpiSimulation_module$(O) \
528 +        MPIobj/force_globals$(O) \
529 +        MPIobj/status_module$(O) \
530 +        MPIobj/vector_class$(O)
531 +
532   MPIobj/do_Forces$(O): ./do_Forces.F90 \
533          MPIobj/definitions_module$(O) \
534          MPIobj/mpiSimulation_module$(O) \
535          MPIobj/atype_module$(O) \
536 +        MPIobj/switch_module$(O) \
537          MPIobj/simulation_module$(O) \
538          MPIobj/neighborLists$(O) \
539          MPIobj/calc_LJ_FF$(O) \
# Line 493 | Line 542 | MPIobj/do_Forces$(O): ./do_Forces.F90 \
542          MPIobj/calc_reaction_field$(O) \
543          MPIobj/calc_gb$(O) \
544          MPIobj/force_globals$(O) \
545 +        MPIobj/status_module$(O) \
546          MPIobj/vector_class$(O)
547  
548   MPIobj/notifyCutoffs$(O): ./notifyCutoffs.F90 \
# Line 502 | Line 552 | MPIobj/notifyCutoffs$(O): ./notifyCutoffs.F90 \
552          MPIobj/calc_eam$(O) \
553          MPIobj/calc_dipole_dipole$(O) \
554          MPIobj/calc_reaction_field$(O) \
555 +        MPIobj/switch_module$(O) \
556          MPIobj/do_Forces$(O)
557  
558   MPIobj/wrappers$(O): ./wrappers.F90 \

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines