ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE/libmdtools/Makefile.in
Revision: 1032
Committed: Fri Feb 6 19:05:07 2004 UTC (20 years, 5 months ago) by tim
File size: 12728 byte(s)
Log Message:
Add one more file into Makefile.in

File Contents

# User Rev Content
1 gezelter 747 #####################################################
2     # Makefile for libmdtools (bundled with OOPSE) #
3     #####################################################
4     # You should not change anything here. #
5     #####################################################
6    
7     # No make rules by default
8     .SUFFIXES : .c .cpp .F90 .hpp .h $(O)
9    
10     # Extension of object files
11     O=@OBJEXT@
12    
13     # Extension of executables
14     EXE=@EXEEXT@
15    
16     # Bourn shell
17     SHELL=/bin/sh
18    
19     # Path prefix for installation links
20     PREFIX=@prefix@
21    
22     # List of subdirectories
23     SUBDIRS=@SUBDIRS@
24    
25     # Location of the oopse home
26     OOPSE_HOME=@OOPSE_HOME@
27    
28     FORCE_PARAM_DIR=@OOPSE_HOME@/share/forceFields/
29     SAMPLE_SIM_DIR=@OOPSE_HOME@/share/samples/
30    
31     # SPRNG library path
32     SPRNG_LIBDIR=@SPRNG_LIBDIR@
33    
34     # SPRNG library
35     SPRNG_LIB=@SPRNG_LIB@
36    
37     # SPRNG include path
38     SPRNG_INC=@SPRNG_INC@
39    
40     # MPICH library path
41     MPI_LIBDIR=@MPI_LIBDIR@
42    
43     # MPICH library
44     MPI_LIB=@MPI_LIB@
45    
46     # MPICH include path
47     MPI_INC=@MPI_INC@
48    
49 gezelter 826 # MODDIRFLAG
50     MODDIRFLAG=@MODDIRFLAG@
51    
52 gezelter 747 # Compiler dependent Fortran module
53     FLIBS_EXTRA = @F90LIBS@
54    
55     # Location of yacc (or its substitution)
56     YACC=@YACC@
57    
58     #location of lex
59     LEX=@LEX@
60    
61     # C compiler
62     CC=@CC@
63    
64     # C++ compiler
65    
66     CXX=@CXX@
67    
68     # F90 compiler
69     F90=@F90@
70    
71     # ar
72     AR=@AR@
73    
74     # ranlib
75     RANLIB=@RANLIB@
76    
77     # rm
78     RM=rm -f
79    
80     # soft link
81     LN_S=@LN_S@
82    
83     # BSD install
84     INSTALL=@INSTALL@
85     INSTALL_PROGRAM=@INSTALL_PROGRAM@
86     INSTALL_DATA=@INSTALL_DATA@
87     MKINSTALLDIRS=@MKINSTALLDIRS@
88    
89     # CPP flags
90     CPPFLAGS=@CPPFLAGS@
91    
92     # C flags
93     CFLAGS_C=@CFLAGS@
94    
95     # C++ flags
96     CXXFLAGS_C=@CXXFLAGS@
97    
98 gezelter 840 # C++ template flags
99     OOPSE_TEMPLATE_FLAGS=@OOPSE_TEMPLATE_FLAGS@
100    
101     # C++ namespace flags
102     EXTRA_CC_FLAG=@EXTRA_CC_FLAG@
103    
104 gezelter 747 # Preprocessor flag for fortran
105     PREPFLAG=@PREPFLAG@
106    
107     # Preprocessor define flag for fortran
108     PREPDEFFLAG=@PREPDEFFLAG@
109    
110     # Fortran flags
111 gezelter 785 FFLAGS_C=@FFLAGS@
112 gezelter 747
113 gezelter 785 # Fortran90 flags
114     F90FLAGS_C=@F90FLAGS@
115    
116 gezelter 747 # LDFLAGS
117     LDFLAGS=@LDFLAGS@
118    
119     # First do compile-time flags:
120    
121     DECLARE=-DFRC_PATH="$(FORCE_PARAM_DIR)"
122     MPI_DECLARE=-DIS_MPI
123    
124     # include paths starting with "." are all relative to the SUBDIRS!!!
125    
126     INCLUDES= -I.. -I../../libBASS $(SPRNG_INC)
127 gezelter 940 MPI_INCLUDES= -I$(MPI_INC)
128 chuckv 858 F90_INCLUDES= -I/usr/local/include
129 gezelter 747
130     CFLAGS=$(CFLAGS_C) $(INCLUDES) $(DECLARE) $(MPI_INCLUDES) $(FUNCWRAP)
131 gezelter 840 CXXFLAGS=$(CXXFLAGS_C) $(OOPSE_TEMPLATE_FLAGS) $(EXTRA_CC_FLAG) $(INCLUDES) $(DECLARE) $(FUNCWRAP)
132 gezelter 747 FFLAGS=$(PREPFLAG) $(FFLAGS_C)
133 chuckv 858 F90FLAGS=$(PREPFLAG) $(F90FLAGS_C) $(F90_INCLUDES)
134 gezelter 747 DEPFLAGS=$(CFLAGS_C) -I. -I../libBASS $(SPRNG_INC) $(MPI_INCLUDES)
135    
136     MPI_CFLAGS=$(CFLAGS) $(MPI_INCLUDES) $(MPI_DECLARE)
137     MPI_CXXFLAGS=$(CXXFLAGS) $(MPI_INCLUDES) $(MPI_DECLARE)
138 gezelter 785 MPI_F90FLAGS=$(F90FLAGS) $(PREPDEFFLAG)$(MPI_DECLARE) $(MPI_INCLUDES)
139 gezelter 747
140 gezelter 829 SRC_DIR := ..
141 gezelter 747
142     # Then do the compile rules:
143    
144     obj/%.o: %.F90
145 gezelter 785 cd obj; $(F90) $(F90FLAGS) -c $(SRC_DIR)/$<
146 gezelter 747
147     MPIobj/%.o: %.F90
148 gezelter 785 cd MPIobj; $(F90) $(MPI_F90FLAGS) -c $(SRC_DIR)/$<
149 gezelter 747
150     obj/%.o: %.cpp
151     cd obj; $(CXX) $(CXXFLAGS) -c $(SRC_DIR)/$<
152    
153     MPIobj/%.o: %.cpp
154     cd MPIobj; $(CXX) $(MPI_CXXFLAGS) -c $(SRC_DIR)/$<
155    
156     obj/%.o: %.c
157     cd obj; $(CC) $(CFLAGS) -c $(SRC_DIR)/$<
158    
159     MPIobj/%.o: %.c
160     cd MPIobj; $(CC) $(MPI_CFLAGS) -c $(SRC_DIR)/$<
161    
162     # Then list what we have to compile
163    
164     C_FILES = \
165     $(DIR)/mpiForceField.c \
166     $(DIR)/fInfo.c
167    
168     CXX_FILES = \
169     $(DIR)/Atom.cpp \
170     $(DIR)/Bend.cpp \
171     $(DIR)/BendExtensions.cpp \
172     $(DIR)/Bond.cpp \
173     $(DIR)/BondExtensions.cpp \
174     $(DIR)/DirectionalAtom.cpp \
175     $(DIR)/DumpWriter.cpp \
176 mmeineke 804 $(DIR)/DumpReader.cpp \
177 gezelter 747 $(DIR)/Exclude.cpp \
178     $(DIR)/InitializeFromFile.cpp \
179     $(DIR)/LJFF.cpp \
180     $(DIR)/EAM_FF.cpp \
181 chrisfen 999 $(DIR)/WATER.cpp \
182 gezelter 747 $(DIR)/SimInfo.cpp \
183     $(DIR)/SimSetup.cpp \
184     $(DIR)/StatWriter.cpp \
185     $(DIR)/Integrator.cpp \
186     $(DIR)/Thermo.cpp \
187     $(DIR)/GhostBend.cpp \
188     $(DIR)/Torsion.cpp \
189     $(DIR)/TorsionExtensions.cpp \
190     $(DIR)/DUFF.cpp \
191     $(DIR)/randomSPRNG.cpp \
192     $(DIR)/fortranWrappers.cpp \
193     $(DIR)/ForceFields.cpp \
194     $(DIR)/Molecule.cpp \
195 gezelter 761 $(DIR)/NPTf.cpp \
196     $(DIR)/NPTi.cpp \
197 mmeineke 812 $(DIR)/NPTxyz.cpp \
198 gezelter 761 $(DIR)/NVT.cpp \
199 gezelter 747 $(DIR)/SimState.cpp \
200     $(DIR)/ZConstraint.cpp \
201     $(DIR)/ZConsWriter.cpp \
202 mmeineke 887 $(DIR)/mdProfile.cpp \
203 gezelter 940 $(DIR)/GenericData.cpp \
204 tim 1031 $(DIR)/mpiSimulation.cpp \
205     $(DIR)/NLModel0.cpp \
206     $(DIR)/NLModel1.cpp \
207     $(DIR)/Constraint.cpp \
208     $(DIR)/SimpleBoundCons.cpp \
209     $(DIR)/LinearCons.cpp \
210     $(DIR)/NonlinearCons.cpp \
211     $(DIR)/ConstraintList.cpp \
212     $(DIR)/Minimizer1D.cpp \
213     $(DIR)/ConjugateMinimizer.cpp \
214 tim 1032 $(DIR)/Utility.cpp \
215     $(DIR)/OOPSEMinimizerBase.cpp
216 gezelter 747
217     F90_FILES= \
218     $(DIR)/definitions_module.F90 \
219     $(DIR)/status_module.F90 \
220     $(DIR)/atype_module.F90 \
221     $(DIR)/calc_dipole_dipole.F90 \
222 gezelter 940 $(DIR)/calc_charge_charge.F90 \
223 gezelter 747 $(DIR)/calc_reaction_field.F90 \
224     $(DIR)/calc_LJ_FF.F90 \
225     $(DIR)/calc_eam.F90 \
226     $(DIR)/calc_sticky_pair.F90 \
227     $(DIR)/do_Forces.F90 \
228     $(DIR)/vector_class.F90 \
229     $(DIR)/simulation_module.F90 \
230     $(DIR)/wrappers.F90 \
231     $(DIR)/neighborLists.F90 \
232     $(DIR)/calc_gb.F90 \
233     $(DIR)/force_globals.F90 \
234     $(DIR)/mpiSimulation_module.F90 \
235 chuckv 858 $(DIR)/notifyCutoffs.F90 \
236 gezelter 940 $(DIR)/timing.F90 \
237     $(DIR)/oopseMPI_module.F90
238 gezelter 747
239     DIR:=.
240     C_SRCS := $(C_FILES)
241     CXX_SRCS := $(CXX_FILES)
242     F90_SRCS := $(F90_FILES)
243     SRCS := $(C_SRCS) $(CXX_SRCS) $(F90_SRCS)
244    
245     DIR:=obj
246     C_OBJS := $(C_FILES:.c=.o)
247     CXX_OBJS := $(CXX_FILES:.cpp=.o)
248     F90_OBJS := $(F90_FILES:.F90=.o)
249     OBJS := $(C_OBJS) $(CXX_OBJS) $(F90_OBJS)
250    
251     DIR:=MPIobj
252     C_MPIOBJS := $(C_FILES:.c=.o)
253     CXX_MPIOBJS := $(CXX_FILES:.cpp=.o)
254     F90_MPIOBJS := $(F90_FILES:.F90=.o)
255     MPIOBJS := $(C_MPIOBJS) $(CXX_MPIOBJS) $(F90_MPIOBJS)
256    
257     LIBSUBDIRS = \
258     obj \
259     MPIobj
260    
261     # Possible make targets:
262    
263     all: libmdtools.a libmdtools_MPI.a
264    
265     libmdtools.a: $(OBJS)
266     $(RM) $@
267     $(AR) cr $@ $(OBJS)
268     $(RANLIB) $@
269    
270     libmdtools_MPI.a: $(MPIOBJS)
271     $(RM) $@
272     $(AR) cr $@ $(MPIOBJS)
273     $(RANLIB) $@
274    
275     .PHONY : clean
276    
277     clean : dummy
278     for i in $(LIBSUBDIRS); do \
279     (cd $$i; $(RM) *.o *.mod) || exit 1; \
280     done
281     $(RM) libmdtools.a libmdtools_MPI.a *.o *.mod *~ Make.temp Make.ftemp
282    
283     distclean : dummy
284     for i in $(LIBSUBDIRS); do \
285     (cd $$i; $(RM) *.o *.mod) || exit 1; \
286     done
287     $(RM) libmdtools.a libmdtools_MPI.a *.o *.mod *~ Make.temp Make.ftemp
288    
289     depend : Make.dep
290    
291     Make.dep :
292     echo "Only C dependencies are made automagically!"
293     echo "# DO NOT DELETE THIS LINE - used by make depend" > Make.dep
294     $(CC) $(DEPFLAGS) -MM $(C_SRCS) \
295     | sed 's/\.o:/\$$(O)\ :/g' > Make.temp
296     $(CXX) $(DEPFLAGS) -MM $(CXX_SRCS) \
297     | sed 's/\.o:/\$$(O)\ :/g' >> Make.temp
298     cat Make.temp | sed 's/^[a-zA-Z0-9]/obj\/&/g' >> Make.dep
299     cat Make.temp | sed 's/^[a-zA-Z0-9]/MPIobj\/&/g' >> Make.dep
300     # ../scripts/sfmakedepend -I $(MPI_F90_MODS) -d obj -f ./Make.ftemp -h *.F90
301     # ../scripts/sfmakedepend -I $(MPI_F90_MODS) -d MPIobj -f ./Make.ftemp -h *.F90
302     # cat Make.ftemp | sed 's/\.o:/\$$(O)\ :/g' >> Make.dep
303     $(RM) Make.ftemp Make.temp
304    
305     install : dummy
306    
307     links : dummy
308    
309     tests : dummy
310    
311     dummy :
312    
313     include Make.dep
314    
315     obj/definitions_module$(O): ./definitions_module.F90
316    
317     obj/vector_class$(O): ./vector_class.F90
318    
319     obj/status_module$(O): ./status_module.F90
320    
321     obj/force_globals$(O): ./force_globals.F90 \
322     obj/definitions_module$(O)
323    
324     obj/neighborLists$(O): ./neighborLists.F90 \
325     obj/definitions_module$(O)
326    
327     obj/calc_sticky_pair$(O): ./calc_sticky_pair.F90 \
328     obj/definitions_module$(O) \
329     obj/simulation_module$(O) \
330     obj/force_globals$(O)
331    
332     obj/calc_eam$(O): ./calc_eam.F90 \
333     obj/definitions_module$(O) \
334     obj/atype_module$(O) \
335     obj/simulation_module$(O) \
336     obj/vector_class$(O) \
337     obj/force_globals$(O) \
338     obj/status_module$(O)
339    
340     obj/calc_gb$(O): ./calc_gb.F90 \
341     obj/definitions_module$(O) \
342     obj/simulation_module$(O) \
343     obj/force_globals$(O)
344    
345     obj/atype_module$(O): ./atype_module.F90 \
346     obj/definitions_module$(O) \
347     obj/vector_class$(O)
348    
349     obj/simulation_module$(O): ./simulation_module.F90 \
350     obj/definitions_module$(O) \
351     obj/vector_class$(O) \
352     obj/force_globals$(O) \
353     obj/atype_module$(O) \
354     obj/neighborLists$(O)
355    
356     obj/calc_LJ_FF$(O): ./calc_LJ_FF.F90 \
357     obj/definitions_module$(O) \
358     obj/atype_module$(O) \
359     obj/simulation_module$(O) \
360     obj/vector_class$(O) \
361     obj/force_globals$(O)
362    
363     obj/calc_reaction_field$(O): ./calc_reaction_field.F90 \
364     obj/definitions_module$(O) \
365     obj/vector_class$(O) \
366     obj/atype_module$(O) \
367     obj/simulation_module$(O) \
368     obj/force_globals$(O)
369    
370     obj/calc_dipole_dipole$(O): ./calc_dipole_dipole.F90 \
371     obj/definitions_module$(O) \
372     obj/atype_module$(O) \
373     obj/simulation_module$(O) \
374     obj/force_globals$(O) \
375     obj/vector_class$(O)
376    
377 gezelter 940 obj/calc_charge_charge$(O): ./calc_charge_charge.F90 \
378     obj/definitions_module$(O) \
379     obj/atype_module$(O) \
380     obj/simulation_module$(O) \
381     obj/force_globals$(O) \
382     obj/vector_class$(O)
383    
384 gezelter 747 obj/do_Forces$(O): ./do_Forces.F90 \
385     obj/definitions_module$(O) \
386     obj/atype_module$(O) \
387     obj/simulation_module$(O) \
388     obj/neighborLists$(O) \
389     obj/calc_LJ_FF$(O) \
390     obj/calc_sticky_pair$(O) \
391     obj/calc_dipole_dipole$(O) \
392     obj/calc_reaction_field$(O) \
393     obj/calc_gb$(O) \
394     obj/force_globals$(O) \
395     obj/vector_class$(O)
396    
397     obj/notifyCutoffs$(O): ./notifyCutoffs.F90 \
398     obj/definitions_module$(O) \
399     obj/atype_module$(O) \
400     obj/calc_LJ_FF$(O) \
401     obj/calc_eam$(O) \
402     obj/calc_dipole_dipole$(O) \
403     obj/calc_reaction_field$(O) \
404     obj/do_Forces$(O)
405    
406     obj/wrappers$(O): ./wrappers.F90 \
407     obj/definitions_module$(O) \
408     obj/atype_module$(O) \
409     obj/simulation_module$(O) \
410     obj/calc_sticky_pair$(O) \
411     obj/calc_gb$(O) \
412     obj/do_Forces$(O) \
413     obj/notifyCutoffs$(O)
414    
415 mmeineke 891 obj/timing$(O): ./timing.F90 \
416     obj/do_Forces$(O)
417 gezelter 747
418    
419    
420     #MPI dependencies:
421    
422     MPIobj/definitions_module$(O): ./definitions_module.F90
423    
424     MPIobj/vector_class$(O): ./vector_class.F90
425    
426     MPIobj/status_module$(O): ./status_module.F90
427    
428 chuckv 858 MPIobj/oopseMPI_module$(O): ./oopseMPI_module.F90
429 gezelter 747
430 chuckv 858 MPIobj/mpiSimulation_module$(O): ./mpiSimulation_module.F90 \
431     MPIobj/oopseMPI_module$(O)
432    
433 gezelter 747 MPIobj/force_globals$(O): ./force_globals.F90 \
434     MPIobj/mpiSimulation_module$(O) \
435     MPIobj/definitions_module$(O)
436    
437     MPIobj/neighborLists$(O): ./neighborLists.F90 \
438     MPIobj/definitions_module$(O) \
439     MPIobj/mpiSimulation_module$(O)
440    
441     MPIobj/calc_sticky_pair$(O): ./calc_sticky_pair.F90 \
442     MPIobj/definitions_module$(O) \
443     MPIobj/simulation_module$(O) \
444     MPIobj/mpiSimulation_module$(O) \
445     MPIobj/force_globals$(O)
446    
447     MPIobj/calc_gb$(O): ./calc_gb.F90 \
448     MPIobj/definitions_module$(O) \
449     MPIobj/simulation_module$(O) \
450     MPIobj/mpiSimulation_module$(O) \
451     MPIobj/force_globals$(O)
452    
453     MPIobj/calc_eam$(O): ./calc_eam.F90 \
454     MPIobj/definitions_module$(O) \
455     MPIobj/atype_module$(O) \
456     MPIobj/simulation_module$(O) \
457     MPIobj/mpiSimulation_module$(O) \
458     MPIobj/vector_class$(O) \
459     MPIobj/force_globals$(O) \
460     MPIobj/status_module$(O)
461    
462     MPIobj/atype_module$(O): ./atype_module.F90 \
463     MPIobj/definitions_module$(O) \
464     MPIobj/vector_class$(O)
465    
466     MPIobj/simulation_module$(O): ./simulation_module.F90 \
467     MPIobj/definitions_module$(O) \
468     MPIobj/atype_module$(O) \
469     MPIobj/vector_class$(O) \
470     MPIobj/force_globals$(O) \
471     MPIobj/mpiSimulation_module$(O) \
472     MPIobj/atype_module$(O) \
473     MPIobj/neighborLists$(O)
474    
475     MPIobj/calc_LJ_FF$(O): ./calc_LJ_FF.F90 \
476     MPIobj/definitions_module$(O) \
477     MPIobj/atype_module$(O) \
478     MPIobj/simulation_module$(O) \
479     MPIobj/mpiSimulation_module$(O) \
480     MPIobj/atype_module$(O) \
481     MPIobj/vector_class$(O) \
482     MPIobj/force_globals$(O)
483    
484     MPIobj/calc_reaction_field$(O): ./calc_reaction_field.F90 \
485     MPIobj/definitions_module$(O) \
486     MPIobj/atype_module$(O) \
487     MPIobj/simulation_module$(O) \
488     MPIobj/mpiSimulation_module$(O) \
489     MPIobj/vector_class$(O) \
490     MPIobj/atype_module$(O) \
491     MPIobj/force_globals$(O)
492    
493     MPIobj/calc_dipole_dipole$(O): ./calc_dipole_dipole.F90 \
494     MPIobj/definitions_module$(O) \
495     MPIobj/atype_module$(O) \
496     MPIobj/simulation_module$(O) \
497     MPIobj/mpiSimulation_module$(O) \
498     MPIobj/force_globals$(O) \
499     MPIobj/vector_class$(O)
500    
501 gezelter 940 MPIobj/calc_charge_charge$(O): ./calc_charge_charge.F90 \
502     MPIobj/definitions_module$(O) \
503     MPIobj/atype_module$(O) \
504     MPIobj/simulation_module$(O) \
505     MPIobj/mpiSimulation_module$(O) \
506     MPIobj/force_globals$(O) \
507     MPIobj/vector_class$(O)
508    
509 gezelter 747 MPIobj/do_Forces$(O): ./do_Forces.F90 \
510     MPIobj/definitions_module$(O) \
511     MPIobj/mpiSimulation_module$(O) \
512     MPIobj/atype_module$(O) \
513     MPIobj/simulation_module$(O) \
514     MPIobj/neighborLists$(O) \
515     MPIobj/calc_LJ_FF$(O) \
516     MPIobj/calc_sticky_pair$(O) \
517     MPIobj/calc_dipole_dipole$(O) \
518     MPIobj/calc_reaction_field$(O) \
519     MPIobj/calc_gb$(O) \
520     MPIobj/force_globals$(O) \
521     MPIobj/vector_class$(O)
522    
523     MPIobj/notifyCutoffs$(O): ./notifyCutoffs.F90 \
524     MPIobj/definitions_module$(O) \
525     MPIobj/atype_module$(O) \
526     MPIobj/calc_LJ_FF$(O) \
527     MPIobj/calc_eam$(O) \
528     MPIobj/calc_dipole_dipole$(O) \
529     MPIobj/calc_reaction_field$(O) \
530     MPIobj/do_Forces$(O)
531    
532     MPIobj/wrappers$(O): ./wrappers.F90 \
533     MPIobj/definitions_module$(O) \
534     MPIobj/mpiSimulation_module$(O) \
535     MPIobj/atype_module$(O) \
536     MPIobj/simulation_module$(O) \
537     MPIobj/calc_sticky_pair$(O) \
538     MPIobj/calc_gb$(O) \
539     MPIobj/do_Forces$(O) \
540     MPIobj/notifyCutoffs$(O)
541    
542 mmeineke 891 MPIobj/timing$(O): ./timing.F90 \
543     MPIobj/do_Forces$(O) \
544     MPIobj/mpiSimulation_module$(O)