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 1553 by tim, Mon Oct 11 18:01:51 2004 UTC vs.
Revision 2101 by chrisfen, Thu Mar 10 15:10:24 2005 UTC

# Line 38 | Line 38 | PackageLibs = \
38   #packages containing libraries
39   PackageLibs = \
40          utils \
41 +        visitors \
42          math \
43          types \
44          primitives \
44        visitors \
45          UseTheForce/DarkSide \
46          UseTheForce \
47          brains \
48          io \
49 <        integrators \
50 <        minimizers \
49 >        integrators\
50          constraints \
51 <        profiling \
51 >        minimizers \
52 >        selection \
53          restraints \
54  
55   #packages containing applications
56   Applications = \
57          applications/oopse \
58          applications/dump2Xyz \
59 <        applications/simpleBuilder
59 >        applications/simpleBuilder\
60 >        applications/staticProps \
61 >        applications/dynamicProps \
62  
63   Samples = \
64          samples/argon \
# Line 73 | Line 75 | IncludeDirs = \
75          samples/zcons \
76  
77   IncludeDirs = \
76        @SPRNG_INC_DIR@ \
78          @MPI_INC_DIR@
79  
80   LibraryDirs = \
80        @SPRNG_LIB_DIR@ \
81          @MPI_LIB_DIR@
82  
83   Libraries = \
84        @SPRNG_LIB@ \
84          @MPI_LIB@ \
85          @MPI_F90_LIB@
86  
# Line 125 | 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 247 | Line 248 | Move                   = mv
248   #
249   #---------------------------------------------------------------------------
250   Print                  = @echo
251 < Move                   = mv
251 > Move                   = mv -f
252   Copy                   = cp
253   CCompiler              = @CC@
254   CppCompiler            = @CXX@
# Line 256 | 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 286 | COptions               = $(FrcDeclare)
286   JniOptions             =
287   RmiOptions             = -d $(TargetDir) -classpath $(ClassPath) \
288                           -sourcepath $(SourceDir)
289 < COptions               = $(FrcDeclare)
290 < CParallelOptions       = $(FrcDeclare) $(ParallelDeclare)
291 < CppOptions             = $(FrcDeclare)
292 < CppParallelOptions     = $(FrcDeclare) $(ParallelDeclare)
289 > COptions               = $(FrcDeclare) @CFLAGS@
290 > CParallelOptions       = $(FrcDeclare) $(ParallelDeclare) @CFLAGS@
291 > CppOptions             = $(FrcDeclare) @CXXFLAGS@ @OOPSE_TEMPLATE_FLAGS@
292 > CppParallelOptions     = $(FrcDeclare) $(ParallelDeclare) @CXXFLAGS@ @OOPSE_TEMPLATE_FLAGS@
293   FortranOptions         =
294 < F90Options             =  @PREPFLAG@ @F90FLAGS@ @MODDIRFLAG@$(SourceDir) -module $(TargetDir)
295 < F90ParallelOptions     =  @PREPFLAG@ @F90FLAGS@ @MODDIRFLAG@$(SourceDir) -module $(ParallelTargetDir)  @PREPDEFFLAG@$(ParallelDeclare)
294 > F90Options             =  @PREPFLAG@ @F90FLAGS@ @MODDIRFLAG@$(SourceDir) @MODDIRFLAG@$(TargetDir)
295 > F90ParallelOptions     =  @PREPFLAG@ @F90FLAGS@ @MODDIRFLAG@$(SourceDir) @MODDIRFLAG@$(ParallelTargetDir)  @PREPDEFFLAG@$(ParallelDeclare)
296   JavaCompilerOptions    = -d $(TargetDir) -classpath $(ClassPath) \
297                           -sourcepath $(SourceDir) -deprecation
298   JavaRunOptions         = -classpath $(ClassPath)
# Line 366 | 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 421 | Line 425 | $(PackageTargetDir)/%.o : %.F90
425   # .F90 -> .o
426   $(PackageTargetDir)/%.o : %.F90
427          $(F90Compiler) $(F90Options) $(IncludePath) -c $< -o $@
428 <        if test -f *.$(ModSuffix); then \
429 <          $(Move) *.$(ModSuffix) $(PackageTargetDir);\
428 >        if test -n "`ls *.$(ModSuffix)`"; then \
429 >          $(Move) `ls *.$(ModSuffix)` $(PackageTargetDir);\
430          fi
431  
432   $(PackageParallelTargetDir)/%.o : %.F90
433          $(F90Compiler) $(F90ParallelOptions) $(IncludePath) -c $< -o $@
434 <        if test -f *.$(ModSuffix); then \
435 <          $(Move) *.$(ModSuffix) $(PackageParallelTargetDir);\
434 >        if test -n "`ls *.$(ModSuffix)`"; then \
435 >          $(Move) "`ls *.$(ModSuffix)`" $(PackageParallelTargetDir);\
436          fi
437  
438   ifeq "$(UseMPI)" "yes"
439   %.o : %.F90
440          $(MAKE) $(MakeOptions) $(PackageTargetDir)/$@
441 <        if test -f *.$(ModSuffix); then \
442 <          $(Move) *.$(ModSuffix) $(PackageTargetDir);\
443 <        fi
441 >        if test -n "`ls *.$(ModSuffix)`"; then\
442 >          $(Move) "`ls *.$(ModSuffix)`" $(PackageTargetDir);\
443 >        fi
444  
445          $(MAKE) $(MakeOptions) $(PackageParallelTargetDir)/$@
446 <        if test -f *.$(ModSuffix); then \
447 <          $(Move) *.$(ModSuffix) $(PackageParallelTargetDir);\
446 >        if test -n "`ls *.$(ModSuffix)`"; then\
447 >          $(Move) "`ls *.$(ModSuffix)`" $(PackageTargetDir);\
448          fi
449  
450   else
451   %.o : %.F90
452          $(MAKE) $(MakeOptions) $(PackageTargetDir)/$@
453 <        if test -f *.$(ModSuffix); then \
454 <          $(Move) *.$(ModSuffix) $(PackageTargetDir);\
455 <        fi
452 <
453 >        if test -n "`ls *.$(ModSuffix)`"; then\
454 >          $(Move) "`ls *.$(ModSuffix)`" $(PackageTargetDir);\
455 >        fi
456   endif
457  
458  
# Line 569 | 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)/%
# Line 622 | Line 625 | _cleanall :
625          $(Print) Done clean.    
626  
627   _cleanall :
628 <        $(Delete) $(ObjectFiles) $(ParallelObjectFiles)
628 >        $(Delete) \
629 >                $(ObjectFiles) \
630 >                $(ParallelObjectFiles) \
631 >                $(JarFile) \
632 >                $(SharedLibrary) \
633 >                $(StaticLibrary) \
634 >                $(ParallelSharedLibrary) \
635 >                $(ParallelStaticLibrary) \
636 >                $(CombinedStaticLib) \
637 >                $(CombinedParallelStaticLib)
638  
639   # make distclean
640   distclean : $(PackageListLoop)
641          $(Print) Done clean.    
642  
643 < _distcleanall :
644 <        $(Delete) $(ObjectFiles) \
633 <                  $(ParallelObjectFiles) \
634 <                        $(JarFile) \
635 <                  $(SharedLibrary) \
636 <                  $(StaticLibrary) \
637 <                  $(ParallelSharedLibrary) \
638 <                  $(ParallelStaticLibrary) \
639 <                  $(Executable) \
643 > _distcleanall : _cleanall
644 >        $(Delete) $(Executable) \
645                    $(ParallelExecutable) \
646                    $(DependencyFile)
647  
643
648   # make depend
649   depend : $(PackageListLoop)
650          $(Print) Done dependencies.
# Line 652 | Line 656 | ifneq "$(words $(CppFiles))" "0"
656          @cd $(PackageSourceDir)
657  
658   ifneq "$(words $(CppFiles))" "0"
659 <        $(CppCompiler) $(CppOptions) $(IncludePath) -MM $(CppFiles) > Make.cpptemp
660 <        @cat Make.cpptemp | sed 's/^[a-zA-Z0-9]/$$\(TargetDir\)\/&/g' >> $(DependencyFile)
659 >        $(DEV_ROOT)/scripts/filepp  -I $(DEV_ROOT)/src -od '$$(TargetDir)/' -MM $(CppFiles)>> Make.cpptemp
660 >        @cat Make.cpptemp  >> $(DependencyFile)
661          $(Delete) Make.cpptemp
662 <        $(CppCompiler) $(CppParallelOptions) $(IncludePath) -MM $(CppFiles) > Make.cpptemp
663 <        @cat Make.cpptemp | sed 's/^[a-zA-Z0-9]/$$\(ParallelTargetDir\)\/&/g' >> $(DependencyFile)
662 >
663 >  ifeq "$(UseMPI)" "yes"
664 >        $(DEV_ROOT)/scripts/filepp  -I $(DEV_ROOT)/src -od '$$(ParallelTargetDir)/' $(ParallelDeclare) -MM $(CppFiles)>> Make.cpptemp
665 >        @cat Make.cpptemp  >> $(DependencyFile)
666          @$(Delete) Make.cpptemp
667 +  endif
668 +
669   endif
670  
671   ifneq "$(words $(CFiles))" "0"
672 <        $(CCompiler) $(COptions) $(IncludePath) -MM $(CFiles) $(DerivedCFiles) > Make.ctemp
673 <        @cat Make.ctemp | sed 's/^[a-zA-Z0-9]/$$\(TargetDir\)\/&/g' >> $(DependencyFile)
672 >        $(DEV_ROOT)/scripts/filepp  -I $(DEV_ROOT)/src -od '$$(TargetDir)/'  -MM $(CFiles) $(DerivedCFiles)  >> Make.ctemp
673 >        @cat Make.ctemp  >> $(DependencyFile)
674          $(Delete) Make.ctemp
675 <        $(CCompiler) $(CParallelOptions) $(IncludePath) -MM $(CFiles) $(DerivedCFiles) > Make.ctemp
676 <        @cat Make.ctemp | sed 's/^[a-zA-Z0-9]/$$\(ParallelTargetDir\)\/&/g' >> $(DependencyFile)
675 >
676 >  ifeq "$(UseMPI)" "yes"
677 >        $(DEV_ROOT)/scripts/filepp  -I $(DEV_ROOT)/src -od '$$(ParallelTargetDir)/' $(ParallelDeclare) -MM $(CFiles) $(DerivedCFiles)  >> Make.ctemp
678 >        @cat Make.ctemp  >> $(DependencyFile)
679          @$(Delete) Make.ctemp
680 +  endif
681 +
682   endif
683  
684   ifneq "$(words $(F90Files))" "0"
685 <        $(DEV_ROOT)/scripts/filepp  -I $(DEV_ROOT)/src -od '$$(TargetDir)/' $(F90Declare) -mc $(ModuleCase) -ms $(ModSuffix) $(F90Files) > Make.ftemp
674 <        $(DEV_ROOT)/scripts/filepp  -I $(DEV_ROOT)/src -od '$$(ParallelTargetDir)/' $(ParallelDeclare) $(F90Declare) -mc $(ModuleCase) -ms $(ModSuffix)  $(F90Files) >> Make.ftemp
685 >        $(DEV_ROOT)/scripts/filepp  -I $(DEV_ROOT)/src -od '$$(TargetDir)/' $(F90Declare) -MM -mc $(ModuleCase) -ms $(ModSuffix) $(F90Files) > Make.ftemp
686          @cat Make.ftemp >> $(DependencyFile)
687          @$(Delete) Make.ftemp
688 +
689 +  ifeq "$(UseMPI)" "yes"
690 +        $(DEV_ROOT)/scripts/filepp  -I $(DEV_ROOT)/src -od '$$(ParallelTargetDir)/' $(ParallelDeclare) $(F90Declare) -MM -mc $(ModuleCase) -ms $(ModSuffix)  $(F90Files) >> Make.ftemp
691 +        @cat Make.ftemp >> $(DependencyFile)
692 +        @$(Delete) Make.ftemp
693 +  endif
694 +
695   endif
696  
697   # make lib
# Line 704 | Line 722 | endif      
722   ifneq "$(words $(InstallFiles))" "0"
723          $(InstallData) $(InstallFiles) $(MyInstallDir)
724   endif      
725 <        
725 >
726   # make statistics
727   _statisticsall :
728          @$(Print) $(patsubst %,$(CurrentDir)/%,$(SourceFiles)) >> $(DEV_ROOT)/files.tmp

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines