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

Comparing trunk/OOPSE-3.0/make/Makefile.in (file contents):
Revision 2199 by gezelter, Thu Apr 14 21:41:56 2005 UTC vs.
Revision 2736 by chuckv, Tue Apr 25 22:30:26 2006 UTC

# Line 52 | Line 52 | PackageLibs = \
52          selection \
53          restraints \
54          lattice \
55 <
55 >        openbabel\
56 >        antlr\
57 >        mdParser
58   #packages containing applications
59   Applications = \
60          applications/oopse \
61          applications/dump2Xyz \
62          applications/staticProps \
63          applications/dynamicProps \
64 <        applications/simpleBuilder\
64 >        applications/simpleBuilder \
65 >        applications/randomBuilder \
66          applications/nanoRodBuilder \
67 +        applications/nanoparticleBuilder \
68 +        applications/atom2mdin \
69 +        applications/hydrodynamics
70  
71 +
72   Samples = \
73 +        samples/alkane \
74          samples/argon \
75 <        samples/water/dimer \
75 >        samples/cutoff \
76 >        samples/dipole \
77 >        samples/gbljtest \
78 >        samples/lipid \
79 >        samples/metals/EAM \
80 >        samples/metals/EAM/nanoparticle \
81 >        samples/metals/EAM/nanorod \
82 >        samples/metals/Sutton-Chen \
83 >        samples/minimizer \
84 >        samples/shape \
85 >        samples/thermoIntegration/liquid \
86 >        samples/thermoIntegration/solid \
87 >        samples/water/dimer \
88          samples/water/spce \
89          samples/water/ssd \
90          samples/water/ssde \
91 +        samples/water/ssdrf \
92 +        samples/water/ssd-ion \
93          samples/water/tip3p_ice \
94          samples/water/tip4p \
95 <        samples/lipid \
74 <        samples/alkane \
75 <        samples/minimizer \
76 <        samples/metals \
77 <        samples/zcons \
95 >        samples/zcons
96  
97   IncludeDirs = \
98          @CGAL_INC_DIR@ \
# Line 85 | Line 103 | Libraries = \
103          @MPI_LIB_DIR@
104  
105   Libraries = \
106 +        @LIBS@ \
107          @CGAL_LIBS@ \
108          @MPI_LIB@ \
109          @MPI_F90_LIB@
# Line 101 | Line 120 | LinkOptions = \
120   ModuleCase      = @F90_MODULE_NAMES@
121   ModSuffix       = @MOD@
122   LinkOptions = \
123 <        @F90LIBS@
123 >        @FCLIBS@ \
124 >        @CXXFLAGS@
125  
126   ParallelLinkOptions = \
127 <        @F90LIBS@
127 >        @FCLIBS@ \
128 >        @CXXFLAGS@
129  
130  
131   #---------------------------------------------------------------------------
# Line 118 | Line 139 | BinDir            = $(DEV_ROOT)/bin
139   ParallelTargetDir = $(DEV_ROOT)/MPIobj
140   LibDir            = $(DEV_ROOT)/lib
141   MakeDir           = $(DEV_ROOT)/make
142 + MainMakefile      = $(MakeDir)/Makefile
143   BinDir            = $(DEV_ROOT)/bin
144   DocsDir           = $(DEV_ROOT)/docs
145   CurrentDir        = $(CURDIR)
# Line 325 | Line 347 | INSTALL                = @INSTALL@
347   CppCompiler            = @CXX@
348   Linker                 = @CXX@
349   MakeDepend             = makedepend
350 + LN_S                   = @LN_S@
351   INSTALL                = @INSTALL@
352 + EGREP                  = @EGREP@
353   InstallProgram         = @INSTALL_PROGRAM@
354   InstallScript          = @INSTALL_SCRIPT@
355   InstallData            = @INSTALL_DATA@
356   MkDir                  = @MKINSTALLDIRS@
357 < Delete                 = rm -fr
357 > Delete                 = rm -f
358   StaticArchiver         = @AR@
359   DynamicArchiver        = @CC@
360   FortranCompiler        = @FC@
337 F90Compiler            = @F90@
361   JavaCompiler           = $(JAVA_HOME)/bin/javac
362   JavaArchiver           = $(JAVA_HOME)/bin/jar
363   JarSigner              = $(JAVA_HOME)/bin/jarsigner
# Line 360 | Line 383 | CppOptions             = $(FrcDeclare) @CXXFLAGS@ @OOP
383                           -sourcepath $(SourceDir)
384   COptions               = $(FrcDeclare) @CFLAGS@
385   CParallelOptions       = $(FrcDeclare) $(ParallelDeclare) @CFLAGS@
386 < CppOptions             = $(FrcDeclare) @CXXFLAGS@ @OOPSE_TEMPLATE_FLAGS@
387 < CppParallelOptions     = $(FrcDeclare) $(ParallelDeclare) @CXXFLAGS@ @OOPSE_TEMPLATE_FLAGS@
388 < FortranOptions         =
389 < F90Options             =  @PREPFLAG@ @F90FLAGS@ @MODDIRFLAG@$(SourceDir) @MODDIRFLAG@$(TargetDir)
367 < F90ParallelOptions     =  @PREPFLAG@ @F90FLAGS@ @MODDIRFLAG@$(SourceDir) @MODDIRFLAG@$(ParallelTargetDir)  @PREPDEFFLAG@$(ParallelDeclare)
386 > CppOptions             = $(FrcDeclare) @CXXFLAGS@
387 > CppParallelOptions     = $(FrcDeclare) $(ParallelDeclare) @CXXFLAGS@
388 > FortranOptions         =  @FCFLAGS@ @MODDIRFLAG@$(SourceDir) @MODDIRFLAG@$(TargetDir) @FCFLAGS_SRCEXT@
389 > FortranParallelOptions =  @FCFLAGS@ @MODDIRFLAG@$(SourceDir) @MODDIRFLAG@$(ParallelTargetDir) @PREPDEFFLAG@$(ParallelDeclare) @FCFLAGS_SRCEXT@
390   JavaCompilerOptions    = -d $(TargetDir) -classpath $(ClassPath) \
391                           -sourcepath $(SourceDir) -deprecation
392   JavaRunOptions         = -classpath $(ClassPath)
# Line 409 | Line 431 | endif
431      InstallFiles             = $(Executable)
432    endif
433    InstallCommand           = $(InstallProgram)
434 +  ifneq "$(words $(LinkTargets))" "0"
435 +    MyLinkSource = $(patsubst %, $(MyInstallDir)/%,$(Main))
436 +    MyLinkTargets = $(patsubst %, $(MyInstallDir)/%,$(LinkTargets))
437 +  endif
438   endif
439  
440   ifneq "$(words $(ForcefieldFiles))" "0"
# Line 445 | Line 471 | $(PackageTargetDir)/%.o : %.c
471          $(MkDir) $@
472  
473   # .c -> .o
474 < $(PackageTargetDir)/%.o : %.c
474 > $(PackageTargetDir)/%.o : %.c $(MainMakefile)
475          $(Print) $@
476          $(CCompiler) $(COptions) -c $(IncludePath) $< -o $@
477  
478 < $(PackageParallelTargetDir)/%.o : %.c
478 > $(PackageParallelTargetDir)/%.o : %.c $(MainMakefile)
479          $(Print) $@
480          $(CCompiler) $(CParallelOptions) -c $(IncludePath) $< -o $@
481  
482   ifeq "$(UseMPI)" "yes"
483 < %.o : %.c
483 > %.o : %.c $(MainMakefile)
484          $(MAKE) $(MakeOptions) $(PackageTargetDir)/$@
485          $(MAKE) $(MakeOptions) $(PackageParallelTargetDir)/$@
486   else
487 < %.o : %.c
487 > %.o : %.c $(MainMakefile)
488          $(MAKE) $(MakeOptions) $(PackageTargetDir)/$@
489   endif
490  
491   # .cpp -> .o
492 < $(PackageTargetDir)/%.o : %.cpp
492 > $(PackageTargetDir)/%.o : %.cpp $(MainMakefile)
493          $(CppCompiler) $(CppOptions) -c $(IncludePath) $< -o $@
494  
495 < $(PackageParallelTargetDir)/%.o : %.cpp
495 > $(PackageParallelTargetDir)/%.o : %.cpp $(MainMakefile)
496          $(CppCompiler) $(CppParallelOptions) -c $(IncludePath) $< -o $@
497  
498   ifeq "$(UseMPI)" "yes"
499 < %.o : %.cpp
499 > %.o : %.cpp $(MainMakefile)
500          $(MAKE) $(MakeOptions) $(PackageTargetDir)/$@
501          $(MAKE) $(MakeOptions) $(PackageParallelTargetDir)/$@
502   else
503 < %.o : %.cpp
503 > %.o : %.cpp $(MainMakefile)
504          $(MAKE) $(MakeOptions) $(PackageTargetDir)/$@
505   endif
506  
507   # .f -> .o
508 < $(PackageTargetDir)/%.o : %.f
508 > $(PackageTargetDir)/%.o : %.f $(MainMakefile)
509          $(FortranCompiler) $(FortranOptions) -c $< -o $@
510  
511 < $(PackageParallelTargetDir)/%.o : %.f
511 > $(PackageParallelTargetDir)/%.o : %.f $(MainMakefile)
512          $(FortranCompiler) $(FortranParallelOptions) -c $< -o $@
513  
514   ifeq "$(UseMPI)" "yes"
515 < %.o : %.f
515 > %.o : %.f $(MainMakefile)
516          $(MAKE) $(MakeOptions) $(PackageTargetDir)/$@
517          $(MAKE) $(MakeOptions) $(PackageParallelTargetDir)/$@
518   else
519 < %.o : %.f
519 > %.o : %.f $(MainMakefile)
520          $(MAKE) $(MakeOptions) $(PackageTargetDir)/$@
521   endif
522  
523   # .F90 -> .o
524 < $(PackageTargetDir)/%.o : %.F90
525 <        $(F90Compiler) $(F90Options) $(IncludePath) -c $< -o $@
524 > $(PackageTargetDir)/%.o : %.F90 $(MainMakefile)
525 >        $(FortranCompiler) $(FortranOptions) $(IncludePath) -c $< -o $@
526          if test -n "`ls *.$(ModSuffix)`"; then \
527            $(Move) `ls *.$(ModSuffix)` $(PackageTargetDir);\
528          fi
529  
530 < $(PackageParallelTargetDir)/%.o : %.F90
531 <        $(F90Compiler) $(F90ParallelOptions) $(IncludePath) -c $< -o $@
530 > $(PackageParallelTargetDir)/%.o : %.F90 $(MainMakefile)
531 >        $(FortranCompiler) $(FortranParallelOptions) $(IncludePath) -c $< -o $@
532          if test -n "`ls *.$(ModSuffix)`"; then \
533            $(Move) "`ls *.$(ModSuffix)`" $(PackageParallelTargetDir);\
534          fi
535  
536   ifeq "$(UseMPI)" "yes"
537 < %.o : %.F90
537 > %.o : %.F90 $(MainMakefile)
538          $(MAKE) $(MakeOptions) $(PackageTargetDir)/$@
539          if test -n "`ls *.$(ModSuffix)`"; then\
540            $(Move) "`ls *.$(ModSuffix)`" $(PackageTargetDir);\
# Line 520 | Line 546 | else
546          fi
547  
548   else
549 < %.o : %.F90
549 > %.o : %.F90 $(MainMakefile)
550          $(MAKE) $(MakeOptions) $(PackageTargetDir)/$@
551          if test -n "`ls *.$(ModSuffix)`"; then\
552            $(Move) "`ls *.$(ModSuffix)`" $(PackageTargetDir);\
# Line 627 | Line 653 | find_objs = $(shell $(StaticArchiver) -t $(1))
653          $(Doxygen) $(DEV_ROOT)/make/Doxyfile
654  
655   #GUN make funtions to merge the libraries
656 < find_objs = $(shell $(StaticArchiver) -t $(1))
656 > find_objs = $(shell $(StaticArchiver) -t $(1) | $(EGREP) -v "SYMDEF")
657   extract_objs = $(shell $(StaticArchiver) -x $(1) $(call find_objs, $(1)))
658   create_archive = $(shell  $(StaticArchiver) $(StaticArchiverOptions) $(2) $(call find_objs, $(1)))
659   remove_objs = $(shell $(Delete) $(call find_objs, $(1)))
660   do_create = $(call extract_objs,$(1))$(call create_archive,$(1),$(2))$(call remove_objs,$(1))  
661 + do_link = $(shell $(LN_S) $(1) $(2))
662 + all_objs = $(foreach thisLib,$(LibNames), $(call find_objs, $(thisLib)))
663 + all_parallel_objs = $(foreach thisLib,$(ParallelLibNames), $(call find_objs, $(thisLib)))
664 + all_lib_objs = $(patsubst %,$(TargetDir)/%,$(call all_objs))
665 + all_lib_parallel_objs = $(patsubst %,$(ParallelTargetDir)/%,$(call all_parallel_objs))
666  
667   $(CombinedStaticLib) : $(LibDir)/.stamp_UP
668 <        $(Print) create $@      
669 <        $(foreach thisLib,$(LibNames),$(call do_create,$(thisLib),$@))
668 >        $(Print) creating $@            
669 >        $(StaticArchiver) $(StaticArchiverOptions) $@ $(call all_lib_objs)
670          $(Ranlib) $(CombinedStaticLib)
671  
672   $(CombinedParallelStaticLib) : $(LibDir)/.stamp_MPI
673 <        $(Print) create $@
674 <        $(foreach thisLib,$(ParallelLibNames), $(call do_create, $(thisLib), $@))
673 >        $(Print) creating $@
674 >        $(StaticArchiver) $(StaticArchiverOptions) $@ $(call all_lib_parallel_objs)
675          $(Ranlib) $(CombinedParallelStaticLib)
676  
677   # Executable
678 < $(Executable) : $(CombinedStaticLib) $(ObjectFiles) $(BinDir)
678 > $(Executable) : $(CombinedStaticLib) $(ObjectFiles)
679 >        if test ! -d $(BinDir); then \
680 >                $(MkDir) $(BinDir) ;\
681 >        fi
682          $(Linker) $(ObjectFiles) $(CombinedStaticLib) $(LinkOptions) $(LibDirs) $(Libraries) -o $@
683  
684 < $(ParallelExecutable) : $(CombinedParallelStaticLib) $(ParallelObjectFiles) $(BinDir)
684 > $(ParallelExecutable) : $(CombinedParallelStaticLib) $(ParallelObjectFiles)
685 >        if test ! -d $(BinDir); then \
686 >                $(MkDir) $(BinDir) ;\
687 >        fi
688          $(Linker) $(ParallelObjectFiles) $(CombinedParallelStaticLib) $(ParallelLinkOptions) $(LibDirs) $(Libraries) -o $@
689  
690   # Anything else is just copied from source to target
# Line 791 | Line 828 | _installall : _buildall _installdata
828   install : $(InstallListLoop)
829          $(Print) Done Install
830  
831 < _installall : _buildall _installdata
831 > _installall : _buildall _installdata _installlinks
832  
833   $(MyInstallDir) :
834          $(MkDir) $@
# Line 802 | Line 839 | endif      
839          $(InstallCommand) $(InstallFiles) $(MyInstallDir)
840   endif      
841  
842 + _installlinks :  $(MyInstallDir)
843 + ifneq "$(words $(MyLinkTargets))" "0"
844 +        @cd $(MyInstallDir)
845 +        $(foreach thisLink,$(MyLinkTargets),$(call do_link,$(MyLinkSource),$(thisLink)))
846 + endif      
847 +
848   # make statistics
849   _statisticsall :
850          @$(Print) $(patsubst %,$(CurrentDir)/%,$(SourceFiles)) >> $(DEV_ROOT)/files.tmp
# Line 812 | Line 855 | $(Executable).pure :
855          $(Print) Done statistics.
856  
857   # make pure
858 < $(Executable).pure :
859 <        $(Purify) $(PurifyOptions) $(CppCompiler) $(LinkOptions) $(LibDirs) \
860 <        $(LibList) $(ObjectFiles) -o $@
858 > #$(Executable).pure :
859 > #       $(Purify) $(PurifyOptions) $(CppCompiler) $(LinkOptions) $(LibDirs) \
860 > #       $(LibList) $(ObjectFiles) -o $@
861 > #
862 > #pure : $(Executable).pure
863  
819 pure : $(Executable).pure
820
864   #make cvslog
865   cvslog:
866          $(DEV_ROOT)/scripts/cvs2cl

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines