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

Comparing trunk/OOPSE-2.0/make/Makefile.in (file contents):
Revision 1932 by tim, Wed Jan 12 23:17:02 2005 UTC vs.
Revision 2126 by gezelter, Mon Mar 21 19:22:55 2005 UTC

# Line 49 | Line 49 | PackageLibs = \
49          integrators\
50          constraints \
51          minimizers \
52 +        selection \
53 +        restraints \
54  
55   #packages containing applications
56   Applications = \
57          applications/oopse \
58          applications/dump2Xyz \
59          applications/simpleBuilder\
60 +        applications/staticProps \
61 +        applications/dynamicProps \
62  
63   Samples = \
64          samples/argon \
# Line 71 | Line 75 | IncludeDirs = \
75          samples/zcons \
76  
77   IncludeDirs = \
74        @SPRNG_INC_DIR@ \
78          @MPI_INC_DIR@
79  
80   LibraryDirs = \
78        @SPRNG_LIB_DIR@ \
81          @MPI_LIB_DIR@
82  
83   Libraries = \
82        @SPRNG_LIB@ \
84          @MPI_LIB@ \
85          @MPI_F90_LIB@
86  
# Line 123 | Line 124 | Package          = $(subst $(shell cd $(SourceDir); pw
124   # /home/maul/gezelter/src/code/src/UseTheForce/Darkside --> UseTheForce/Darkside
125   #Package          = $(shell echo $(CurrentDir) | sed -e 's/^.*\/src\/\(.*\)/\1/g')
126   #use shell script to get the absolute path and then rip it off from $(CurrentDir)
127 < Package          = $(subst $(shell cd $(SourceDir); pwd)/,,$(CurrentDir))
127 > #Package          = $(subst $(shell cd $(SourceDir); pwd)/,,$(CurrentDir))
128 > # REMINDER: We are now using the Package line in each subdir makefile.
129 > # This avoids the strange path problem and the subshell
130  
131   PackageList              = $(Package)
132   PackageSourceDir         = $(SourceDir)/$(Package)
# Line 213 | Line 216 | ifneq  "$(words $(ObjectFiles) $(ParallelObjectFiles))
216   #if Main is defined, do not build library. It may not be true sometimes
217   ifneq  "$(words $(ObjectFiles) $(ParallelObjectFiles))" "0"
218    DependencyFile    = $(PackageSourceDir)/Makedepend
219 <  ifneq "$(Main)" ""
219 >  ifneq "$(words $(Main))" "0"
220      Executable             = $(BinDir)/$(Main)
221      ParallelExecutable     = $(BinDir)/$(Main)_MPI
222    else
# Line 253 | Line 256 | InstallData            = @INSTALL_DATA@
256   MakeDepend             = makedepend
257   INSTALL                = @INSTALL@
258   InstallProgram         = @INSTALL_PROGRAM@
259 + InstallScript          = @INSTALL_SCRIPT@
260   InstallData            = @INSTALL_DATA@
261 < MkDir                = @MKINSTALLDIRS@
261 > MkDir                  = @MKINSTALLDIRS@
262   Delete                 = rm -fr
263   StaticArchiver         = @AR@
264   DynamicArchiver        = @CC@
# Line 285 | Line 289 | CppOptions             = $(FrcDeclare) @CXXFLAGS@
289                           -sourcepath $(SourceDir)
290   COptions               = $(FrcDeclare) @CFLAGS@
291   CParallelOptions       = $(FrcDeclare) $(ParallelDeclare) @CFLAGS@
292 < CppOptions             = $(FrcDeclare) @CXXFLAGS@
293 < CppParallelOptions     = $(FrcDeclare) $(ParallelDeclare) @CXXFLAGS@
292 > CppOptions             = $(FrcDeclare) @CXXFLAGS@ @OOPSE_TEMPLATE_FLAGS@
293 > CppParallelOptions     = $(FrcDeclare) $(ParallelDeclare) @CXXFLAGS@ @OOPSE_TEMPLATE_FLAGS@
294   FortranOptions         =
295   F90Options             =  @PREPFLAG@ @F90FLAGS@ @MODDIRFLAG@$(SourceDir) @MODDIRFLAG@$(TargetDir)
296   F90ParallelOptions     =  @PREPFLAG@ @F90FLAGS@ @MODDIRFLAG@$(SourceDir) @MODDIRFLAG@$(ParallelTargetDir)  @PREPDEFFLAG@$(ParallelDeclare)
# Line 364 | Line 368 | $(PackageTargetDir) :
368  
369   # Create target directory
370   $(PackageTargetDir) :
371 <        $(MakeDir) $@
371 >        $(MkDir) $@
372 >
373 > $(BinDir) :
374 >        $(MkDir) $@
375  
376   # .c -> .o
377   $(PackageTargetDir)/%.o : %.c
# Line 437 | Line 444 | ifeq "$(UseMPI)" "yes"
444          fi
445  
446          $(MAKE) $(MakeOptions) $(PackageParallelTargetDir)/$@
447 <        if test -n "`ls *.$(ModSuffix)`"; then\
448 <          $(Move) "`ls *.$(ModSuffix)`" $(PackageTargetDir);\
449 <        fi
447 >        if test -n "`ls *.$(ModSuffix)`"; then\
448 >          $(Move) "`ls *.$(ModSuffix)`" $(PackageTargetDir);\
449 >        fi
450  
451   else
452   %.o : %.F90
# Line 447 | Line 454 | else
454          if test -n "`ls *.$(ModSuffix)`"; then\
455            $(Move) "`ls *.$(ModSuffix)`" $(PackageTargetDir);\
456          fi
450
457   endif
458  
459  
# Line 567 | Line 573 | $(Executable) : $(CombinedStaticLib) $(ObjectFiles)
573          $(Ranlib) $(CombinedParallelStaticLib)
574  
575   # Executable
576 < $(Executable) : $(CombinedStaticLib) $(ObjectFiles)
577 <        $(Linker) $(ObjectFiles) $(LinkOptions) $(LibDirs) $(CombinedStaticLib) $(Libraries) -o $@
576 > $(Executable) : $(CombinedStaticLib) $(ObjectFiles) $(BinDir)
577 >        $(Linker) $(ObjectFiles) $(CombinedStaticLib) $(LinkOptions) $(LibDirs) $(Libraries) -o $@
578  
579 < $(ParallelExecutable) : $(CombinedParallelStaticLib) $(ParallelObjectFiles)
580 <        $(Linker) $(ParallelObjectFiles) $(ParallelLinkOptions) $(LibDirs) $(CombinedParallelStaticLib) $(Libraries) -o $@
579 > $(ParallelExecutable) : $(CombinedParallelStaticLib) $(ParallelObjectFiles) $(BinDir)
580 >        $(Linker) $(ParallelObjectFiles) $(CombinedParallelStaticLib) $(ParallelLinkOptions) $(LibDirs) $(Libraries) -o $@
581  
582   # Anything else is just copied from source to target
583   $(PackageTargetDir)/% : $(PackageSourceDir)/%
# Line 620 | Line 626 | _cleanall :
626          $(Print) Done clean.    
627  
628   _cleanall :
629 <        $(Delete) $(ObjectFiles) $(ParallelObjectFiles)
629 >        $(Delete) \
630 >                $(ObjectFiles) \
631 >                $(ParallelObjectFiles) \
632 >                $(JarFile) \
633 >                $(SharedLibrary) \
634 >                $(StaticLibrary) \
635 >                $(ParallelSharedLibrary) \
636 >                $(ParallelStaticLibrary) \
637 >                $(CombinedStaticLib) \
638 >                $(CombinedParallelStaticLib)
639  
640   # make distclean
641   distclean : $(PackageListLoop)
642          $(Print) Done clean.    
643  
644 < _distcleanall :
645 <        $(Delete) $(ObjectFiles) \
631 <                  $(ParallelObjectFiles) \
632 <                        $(JarFile) \
633 <                  $(SharedLibrary) \
634 <                  $(StaticLibrary) \
635 <                  $(ParallelSharedLibrary) \
636 <                  $(ParallelStaticLibrary) \
637 <                  $(Executable) \
644 > _distcleanall : _cleanall
645 >        $(Delete) $(Executable) \
646                    $(ParallelExecutable) \
647                    $(DependencyFile)
648  
641
649   # make depend
650   depend : $(PackageListLoop)
651          $(Print) Done dependencies.
# Line 714 | Line 721 | ifneq "$(words $(InstallFiles))" "0"
721   _installdata :  $(MyInstallDir)
722          $(Print) $(InstallFiles)
723   ifneq "$(words $(InstallFiles))" "0"
724 <        $(InstallData) $(InstallFiles) $(MyInstallDir)
724 >        $(InstallCommand) $(InstallFiles) $(MyInstallDir)
725   endif      
726  
727   # make statistics

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines