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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines