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 1932 by tim, Wed Jan 12 23:17:02 2005 UTC vs.
Revision 2024 by gezelter, Tue Feb 15 05:05:33 2005 UTC

# Line 49 | Line 49 | PackageLibs = \
49          integrators\
50          constraints \
51          minimizers \
52 +        selection \
53  
54   #packages containing applications
55   Applications = \
56          applications/oopse \
57          applications/dump2Xyz \
58          applications/simpleBuilder\
59 +        applications/staticProps \
60 +        applications/dynamicProps \
61  
62   Samples = \
63          samples/argon \
# Line 123 | Line 126 | Package          = $(subst $(shell cd $(SourceDir); pw
126   # /home/maul/gezelter/src/code/src/UseTheForce/Darkside --> UseTheForce/Darkside
127   #Package          = $(shell echo $(CurrentDir) | sed -e 's/^.*\/src\/\(.*\)/\1/g')
128   #use shell script to get the absolute path and then rip it off from $(CurrentDir)
129 < Package          = $(subst $(shell cd $(SourceDir); pwd)/,,$(CurrentDir))
129 > #Package          = $(subst $(shell cd $(SourceDir); pwd)/,,$(CurrentDir))
130 > # REMINDER: We are now using the Package line in each subdir makefile.
131 > # This avoids the strange path problem and the subshell
132  
133   PackageList              = $(Package)
134   PackageSourceDir         = $(SourceDir)/$(Package)
# Line 254 | Line 259 | MkDir                = @MKINSTALLDIRS@
259   INSTALL                = @INSTALL@
260   InstallProgram         = @INSTALL_PROGRAM@
261   InstallData            = @INSTALL_DATA@
262 < MkDir                = @MKINSTALLDIRS@
262 > MkDir                  = @MKINSTALLDIRS@
263   Delete                 = rm -fr
264   StaticArchiver         = @AR@
265   DynamicArchiver        = @CC@
# Line 285 | Line 290 | CppOptions             = $(FrcDeclare) @CXXFLAGS@
290                           -sourcepath $(SourceDir)
291   COptions               = $(FrcDeclare) @CFLAGS@
292   CParallelOptions       = $(FrcDeclare) $(ParallelDeclare) @CFLAGS@
293 < CppOptions             = $(FrcDeclare) @CXXFLAGS@
294 < CppParallelOptions     = $(FrcDeclare) $(ParallelDeclare) @CXXFLAGS@
293 > CppOptions             = $(FrcDeclare) @CXXFLAGS@ @OOPSE_TEMPLATE_FLAGS@
294 > CppParallelOptions     = $(FrcDeclare) $(ParallelDeclare) @CXXFLAGS@ @OOPSE_TEMPLATE_FLAGS@
295   FortranOptions         =
296   F90Options             =  @PREPFLAG@ @F90FLAGS@ @MODDIRFLAG@$(SourceDir) @MODDIRFLAG@$(TargetDir)
297   F90ParallelOptions     =  @PREPFLAG@ @F90FLAGS@ @MODDIRFLAG@$(SourceDir) @MODDIRFLAG@$(ParallelTargetDir)  @PREPDEFFLAG@$(ParallelDeclare)
# Line 364 | Line 369 | $(PackageTargetDir) :
369  
370   # Create target directory
371   $(PackageTargetDir) :
372 <        $(MakeDir) $@
372 >        $(MkDir) $@
373  
374 + $(BinDir) :
375 +        $(MkDir) $@
376 +
377   # .c -> .o
378   $(PackageTargetDir)/%.o : %.c
379          $(Print) $@
# Line 437 | Line 445 | ifeq "$(UseMPI)" "yes"
445          fi
446  
447          $(MAKE) $(MakeOptions) $(PackageParallelTargetDir)/$@
448 <        if test -n "`ls *.$(ModSuffix)`"; then\
449 <          $(Move) "`ls *.$(ModSuffix)`" $(PackageTargetDir);\
450 <        fi
448 >        if test -n "`ls *.$(ModSuffix)`"; then\
449 >          $(Move) "`ls *.$(ModSuffix)`" $(PackageTargetDir);\
450 >        fi
451  
452   else
453   %.o : %.F90
# Line 447 | Line 455 | else
455          if test -n "`ls *.$(ModSuffix)`"; then\
456            $(Move) "`ls *.$(ModSuffix)`" $(PackageTargetDir);\
457          fi
450
458   endif
459  
460  
# Line 567 | Line 574 | $(Executable) : $(CombinedStaticLib) $(ObjectFiles)
574          $(Ranlib) $(CombinedParallelStaticLib)
575  
576   # Executable
577 < $(Executable) : $(CombinedStaticLib) $(ObjectFiles)
578 <        $(Linker) $(ObjectFiles) $(LinkOptions) $(LibDirs) $(CombinedStaticLib) $(Libraries) -o $@
577 > $(Executable) : $(CombinedStaticLib) $(ObjectFiles) $(BinDir)
578 >        $(Linker) $(ObjectFiles) $(CombinedStaticLib) $(LinkOptions) $(LibDirs) $(Libraries) -o $@
579  
580 < $(ParallelExecutable) : $(CombinedParallelStaticLib) $(ParallelObjectFiles)
581 <        $(Linker) $(ParallelObjectFiles) $(ParallelLinkOptions) $(LibDirs) $(CombinedParallelStaticLib) $(Libraries) -o $@
580 > $(ParallelExecutable) : $(CombinedParallelStaticLib) $(ParallelObjectFiles) $(BinDir)
581 >        $(Linker) $(ParallelObjectFiles) $(CombinedParallelStaticLib) $(ParallelLinkOptions) $(LibDirs) $(Libraries) -o $@
582  
583   # Anything else is just copied from source to target
584   $(PackageTargetDir)/% : $(PackageSourceDir)/%

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines