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 1518 by tim, Sat Oct 2 04:22:07 2004 UTC vs.
Revision 1715 by chrisfen, Fri Nov 5 21:04:12 2004 UTC

# Line 34 | Line 34 | IS_UNIX=1
34   #
35   #---------------------------------------------------------------------------
36   IS_UNIX=1
37 < #packages to be made
38 < Packages = \
37 >
38 > #packages containing libraries
39 > PackageLibs = \
40          utils \
41          math \
42          types \
# Line 45 | Line 46 | Packages = \
46          UseTheForce \
47          brains \
48          io \
48        integrators \
49        minimizers \
49          constraints \
50          profiling \
51          restraints \
52 +        minimizers \
53 +
54 + #packages containing applications
55 + Applications = \
56          applications/oopse \
57          applications/dump2Xyz \
58 <        applications/simpleBuilder \
58 >        applications/simpleBuilder
59  
60 < #packages contain libraries
61 < PackageLibs = \
62 <        utils \
63 <        math \
64 <        types \
65 <        primitives \
66 <        visitors \
67 <        UseTheForce/DarkSide \
68 <        UseTheForce \
69 <        brains \
70 <        io \
71 <        integrators \
72 <        minimizers \
70 <        constraints \
71 <        profiling \
72 <        restraints \
60 > Samples = \
61 >        samples/argon \
62 >        samples/water/dimer \
63 >        samples/water/spce \
64 >        samples/water/ssd \
65 >        samples/water/ssde \
66 >        samples/water/tip3p_ice \
67 >        samples/water/tip4p \
68 >        samples/lipid \
69 >        samples/alkane \
70 >        samples/minimizer \
71 >        samples/metals \
72 >        samples/zcons \
73  
74   IncludeDirs = \
75 <        /usr/include \
76 <        /usr/local/include
75 >        @SPRNG_INC_DIR@ \
76 >        @MPI_INC_DIR@
77  
78   LibraryDirs = \
79 <        /usr/lib \
80 <        /usr/local/mpich/lib \
81 <        /usr/local/lib \
82 <        /usr/local/intel/compiler81/lib \
79 >        @SPRNG_LIB_DIR@ \
80 >        @MPI_LIB_DIR@
81  
82   Libraries = \
83 <        mpich \
84 <        sprng \
85 <        ifcore \
83 >        @SPRNG_LIB@ \
84 >        @MPI_LIB@ \
85 >        @MPI_F90_LIB@
86  
87 + OopseHome       = @OOPSE_HOME@
88 + ForceParamDir   = $(OopseHome)/share/forceFields
89 + SampleSimDir    = $(OopseHome)/share/samples
90 + InstallBinDir   = $(OopseHome)/bin
91 + DocDir          = $(OopseHome)/doc
92 + FrcDeclare      = -DFRC_PATH="$(ForceParamDir)"
93 + F90Declare      = -D__FORTRAN90
94 + ParallelDeclare = -DIS_MPI
95 + UseMPI          = @USE_MPI@
96 + ModuleCase      = @F90_MODULE_NAMES@
97 + ModSuffix       = @MOD@
98 + LinkOptions = \
99 +        @F90LIBS@
100 +
101 + ParallelLinkOptions = \
102 +        @F90LIBS@
103 +
104 +
105   #---------------------------------------------------------------------------
106   #
107   #  Directories
# Line 100 | Line 116 | CurrentDir        = $(CURDIR)
116   BinDir            = $(DEV_ROOT)/bin
117   DocsDir           = $(DEV_ROOT)/docs
118   CurrentDir        = $(CURDIR)
119 + CombinedStaticLib = $(LibDir)/libOOPSE.a
120 + CombinedParallelStaticLib = $(LibDir)/libOOPSE_MPI.a
121  
122   ifdef Source
123   #get the relative path of current package to source directory
# Line 114 | Line 132 | PackageList              = $(Packages) $(JavaPackages)
132   PackageParallelTargetDir = $(ParallelTargetDir)
133   JavaMainClass            = $(subst /,.,$(Package)).$(Main)
134   else
135 < PackageList              = $(Packages) $(JavaPackages)
135 > PackageList              = $(PackageLibs) $(JavaPackages) $(Applications)
136   endif
137  
138   PackageListLoop          = $(patsubst %,$(SourceDir)/%/.loop,$(PackageList))
# Line 165 | Line 183 | ObjectFiles            = $(CFiles:%.c=        $(Packag
183   JniHeaders             = $(JniSource:%.java=  $(PackageSourceDir)/%.h)
184   ObjectFiles            = $(CFiles:%.c=        $(PackageTargetDir)/%.o)\
185                           $(CppFiles:%.cpp=    $(PackageTargetDir)/%.o)\
186 <                                     $(FortranFiles:%.f=  $(PackageTargetDir)/%.o)\
187 <                                     $(F90Files:%.F90=    $(PackageTargetDir)/%.o)\
188 <                                     $(LexFiles:%.l=      $(PackageTargetDir)/%.o)\
189 <                                     $(YaccFiles:%.y=     $(PackageTargetDir)/%.o)
186 >                         $(FortranFiles:%.f=  $(PackageTargetDir)/%.o)\
187 >                         $(F90Files:%.F90=    $(PackageTargetDir)/%.o)\
188 >                         $(LexFiles:%.l=      $(PackageTargetDir)/%.o)\
189 >                         $(YaccFiles:%.y=     $(PackageTargetDir)/%.o)
190   ParallelObjectFiles    = $(CFiles:%.c=        $(PackageParallelTargetDir)/%.o)\
191 <                                     $(CppFiles:%.cpp=    $(PackageParallelTargetDir)/%.o)\
192 <                                     $(FortranFiles:%.f=  $(PackageParallelTargetDir)/%.o)\
193 <                                     $(F90Files:%.F90=    $(PackageParallelTargetDir)/%.o)\
194 <                                     $(LexFiles:%.l=      $(PackageParallelTargetDir)/%.o)\
195 <                                     $(YaccFiles:%.y=     $(PackageParallelTargetDir)/%.o)
191 >                         $(CppFiles:%.cpp=    $(PackageParallelTargetDir)/%.o)\
192 >                         $(FortranFiles:%.f=  $(PackageParallelTargetDir)/%.o)\
193 >                         $(F90Files:%.F90=    $(PackageParallelTargetDir)/%.o)\
194 >                         $(LexFiles:%.l=      $(PackageParallelTargetDir)/%.o)\
195 >                         $(YaccFiles:%.y=     $(PackageParallelTargetDir)/%.o)
196  
197   DerivedSource          = $(YaccFiles:%.y=    %.h) \
198 <                               $(YaccFiles:%.y=    %.c) \
199 <                               $(LexFiles:%.l=     %.c)
198 >                         $(YaccFiles:%.y=    %.c) \
199 >                         $(LexFiles:%.l=     %.c)
200  
201   DerivedCFiles          = $(YaccFiles:%.y=    %.c) \
202 <                               $(LexFiles:%.l=     %.c)
202 >                         $(LexFiles:%.l=     %.c)
203  
204   OtherTargetFiles       = $(OtherSourceFiles:%=$(PackageTargetDir)/%)
205  
# Line 200 | Line 218 | ifneq  "$(words $(ObjectFiles) $(ParallelObjectFiles))
218      Executable             = $(BinDir)/$(Main)
219      ParallelExecutable     = $(BinDir)/$(Main)_MPI
220    else
221 <    SharedLibrary          = $(LibDir)/lib$(subst /,,$(patsubst %,oopse_%,$(Package))).so
222 <    StaticLibrary          = $(LibDir)/lib$(subst /,,$(patsubst %,oopse_%,$(Package))).a
221 >    SharedLibrary          = $(LibDir)/lib$(subst /,,$(patsubst %,oopse_%,$(Package)))_UP.so
222 >    StaticLibrary          = $(LibDir)/lib$(subst /,,$(patsubst %,oopse_%,$(Package)))_UP.a
223      ParallelSharedLibrary  = $(LibDir)/lib$(subst /,,$(patsubst %,oopse_%,$(Package)))_MPI.so
224      ParallelStaticLibrary  = $(LibDir)/lib$(subst /,,$(patsubst %,oopse_%,$(Package)))_MPI.a
225    endif
226   endif
227 +
228   #
229   # Misc
230   #
# Line 213 | Line 232 | LocalLibs        = $(subst /,,$(patsubst %, oopse_%, $
232   JavaPackageNames = $(subst /,.,$(JavaPackages))
233   IncludePath      = -I$(SourceDir) $(IncludeDirs:%=-I%)
234   LibDirs          = -L$(LibDir)    $(LibraryDirs:%=-L%)
235 < LocalLibs        = $(subst /,,$(patsubst %, oopse_%, $(PackageLibs)))
236 < LibList          = $(LocalLibs:%=-l%) $(Libraries:%=-l%)
235 > LocalLibs        = $(subst /,,$(patsubst %, oopse_%_UP, $(PackageLibs)))
236 > ParallelLocalLibs= $(subst /,,$(patsubst %, oopse_%_MPI, $(PackageLibs)))
237 > LibList          = $(LocalLibs:%=-l%) $(Libraries)
238 > LibNames         = $(LocalLibs:%=$(LibDir)/lib%.a)
239 > ParallelLibList  = $(ParallelLocalLibs:%=-l%) $(Libraries)
240 > ParallelLibNames = $(ParallelLocalLibs:%=$(LibDir)/lib%.a)
241  
242  
243   #---------------------------------------------------------------------------
# Line 229 | Line 252 | Install                = @INSTALL@
252   CppCompiler            = @CXX@
253   Linker                 = @CXX@
254   MakeDepend             = makedepend
255 < Install                = @INSTALL@
255 > INSTALL                = @INSTALL@
256   InstallProgram         = @INSTALL_PROGRAM@
257   InstallData            = @INSTALL_DATA@
258 < MakeDir                = @MKINSTALLDIRS@
258 > MkDir                = @MKINSTALLDIRS@
259   Delete                 = rm -fr
260   StaticArchiver         = @AR@
261   DynamicArchiver        = @CC@
# Line 250 | Line 273 | Lex                    = @LEX@
273   List                   = cat
274   Yacc                   = @YACC@
275   Lex                    = @LEX@
276 + Ranlib                 = @RANLIB@
277 + Doxygen                = @DOXYGEN@
278  
254
279   MakeOptions            = -k
280   MakeDependOptions      =
281   StaticArchiverOptions  = rc
# Line 260 | Line 284 | FortranOptions         =
284   JniOptions             =
285   RmiOptions             = -d $(TargetDir) -classpath $(ClassPath) \
286                           -sourcepath $(SourceDir)
287 + COptions               = $(FrcDeclare) @CFLAGS@
288 + CParallelOptions       = $(FrcDeclare) $(ParallelDeclare) @CFLAGS@
289 + CppOptions             = $(FrcDeclare) @CXXFLAGS@
290 + CppParallelOptions     = $(FrcDeclare) $(ParallelDeclare) @CXXFLAGS@
291   FortranOptions         =
292 < F90Options             =  -I$(SourceDir) -module $(TargetDir)
292 > F90Options             =  @PREPFLAG@ @F90FLAGS@ @MODDIRFLAG@$(SourceDir) @MODDIRFLAG@$(TargetDir)
293 > F90ParallelOptions     =  @PREPFLAG@ @F90FLAGS@ @MODDIRFLAG@$(SourceDir) @MODDIRFLAG@$(ParallelTargetDir)  @PREPDEFFLAG@$(ParallelDeclare)
294   JavaCompilerOptions    = -d $(TargetDir) -classpath $(ClassPath) \
295                           -sourcepath $(SourceDir) -deprecation
296   JavaRunOptions         = -classpath $(ClassPath)
# Line 287 | Line 316 | Space                  = $(Empty) $(Empty)
316  
317   #---------------------------------------------------------------------------
318   #
319 + #  Install
320 + #
321 + #---------------------------------------------------------------------------
322 +
323 + ifneq "$(words $(SampleFiles))" "0"
324 +  MySample                 = $(subst $(shell cd $(DEV_ROOT)/samples; pwd)/,,$(CurrentDir))
325 +  MyInstallDir             = $(SampleSimDir)/$(MySample)
326 +  InstallFiles             = $(SampleFiles)
327 +  InstallCommand           = $(InstallData)
328 + endif
329 +
330 + ifneq "$(words $(Main))" "0"
331 +  MyInstallDir             = $(InstallBinDir)
332 +  ifeq "$(UseMPI)" "yes"
333 +    InstallFiles             = $(Executable) $(ParallelExecutable)
334 +  else
335 +    InstallFiles             = $(Executable)
336 +  endif
337 +  InstallCommand           = $(InstallProgram)
338 + endif
339 +
340 + ifneq "$(words $(ForcefieldFiles))" "0"
341 +  MyInstallDir             = $(ForceParamDir)
342 +  InstallFiles             = $(ForcefieldFiles)
343 +  InstallCommand           = $(InstallData)
344 + endif
345 +
346 + ifneq "$(words $(InstallFiles))" "0"
347 +  InstallList            =
348 + else
349 +  InstallList            = $(patsubst %,$(DEV_ROOT)/%,$(Samples)) $(DEV_ROOT)/forceFields $(patsubst %, $(SourceDir)/%,$(Applications))
350 + endif
351 +
352 + InstallListLoop          = $(patsubst %,$(SourceDir)/%/.install,$(PackageList))  $(patsubst %,%/.install,$(InstallList))
353 +
354 +
355 +
356 + #---------------------------------------------------------------------------
357 + #
358   # Rules
359   #
360   #---------------------------------------------------------------------------
# Line 304 | Line 372 | $(PackageTargetDir)/%.o : %.c
372          $(Print) $@
373          $(CCompiler) $(COptions) -c $(IncludePath) $< -o $@
374  
375 + $(PackageParallelTargetDir)/%.o : %.c
376 +        $(Print) $@
377 +        $(CCompiler) $(CParallelOptions) -c $(IncludePath) $< -o $@
378 +
379 + ifeq "$(UseMPI)" "yes"
380   %.o : %.c
381          $(MAKE) $(MakeOptions) $(PackageTargetDir)/$@
382 +        $(MAKE) $(MakeOptions) $(PackageParallelTargetDir)/$@
383 + else
384 + %.o : %.c
385 +        $(MAKE) $(MakeOptions) $(PackageTargetDir)/$@
386 + endif
387  
388   # .cpp -> .o
389   $(PackageTargetDir)/%.o : %.cpp
390          $(CppCompiler) $(CppOptions) -c $(IncludePath) $< -o $@
391  
392 + $(PackageParallelTargetDir)/%.o : %.cpp
393 +        $(CppCompiler) $(CppParallelOptions) -c $(IncludePath) $< -o $@
394 +
395 + ifeq "$(UseMPI)" "yes"
396   %.o : %.cpp
397          $(MAKE) $(MakeOptions) $(PackageTargetDir)/$@
398 +        $(MAKE) $(MakeOptions) $(PackageParallelTargetDir)/$@
399 + else
400 + %.o : %.cpp
401 +        $(MAKE) $(MakeOptions) $(PackageTargetDir)/$@
402 + endif
403  
404   # .f -> .o
405   $(PackageTargetDir)/%.o : %.f
406          $(FortranCompiler) $(FortranOptions) -c $< -o $@
407  
408 + $(PackageParallelTargetDir)/%.o : %.f
409 +        $(FortranCompiler) $(FortranParallelOptions) -c $< -o $@
410 +
411 + ifeq "$(UseMPI)" "yes"
412   %.o : %.f
413          $(MAKE) $(MakeOptions) $(PackageTargetDir)/$@
414 +        $(MAKE) $(MakeOptions) $(PackageParallelTargetDir)/$@
415 + else
416 + %.o : %.f
417 +        $(MAKE) $(MakeOptions) $(PackageTargetDir)/$@
418 + endif
419  
420   # .F90 -> .o
421   $(PackageTargetDir)/%.o : %.F90
422 <        $(F90Compiler) $(F90Options) -c $< -o $@
422 >        $(F90Compiler) $(F90Options) $(IncludePath) -c $< -o $@
423 >        if test -f *.$(ModSuffix); then \
424 >          $(Move) *.$(ModSuffix) $(PackageTargetDir);\
425 >        fi
426  
427 + $(PackageParallelTargetDir)/%.o : %.F90
428 +        $(F90Compiler) $(F90ParallelOptions) $(IncludePath) -c $< -o $@
429 +        if test -f *.$(ModSuffix); then \
430 +          $(Move) *.$(ModSuffix) $(PackageParallelTargetDir);\
431 +        fi
432 +
433 + ifeq "$(UseMPI)" "yes"
434   %.o : %.F90
435          $(MAKE) $(MakeOptions) $(PackageTargetDir)/$@
436 +        if test -f *.$(ModSuffix); then \
437 +          $(Move) *.$(ModSuffix) $(PackageTargetDir);\
438 +        fi
439  
440 +        $(MAKE) $(MakeOptions) $(PackageParallelTargetDir)/$@
441 +        if test -f *.$(ModSuffix); then \
442 +          $(Move) *.$(ModSuffix) $(PackageParallelTargetDir);\
443 +        fi
444 +
445 + else
446 + %.o : %.F90
447 +        $(MAKE) $(MakeOptions) $(PackageTargetDir)/$@
448 +        if test -f *.$(ModSuffix); then \
449 +          $(Move) *.$(ModSuffix) $(PackageTargetDir);\
450 +        fi
451 +
452 + endif
453 +
454 +
455   # .java -> .class
456   $(PackageTargetDir)/%.class : $(PackageSourceDir)/%.java
457          $(JavaCompiler) $(JavaCompilerOptions) $<
# Line 361 | Line 485 | $(LibDir)/%.a : $(ObjectFiles)
485          @$(Lex) -o$@ $?
486  
487   # .o -> .a
488 < $(LibDir)/%.a : $(ObjectFiles)
488 >
489 > $(LibDir)/%_UP.a : $(ObjectFiles)
490          $(StaticArchiver) $(StaticArchiverOptions) $@ $(ObjectFiles)
491 +        @touch $(LibDir)/.stamp_UP
492  
493 < %.a : $(ObjectFiles)
368 <        $(MAKE) $(MakeOptions) $(LibDir)/$@
369 <
370 < $(LibDir)/%_MPI.a : $(ParallelObjectFiles)
493 > $(LibDir)/%_MPI.a: $(ParallelObjectFiles)
494          $(StaticArchiver) $(StaticArchiverOptions) $@ $(ParallelObjectFiles)
495 +        @touch $(LibDir)/.stamp_MPI
496  
497 + %_UP.a : $(ObjectFiles)
498 +        $(MAKE) $(MakeOptions) $(LibDir)/$@
499 +
500   %_MPI.a : $(ParallelObjectFiles)
501          $(MAKE) $(MakeOptions) $(LibDir)/$@
502  
503   # .o -> .so
504 < $(LibDir)/%.so : $(ObjectFiles)
504 > $(LibDir)/%_UP.so : $(ObjectFiles)
505          $(DynamicArchiver) $(ObjectFiles) $(DynamicArchiverOptions) -o $@
506  
380 %.so : $(ObjectFiles)
381        $(MAKE) $(MakeOptions) $(LibDir)/$@
382
507   $(LibDir)/%_MPI.so : $(ParallelObjectFiles)
508          $(DynamicArchiver) $(ParallelObjectFiles) $(DynamicArchiverOptions) -o $@
509  
510 + %_UP.so : $(ObjectFiles)
511 +        $(MAKE) $(MakeOptions) $(LibDir)/$@
512 +
513   %_MPI.so : $(ParallelObjectFiles)
514          $(MAKE) $(MakeOptions) $(LibDir)/$@
515  
# Line 418 | Line 545 | $(PackageTargetDir)/%_Skel.class : $(PackageTargetDir)
545   %_Skel.class : %.class
546          $(MAKE) $(MakeOptions) $(PackageTargetDir)/$@
547  
548 + document :
549 +        $(Print) Generate Documentation for OOPSE-2.0
550 +        @cd $(DEV_ROOT)/src    
551 +        $(Doxygen) $(DEV_ROOT)/make/Doxyfile
552 +
553 + #GUN make funtions to merge the libraries
554 + find_objs = $(shell $(StaticArchiver) -t $(1))
555 + extract_objs = $(shell $(StaticArchiver) -x $(1) $(call find_objs, $(1)))
556 + create_archive = $(shell  $(StaticArchiver) $(StaticArchiverOptions) $(2) $(call find_objs, $(1)))
557 + remove_objs = $(shell $(Delete) $(call find_objs, $(1)))
558 + do_create = $(call extract_objs,$(1))$(call create_archive,$(1),$(2))$(call remove_objs,$(1))  
559 +
560 + $(CombinedStaticLib) : $(LibDir)/.stamp_UP
561 +        $(Print) create $@      
562 +        $(foreach thisLib,$(LibNames),$(call do_create,$(thisLib),$@))
563 +        $(Ranlib) $(CombinedStaticLib)
564 +
565 + $(CombinedParallelStaticLib) : $(LibDir)/.stamp_MPI
566 +        $(Print) create $@
567 +        $(foreach thisLib,$(ParallelLibNames), $(call do_create, $(thisLib), $@))
568 +        $(Ranlib) $(CombinedParallelStaticLib)
569 +
570   # Executable
571 < $(Executable) : $(ObjectFiles)
572 <        $(Linker) $(LinkOptions) $(LibDirs) $(LibList) $(ObjectFiles) -o $@
571 > $(Executable) : $(CombinedStaticLib) $(ObjectFiles)
572 >        $(Linker) $(ObjectFiles) $(LinkOptions) $(LibDirs) $(CombinedStaticLib) $(Libraries) -o $@
573  
574 < $(ParallelExecutable) : $(ParallelObjectFiles)
575 <        $(Linker) $(LinkOptions) $(LibDirs) $(LibList) $(ParallelObjectFiles) -o $@
574 > $(ParallelExecutable) : $(CombinedParallelStaticLib) $(ParallelObjectFiles)
575 >        $(Linker) $(ParallelObjectFiles) $(ParallelLinkOptions) $(LibDirs) $(CombinedParallelStaticLib) $(Libraries) -o $@
576  
577   # Anything else is just copied from source to target
578   $(PackageTargetDir)/% : $(PackageSourceDir)/%
# Line 436 | Line 585 | _buildall : \
585  
586   _all : _buildall
587  
588 + _buildall :
589 + ifeq "$(UseMPI)" "yes"
590   _buildall : \
591          $(DependencyFile) \
592          $(PackageTargetDir) \
593          $(ObjectFiles) \
594 +        $(ParallelObjectFiles) \
595          $(JavaClassFiles) \
596          $(RmiStubFiles) \
597          $(RmiSkeletonFiles) \
598          $(OtherTargetFiles) \
447        $(SharedLibrary) \
599          $(StaticLibrary) \
600 +        $(ParallelStaticLibrary) \
601          $(JarFile) \
602 <        $(Executable)
603 <        
602 >        $(Executable) \
603 >        $(ParallelExecutable)
604 > else
605 > _buildall : \
606 >        $(DependencyFile) \
607 >        $(PackageTargetDir) \
608 >        $(ObjectFiles) \
609 >        $(JavaClassFiles) \
610 >        $(RmiStubFiles) \
611 >        $(RmiSkeletonFiles) \
612 >        $(OtherTargetFiles) \
613 >        $(StaticLibrary) \
614 >        $(JarFile) \
615 >        $(Executable)
616 > endif
617  
618 +
619   # make clean
620   clean : $(PackageListLoop)
621          $(Print) Done clean.    
# Line 464 | Line 630 | _distcleanall :
630   _distcleanall :
631          $(Delete) $(ObjectFiles) \
632                    $(ParallelObjectFiles) \
633 <                  $(JarFile) \
633 >                        $(JarFile) \
634                    $(SharedLibrary) \
635                    $(StaticLibrary) \
636                    $(ParallelSharedLibrary) \
637                    $(ParallelStaticLibrary) \
638                    $(Executable) \
639                    $(ParallelExecutable) \
640 <                  $(DependencyFile)
640 >                  $(DependencyFile)
641  
642  
643   # make depend
# Line 484 | Line 650 | $(DependencyFile) : $(DerivedSource)
650          $(Print) $@
651          @cd $(PackageSourceDir)
652  
487        touch Make.ctemp
488        touch Make.ctemp
489
653   ifneq "$(words $(CppFiles))" "0"
654 <        $(CppCompiler) $(IncludePath) -MM $(CppFiles)  > Make.cpptemp
655 <        cat Make.cpptemp | sed 's/^[a-zA-Z0-9]/$$\(DEV_ROOT\)\/obj\/&/g' >> $(DependencyFile)
656 <        cat Make.cpptemp | sed 's/^[a-zA-Z0-9]/$$\(DEV_ROOT\)\/MPIobj\/&/g' >> $(DependencyFile)
654 >        $(DEV_ROOT)/scripts/filepp  -I $(DEV_ROOT)/src -od '$$(TargetDir)/' -MM $(CppFiles)>> Make.cpptemp
655 >        @cat Make.cpptemp  >> $(DependencyFile)
656 >        $(Delete) Make.cpptemp
657 >
658 >  ifeq "$(UseMPI)" "yes"
659 >        $(DEV_ROOT)/scripts/filepp  -I $(DEV_ROOT)/src -od '$$(ParallelTargetDir)/' $(ParallelDeclare) -MM $(CppFiles)>> Make.cpptemp
660 >        @cat Make.cpptemp  >> $(DependencyFile)
661 >        @$(Delete) Make.cpptemp
662 >  endif
663 >
664   endif
665  
666   ifneq "$(words $(CFiles))" "0"
667 <        $(CCompiler)   $(IncludePath) -MM $(CFiles) $(DerivedCFiles)   > Make.ctemp
668 <        cat Make.ctemp | sed 's/^[a-zA-Z0-9]/$$\(DEV_ROOT\)\/obj\/&/g' >> $(DependencyFile)
669 <        cat Make.ctemp | sed 's/^[a-zA-Z0-9]/$$\(DEV_ROOT\)\/MPIobj\/&/g' >> $(DependencyFile)
667 >        $(DEV_ROOT)/scripts/filepp  -I $(DEV_ROOT)/src -od '$$(TargetDir)/'  -MM $(CFiles) $(DerivedCFiles)  >> Make.ctemp
668 >        @cat Make.ctemp  >> $(DependencyFile)
669 >        $(Delete) Make.ctemp
670  
671 +  ifeq "$(UseMPI)" "yes"
672 +        $(DEV_ROOT)/scripts/filepp  -I $(DEV_ROOT)/src -od '$$(ParallelTargetDir)/' $(ParallelDeclare) -MM $(CFiles) $(DerivedCFiles)  >> Make.ctemp
673 +        @cat Make.ctemp  >> $(DependencyFile)
674 +        @$(Delete) Make.ctemp
675 +  endif
676 +
677   endif
678  
679   ifneq "$(words $(F90Files))" "0"
680 <        $(DEV_ROOT)/scripts/filepp  -I $(DEV_ROOT)/src -od '$$(DEV_ROOT)/obj/' -D__F90  *.F90 > Make.ftemp
681 <        $(DEV_ROOT)/scripts/filepp  -I $(DEV_ROOT)/src -od '$$(DEV_ROOT)/MPIobj/' -DIS_MPI -D__F90  *.F90 >> Make.ftemp
682 <        cat Make.ftemp >> $(DependencyFile)
680 >        $(DEV_ROOT)/scripts/filepp  -I $(DEV_ROOT)/src -od '$$(TargetDir)/' $(F90Declare) -MM -mc $(ModuleCase) -ms $(ModSuffix) $(F90Files) > Make.ftemp
681 >        @cat Make.ftemp >> $(DependencyFile)
682 >        @$(Delete) Make.ftemp
683 >
684 >  ifeq "$(UseMPI)" "yes"
685 >        $(DEV_ROOT)/scripts/filepp  -I $(DEV_ROOT)/src -od '$$(ParallelTargetDir)/' $(ParallelDeclare) $(F90Declare) -MM -mc $(ModuleCase) -ms $(ModSuffix)  $(F90Files) >> Make.ftemp
686 >        @cat Make.ftemp >> $(DependencyFile)
687 >        @$(Delete) Make.ftemp
688 >  endif
689 >
690   endif
508        $(Delete) Make.cpptemp Make.ctemp Make.ftemp
691  
692   # make lib
693   lib    : $(PackageListLoop)
# Line 518 | Line 700 | jarsign : $(JarFile)
700   jarsign : $(JarFile)
701          $(JarSigner) -keystore GeoSoftKeystore $(JarFile) myself
702  
703 + #make install
704 + %.install :
705 +        @$(MAKE) $(MakeOptions) -C $(subst .install,,$@) _installall    
706 +
707 + install : $(InstallListLoop)
708 +        $(Print) Done Install
709 +
710 + _installall : _buildall _installdata
711 +
712 + $(MyInstallDir) :
713 +        $(MkDir) $@
714 +
715 + _installdata :  $(MyInstallDir)
716 +        $(Print) $(InstallFiles)
717 + ifneq "$(words $(InstallFiles))" "0"
718 +        $(InstallData) $(InstallFiles) $(MyInstallDir)
719 + endif      
720 +        
721   # make statistics
722   _statisticsall :
723 <        @$(Print) $(SourceFiles) >> $(DEV_ROOT)/files.tmp
723 >        @$(Print) $(patsubst %,$(CurrentDir)/%,$(SourceFiles)) >> $(DEV_ROOT)/files.tmp
724  
725   statistics : $(PackageListLoop)
726          @$(List) $(DEV_ROOT)/files.tmp | xargs $(WordCount) $(WordCountOptions)
# Line 534 | Line 734 | pure : $(Executable).pure
734  
735   pure : $(Executable).pure
736  
737 + #make cvslog
738 + cvslog:
739 +        $(DEV_ROOT)/scripts/cvs2cl.pl
740 +
741   # Execute
742   _runexe :
743          $(Executable) $(RunParameters)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines