--- trunk/OOPSE-2.0/make/Makefile.in 2005/04/13 22:30:22 2190 +++ trunk/OOPSE-2.0/make/Makefile.in 2005/11/18 17:50:17 2456 @@ -52,6 +52,7 @@ PackageLibs = \ selection \ restraints \ lattice \ + openbabel #packages containing applications Applications = \ @@ -61,19 +62,26 @@ Applications = \ applications/dynamicProps \ applications/simpleBuilder\ applications/nanoRodBuilder \ + applications/atom2mdin Samples = \ samples/argon \ - samples/water/dimer \ + samples/water/dimer \ samples/water/spce \ samples/water/ssd \ samples/water/ssde \ + samples/water/ssdrf \ + samples/water/ssd-ion \ samples/water/tip3p_ice \ samples/water/tip4p \ samples/lipid \ samples/alkane \ samples/minimizer \ samples/metals \ + samples/thermoIntegration/liquid \ + samples/thermoIntegration/solid \ + samples/dipole \ + samples/shape \ samples/zcons \ IncludeDirs = \ @@ -85,6 +93,7 @@ Libraries = \ @MPI_LIB_DIR@ Libraries = \ + @LIBS@ \ @CGAL_LIBS@ \ @MPI_LIB@ \ @MPI_F90_LIB@ @@ -118,6 +127,7 @@ BinDir = $(DEV_ROOT)/bin ParallelTargetDir = $(DEV_ROOT)/MPIobj LibDir = $(DEV_ROOT)/lib MakeDir = $(DEV_ROOT)/make +MainMakefile = $(MakeDir)/Makefile BinDir = $(DEV_ROOT)/bin DocsDir = $(DEV_ROOT)/docs CurrentDir = $(CURDIR) @@ -325,12 +335,13 @@ INSTALL = @INSTALL@ CppCompiler = @CXX@ Linker = @CXX@ MakeDepend = makedepend +LN_S = @LN_S@ INSTALL = @INSTALL@ InstallProgram = @INSTALL_PROGRAM@ InstallScript = @INSTALL_SCRIPT@ InstallData = @INSTALL_DATA@ MkDir = @MKINSTALLDIRS@ -Delete = rm -fr +Delete = rm -f StaticArchiver = @AR@ DynamicArchiver = @CC@ FortranCompiler = @FC@ @@ -445,70 +456,70 @@ $(PackageTargetDir)/%.o : %.c $(MkDir) $@ # .c -> .o -$(PackageTargetDir)/%.o : %.c +$(PackageTargetDir)/%.o : %.c $(MainMakefile) $(Print) $@ $(CCompiler) $(COptions) -c $(IncludePath) $< -o $@ -$(PackageParallelTargetDir)/%.o : %.c +$(PackageParallelTargetDir)/%.o : %.c $(MainMakefile) $(Print) $@ $(CCompiler) $(CParallelOptions) -c $(IncludePath) $< -o $@ ifeq "$(UseMPI)" "yes" -%.o : %.c +%.o : %.c $(MainMakefile) $(MAKE) $(MakeOptions) $(PackageTargetDir)/$@ $(MAKE) $(MakeOptions) $(PackageParallelTargetDir)/$@ else -%.o : %.c +%.o : %.c $(MainMakefile) $(MAKE) $(MakeOptions) $(PackageTargetDir)/$@ endif # .cpp -> .o -$(PackageTargetDir)/%.o : %.cpp +$(PackageTargetDir)/%.o : %.cpp $(MainMakefile) $(CppCompiler) $(CppOptions) -c $(IncludePath) $< -o $@ -$(PackageParallelTargetDir)/%.o : %.cpp +$(PackageParallelTargetDir)/%.o : %.cpp $(MainMakefile) $(CppCompiler) $(CppParallelOptions) -c $(IncludePath) $< -o $@ ifeq "$(UseMPI)" "yes" -%.o : %.cpp +%.o : %.cpp $(MainMakefile) $(MAKE) $(MakeOptions) $(PackageTargetDir)/$@ $(MAKE) $(MakeOptions) $(PackageParallelTargetDir)/$@ else -%.o : %.cpp +%.o : %.cpp $(MainMakefile) $(MAKE) $(MakeOptions) $(PackageTargetDir)/$@ endif # .f -> .o -$(PackageTargetDir)/%.o : %.f +$(PackageTargetDir)/%.o : %.f $(MainMakefile) $(FortranCompiler) $(FortranOptions) -c $< -o $@ -$(PackageParallelTargetDir)/%.o : %.f +$(PackageParallelTargetDir)/%.o : %.f $(MainMakefile) $(FortranCompiler) $(FortranParallelOptions) -c $< -o $@ ifeq "$(UseMPI)" "yes" -%.o : %.f +%.o : %.f $(MainMakefile) $(MAKE) $(MakeOptions) $(PackageTargetDir)/$@ $(MAKE) $(MakeOptions) $(PackageParallelTargetDir)/$@ else -%.o : %.f +%.o : %.f $(MainMakefile) $(MAKE) $(MakeOptions) $(PackageTargetDir)/$@ endif # .F90 -> .o -$(PackageTargetDir)/%.o : %.F90 +$(PackageTargetDir)/%.o : %.F90 $(MainMakefile) $(F90Compiler) $(F90Options) $(IncludePath) -c $< -o $@ if test -n "`ls *.$(ModSuffix)`"; then \ $(Move) `ls *.$(ModSuffix)` $(PackageTargetDir);\ fi -$(PackageParallelTargetDir)/%.o : %.F90 +$(PackageParallelTargetDir)/%.o : %.F90 $(MainMakefile) $(F90Compiler) $(F90ParallelOptions) $(IncludePath) -c $< -o $@ if test -n "`ls *.$(ModSuffix)`"; then \ $(Move) "`ls *.$(ModSuffix)`" $(PackageParallelTargetDir);\ fi ifeq "$(UseMPI)" "yes" -%.o : %.F90 +%.o : %.F90 $(MainMakefile) $(MAKE) $(MakeOptions) $(PackageTargetDir)/$@ if test -n "`ls *.$(ModSuffix)`"; then\ $(Move) "`ls *.$(ModSuffix)`" $(PackageTargetDir);\ @@ -520,7 +531,7 @@ else fi else -%.o : %.F90 +%.o : %.F90 $(MainMakefile) $(MAKE) $(MakeOptions) $(PackageTargetDir)/$@ if test -n "`ls *.$(ModSuffix)`"; then\ $(Move) "`ls *.$(ModSuffix)`" $(PackageTargetDir);\ @@ -632,6 +643,7 @@ do_create = $(call extract_objs,$(1))$(call create_arc create_archive = $(shell $(StaticArchiver) $(StaticArchiverOptions) $(2) $(call find_objs, $(1))) remove_objs = $(shell $(Delete) $(call find_objs, $(1))) do_create = $(call extract_objs,$(1))$(call create_archive,$(1),$(2))$(call remove_objs,$(1)) +do_link = $(shell $(LN_S) $(1) $(2)) $(CombinedStaticLib) : $(LibDir)/.stamp_UP $(Print) create $@ @@ -791,7 +803,7 @@ _installall : _buildall _installdata install : $(InstallListLoop) $(Print) Done Install -_installall : _buildall _installdata +_installall : _buildall _installdata _installlinks $(MyInstallDir) : $(MkDir) $@ @@ -800,6 +812,13 @@ endif $(Print) $(InstallFiles) ifneq "$(words $(InstallFiles))" "0" $(InstallCommand) $(InstallFiles) $(MyInstallDir) +endif + +_installlinks : $(MyInstallDir) + $(Print) $(LinkTargets) +ifneq "$(words $(LinkTargets))" "0" + @cd $(MyInstallDir) + $(foreach thisLink,$(LinkTargets),$(call do_link,$(Executable),$(thisLink))) endif # make statistics @@ -812,15 +831,15 @@ $(Executable).pure : $(Print) Done statistics. # make pure -$(Executable).pure : - $(Purify) $(PurifyOptions) $(CppCompiler) $(LinkOptions) $(LibDirs) \ - $(LibList) $(ObjectFiles) -o $@ +#$(Executable).pure : +# $(Purify) $(PurifyOptions) $(CppCompiler) $(LinkOptions) $(LibDirs) \ +# $(LibList) $(ObjectFiles) -o $@ +# +#pure : $(Executable).pure -pure : $(Executable).pure - #make cvslog cvslog: - $(DEV_ROOT)/scripts/cvs2cl.pl + $(DEV_ROOT)/scripts/cvs2cl # Execute _runexe :