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 1984 by tim, Mon Feb 7 20:31:50 2005 UTC

# Line 49 | Line 49 | PackageLibs = \
49          integrators\
50          constraints \
51          minimizers \
52 +        selection \
53  
54   #packages containing applications
55   Applications = \
# 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 254 | Line 257 | MkDir                = @MKINSTALLDIRS@
257   INSTALL                = @INSTALL@
258   InstallProgram         = @INSTALL_PROGRAM@
259   InstallData            = @INSTALL_DATA@
260 < MkDir                = @MKINSTALLDIRS@
260 > MkDir                  = @MKINSTALLDIRS@
261   Delete                 = rm -fr
262   StaticArchiver         = @AR@
263   DynamicArchiver        = @CC@
# Line 285 | Line 288 | CppOptions             = $(FrcDeclare) @CXXFLAGS@
288                           -sourcepath $(SourceDir)
289   COptions               = $(FrcDeclare) @CFLAGS@
290   CParallelOptions       = $(FrcDeclare) $(ParallelDeclare) @CFLAGS@
291 < CppOptions             = $(FrcDeclare) @CXXFLAGS@
292 < CppParallelOptions     = $(FrcDeclare) $(ParallelDeclare) @CXXFLAGS@
291 > CppOptions             = $(FrcDeclare) @CXXFLAGS@ @OOPSE_TEMPLATE_FLAGS@
292 > CppParallelOptions     = $(FrcDeclare) $(ParallelDeclare) @CXXFLAGS@ @OOPSE_TEMPLATE_FLAGS@
293   FortranOptions         =
294   F90Options             =  @PREPFLAG@ @F90FLAGS@ @MODDIRFLAG@$(SourceDir) @MODDIRFLAG@$(TargetDir)
295   F90ParallelOptions     =  @PREPFLAG@ @F90FLAGS@ @MODDIRFLAG@$(SourceDir) @MODDIRFLAG@$(ParallelTargetDir)  @PREPDEFFLAG@$(ParallelDeclare)
# Line 364 | Line 367 | $(PackageTargetDir) :
367  
368   # Create target directory
369   $(PackageTargetDir) :
370 <        $(MakeDir) $@
370 >        $(MkDir) $@
371  
372 + $(BinDir) :
373 +        $(MkDir) $@
374 +
375   # .c -> .o
376   $(PackageTargetDir)/%.o : %.c
377          $(Print) $@
# Line 437 | Line 443 | ifeq "$(UseMPI)" "yes"
443          fi
444  
445          $(MAKE) $(MakeOptions) $(PackageParallelTargetDir)/$@
446 <        if test -n "`ls *.$(ModSuffix)`"; then\
447 <          $(Move) "`ls *.$(ModSuffix)`" $(PackageTargetDir);\
448 <        fi
446 >        if test -n "`ls *.$(ModSuffix)`"; then\
447 >          $(Move) "`ls *.$(ModSuffix)`" $(PackageTargetDir);\
448 >        fi
449  
450   else
451   %.o : %.F90
# Line 447 | Line 453 | else
453          if test -n "`ls *.$(ModSuffix)`"; then\
454            $(Move) "`ls *.$(ModSuffix)`" $(PackageTargetDir);\
455          fi
450
456   endif
457  
458  
# Line 567 | Line 572 | $(Executable) : $(CombinedStaticLib) $(ObjectFiles)
572          $(Ranlib) $(CombinedParallelStaticLib)
573  
574   # Executable
575 < $(Executable) : $(CombinedStaticLib) $(ObjectFiles)
576 <        $(Linker) $(ObjectFiles) $(LinkOptions) $(LibDirs) $(CombinedStaticLib) $(Libraries) -o $@
575 > $(Executable) : $(CombinedStaticLib) $(ObjectFiles) $(BinDir)
576 >        $(Linker) $(ObjectFiles) $(CombinedStaticLib) $(LinkOptions) $(LibDirs) $(Libraries) -o $@
577  
578 < $(ParallelExecutable) : $(CombinedParallelStaticLib) $(ParallelObjectFiles)
579 <        $(Linker) $(ParallelObjectFiles) $(ParallelLinkOptions) $(LibDirs) $(CombinedParallelStaticLib) $(Libraries) -o $@
578 > $(ParallelExecutable) : $(CombinedParallelStaticLib) $(ParallelObjectFiles) $(BinDir)
579 >        $(Linker) $(ParallelObjectFiles) $(CombinedParallelStaticLib) $(ParallelLinkOptions) $(LibDirs) $(Libraries) -o $@
580  
581   # Anything else is just copied from source to target
582   $(PackageTargetDir)/% : $(PackageSourceDir)/%

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines