33 |
|
# $< - Current dependency |
34 |
|
# |
35 |
|
#--------------------------------------------------------------------------- |
36 |
< |
|
37 |
< |
#--------------------------------------------------------------------------- |
38 |
< |
# |
39 |
< |
# Packages |
40 |
< |
# |
41 |
< |
#--------------------------------------------------------------------------- |
42 |
< |
|
36 |
> |
IS_UNIX=1 |
37 |
|
#packages to be made |
38 |
|
Packages = \ |
39 |
< |
utils \ |
40 |
< |
math \ |
41 |
< |
types \ |
42 |
< |
primitives \ |
43 |
< |
visitors \ |
44 |
< |
UseTheForce/DarkSide \ |
45 |
< |
UseTheForce \ |
46 |
< |
brains \ |
47 |
< |
io \ |
48 |
< |
integrators \ |
49 |
< |
minimizers \ |
50 |
< |
constraints \ |
51 |
< |
profiling \ |
52 |
< |
restraints \ |
53 |
< |
applications |
39 |
> |
utils \ |
40 |
> |
math \ |
41 |
> |
types \ |
42 |
> |
primitives \ |
43 |
> |
visitors \ |
44 |
> |
UseTheForce/DarkSide \ |
45 |
> |
UseTheForce \ |
46 |
> |
brains \ |
47 |
> |
io \ |
48 |
> |
integrators \ |
49 |
> |
minimizers \ |
50 |
> |
constraints \ |
51 |
> |
profiling \ |
52 |
> |
restraints \ |
53 |
> |
applications/oopse \ |
54 |
> |
applications/dump2Xyz \ |
55 |
> |
applications/simpleBuilder \ |
56 |
|
|
57 |
|
#packages contain libraries |
58 |
|
PackageLibs = \ |
59 |
< |
utils \ |
60 |
< |
math \ |
61 |
< |
types \ |
62 |
< |
primitives \ |
63 |
< |
visitors \ |
64 |
< |
UseTheForce/DarkSide \ |
65 |
< |
UseTheForce \ |
66 |
< |
brains \ |
67 |
< |
io \ |
68 |
< |
integrators \ |
69 |
< |
minimizers \ |
70 |
< |
constraints \ |
71 |
< |
profiling \ |
72 |
< |
restraints |
59 |
> |
utils \ |
60 |
> |
math \ |
61 |
> |
types \ |
62 |
> |
primitives \ |
63 |
> |
visitors \ |
64 |
> |
UseTheForce/DarkSide \ |
65 |
> |
UseTheForce \ |
66 |
> |
brains \ |
67 |
> |
io \ |
68 |
> |
integrators \ |
69 |
> |
minimizers \ |
70 |
> |
constraints \ |
71 |
> |
profiling \ |
72 |
> |
restraints \ |
73 |
> |
|
74 |
> |
IncludeDirs = \ |
75 |
> |
@SPRNG_INC_DIR@ \ |
76 |
> |
@MPI_INC_DIR@ |
77 |
> |
|
78 |
> |
LibraryDirs = \ |
79 |
> |
@SPRNG_LIB_DIR@ \ |
80 |
> |
@MPI_LIB_DIR@ |
81 |
> |
|
82 |
> |
Libraries = \ |
83 |
> |
@SPRNG_LIB@ \ |
84 |
> |
@MPI_LIB@ \ |
85 |
> |
@MPI_F90_LIB@ |
86 |
> |
|
87 |
> |
OopseHome = @OOPSE_HOME@ |
88 |
> |
ForceParamDir = @OOPSE_HOME@/share/forceFields/ |
89 |
> |
SampleSimDir = @OOPSE_HOME@/share/samples/ |
90 |
> |
FrcDeclare = -DFRC_PATH="$(ForceParamDir)" |
91 |
> |
ParallelDeclare = -DIS_MPI |
92 |
> |
UseMPI = @USE_MPI@ |
93 |
|
|
94 |
|
#--------------------------------------------------------------------------- |
95 |
|
# |
97 |
|
# |
98 |
|
#--------------------------------------------------------------------------- |
99 |
|
|
84 |
– |
srcdir = @srcdir@ |
100 |
|
SourceDir = $(DEV_ROOT)/src |
101 |
|
TargetDir = $(DEV_ROOT)/obj |
102 |
|
ParallelTargetDir = $(DEV_ROOT)/MPIobj |
103 |
|
LibDir = $(DEV_ROOT)/lib |
104 |
+ |
ParallelLibDir = $(DEV_ROOT)/MPIlib |
105 |
|
MakeDir = $(DEV_ROOT)/make |
106 |
|
BinDir = $(DEV_ROOT)/bin |
107 |
|
DocsDir = $(DEV_ROOT)/docs |
108 |
|
CurrentDir = $(CURDIR) |
109 |
+ |
RPath = $(shell cd $(DEV_ROOT); pwd)/lib:$(OopseHome)/lib |
110 |
+ |
ParallelRPath = $(shell cd $(DEV_ROOT); pwd)/MPIlib:$(OopseHome)/MPIlib |
111 |
+ |
LinkOptions = \ |
112 |
+ |
@F90LIBS@ \ |
113 |
+ |
-Wl,-R$(RPath) |
114 |
|
|
115 |
+ |
ParallelLinkOptions = \ |
116 |
+ |
@F90LIBS@ \ |
117 |
+ |
-Wl,-R$(ParallelRPath) |
118 |
+ |
|
119 |
|
ifdef Source |
120 |
|
#get the relative path of current package to source directory |
121 |
|
# /home/maul/gezelter/src/code/src/UseTheForce/Darkside --> UseTheForce/Darkside |
180 |
|
JniHeaders = $(JniSource:%.java= $(PackageSourceDir)/%.h) |
181 |
|
ObjectFiles = $(CFiles:%.c= $(PackageTargetDir)/%.o)\ |
182 |
|
$(CppFiles:%.cpp= $(PackageTargetDir)/%.o)\ |
183 |
< |
$(FortranFiles:%.f= $(PackageTargetDir)/%.o)\ |
184 |
< |
$(F90Files:%.F90= $(PackageTargetDir)/%.o)\ |
185 |
< |
$(LexFiles:%.l= $(PackageTargetDir)/%.o)\ |
186 |
< |
$(YaccFiles:%.y= $(PackageTargetDir)/%.o) |
183 |
> |
$(FortranFiles:%.f= $(PackageTargetDir)/%.o)\ |
184 |
> |
$(F90Files:%.F90= $(PackageTargetDir)/%.o)\ |
185 |
> |
$(LexFiles:%.l= $(PackageTargetDir)/%.o)\ |
186 |
> |
$(YaccFiles:%.y= $(PackageTargetDir)/%.o) |
187 |
|
ParallelObjectFiles = $(CFiles:%.c= $(PackageParallelTargetDir)/%.o)\ |
188 |
< |
$(CppFiles:%.cpp= $(PackageParallelTargetDir)/%.o)\ |
189 |
< |
$(FortranFiles:%.f= $(PackageParallelTargetDir)/%.o)\ |
190 |
< |
$(F90Files:%.F90= $(PackageParallelTargetDir)/%.o)\ |
191 |
< |
$(LexFiles:%.l= $(PackageParallelTargetDir)/%.o)\ |
192 |
< |
$(YaccFiles:%.y= $(PackageParallelTargetDir)/%.o) |
188 |
> |
$(CppFiles:%.cpp= $(PackageParallelTargetDir)/%.o)\ |
189 |
> |
$(FortranFiles:%.f= $(PackageParallelTargetDir)/%.o)\ |
190 |
> |
$(F90Files:%.F90= $(PackageParallelTargetDir)/%.o)\ |
191 |
> |
$(LexFiles:%.l= $(PackageParallelTargetDir)/%.o)\ |
192 |
> |
$(YaccFiles:%.y= $(PackageParallelTargetDir)/%.o) |
193 |
|
|
194 |
|
DerivedSource = $(YaccFiles:%.y= %.h) \ |
195 |
< |
$(YaccFiles:%.y= %.c) \ |
196 |
< |
$(LexFiles:%.l= %.c) |
195 |
> |
$(YaccFiles:%.y= %.c) \ |
196 |
> |
$(LexFiles:%.l= %.c) |
197 |
|
|
198 |
|
DerivedCFiles = $(YaccFiles:%.y= %.c) \ |
199 |
< |
$(LexFiles:%.l= %.c) |
199 |
> |
$(LexFiles:%.l= %.c) |
200 |
|
|
201 |
|
OtherTargetFiles = $(OtherSourceFiles:%=$(PackageTargetDir)/%) |
202 |
|
|
215 |
|
Executable = $(BinDir)/$(Main) |
216 |
|
ParallelExecutable = $(BinDir)/$(Main)_MPI |
217 |
|
else |
218 |
< |
SharedLibrary = $(LibDir)/lib$(subst /,,$(Package)).so |
219 |
< |
StaticLibrary = $(LibDir)/lib$(subst /,,$(Package)).a |
220 |
< |
ParallelSharedLibrary = $(LibDir)/lib$(subst /,,$(Package))_MPI.so |
221 |
< |
ParallelStaticLibrary = $(LibDir)/lib$(subst /,,$(Package))_MPI.a |
218 |
> |
SharedLibrary = $(LibDir)/lib$(subst /,,$(patsubst %,oopse_%,$(Package))).so |
219 |
> |
StaticLibrary = $(LibDir)/lib$(subst /,,$(patsubst %,oopse_%,$(Package))).a |
220 |
> |
ParallelSharedLibrary = $(ParallelLibDir)/lib$(subst /,,$(patsubst %,oopse_%,$(Package))).so |
221 |
> |
ParallelStaticLibrary = $(ParallelLibDir)/lib$(subst /,,$(patsubst %,oopse_%,$(Package))).a |
222 |
|
endif |
223 |
|
endif |
224 |
|
# |
228 |
|
JavaPackageNames = $(subst /,.,$(JavaPackages)) |
229 |
|
IncludePath = -I$(SourceDir) $(IncludeDirs:%=-I%) |
230 |
|
LibDirs = -L$(LibDir) $(LibraryDirs:%=-L%) |
231 |
< |
LocalLibs = $(subst /,,$(PackageLibs)) |
232 |
< |
LibList = $(LocalLibs:%=-l%) $(Libraries:%=-l%) |
231 |
> |
ParallelLibDirs = -L$(ParallelLibDir) $(LibraryDirs:%=-L%) |
232 |
> |
LocalLibs = $(subst /,,$(patsubst %, oopse_%, $(PackageLibs))) |
233 |
> |
ParallelLocalLibs= $(subst /,,$(patsubst %, oopse_%, $(PackageLibs))) |
234 |
> |
LibList = $(LocalLibs:%=-l%) $(Libraries) |
235 |
> |
ParallelLibList = $(ParallelLocalLibs:%=-l%) $(Libraries) |
236 |
|
|
237 |
|
|
238 |
|
#--------------------------------------------------------------------------- |
270 |
|
Lex = @LEX@ |
271 |
|
|
272 |
|
|
273 |
< |
MakeOptions = -k -s |
273 |
> |
MakeOptions = -k |
274 |
|
MakeDependOptions = |
275 |
|
StaticArchiverOptions = rc |
276 |
|
DynamicArchiverOptions = -shared |
278 |
|
JniOptions = |
279 |
|
RmiOptions = -d $(TargetDir) -classpath $(ClassPath) \ |
280 |
|
-sourcepath $(SourceDir) |
281 |
+ |
COptions = $(FrcDeclare) |
282 |
+ |
CParallelOptions = $(FrcDeclare) $(ParallelDeclare) |
283 |
+ |
CppOptions = $(FrcDeclare) |
284 |
+ |
CppParallelOptions = $(FrcDeclare) $(ParallelDeclare) |
285 |
|
FortranOptions = |
286 |
< |
F90Options = -I$(SourceDir) -module $(TargetDir) |
286 |
> |
F90Options = @PREPFLAG@ @F90FLAGS@ @MODDIRFLAG@$(SourceDir) -module $(TargetDir) |
287 |
> |
F90ParallelOptions = @PREPFLAG@ @F90FLAGS@ @MODDIRFLAG@$(SourceDir) -module $(ParallelTargetDir) @PREPDEFFLAG@$(ParallelDeclare) |
288 |
|
JavaCompilerOptions = -d $(TargetDir) -classpath $(ClassPath) \ |
289 |
|
-sourcepath $(SourceDir) -deprecation |
290 |
|
JavaRunOptions = -classpath $(ClassPath) |
325 |
|
# .c -> .o |
326 |
|
$(PackageTargetDir)/%.o : %.c |
327 |
|
$(Print) $@ |
328 |
< |
$(Print) $(CCompiler) $(COptions) -c $(IncludePath) $< -o $@ |
296 |
< |
@$(CCompiler) $(COptions) -c $(IncludePath) $< -o $@ |
328 |
> |
$(CCompiler) $(COptions) -c $(IncludePath) $< -o $@ |
329 |
|
|
330 |
+ |
$(PackageParallelTargetDir)/%.o : %.c |
331 |
+ |
$(Print) $@ |
332 |
+ |
$(CCompiler) $(CParallelOptions) -c $(IncludePath) $< -o $@ |
333 |
+ |
|
334 |
+ |
ifeq "$(UseMPI)" "yes" |
335 |
|
%.o : %.c |
336 |
|
$(MAKE) $(MakeOptions) $(PackageTargetDir)/$@ |
337 |
+ |
$(MAKE) $(MakeOptions) $(PackageParallelTargetDir)/$@ |
338 |
+ |
else |
339 |
+ |
%.o : %.c |
340 |
+ |
$(MAKE) $(MakeOptions) $(PackageTargetDir)/$@ |
341 |
+ |
endif |
342 |
|
|
343 |
|
# .cpp -> .o |
344 |
|
$(PackageTargetDir)/%.o : %.cpp |
303 |
– |
$(Print) $@ |
304 |
– |
$(Print) $(CppCompiler) $(CppOptions) -c $(IncludePath) $< -o $@ |
345 |
|
$(CppCompiler) $(CppOptions) -c $(IncludePath) $< -o $@ |
346 |
|
|
347 |
+ |
$(PackageParallelTargetDir)/%.o : %.cpp |
348 |
+ |
$(CppCompiler) $(CppParallelOptions) -c $(IncludePath) $< -o $@ |
349 |
+ |
|
350 |
+ |
ifeq "$(UseMPI)" "yes" |
351 |
|
%.o : %.cpp |
352 |
|
$(MAKE) $(MakeOptions) $(PackageTargetDir)/$@ |
353 |
+ |
$(MAKE) $(MakeOptions) $(PackageParallelTargetDir)/$@ |
354 |
+ |
else |
355 |
+ |
%.o : %.cpp |
356 |
+ |
$(MAKE) $(MakeOptions) $(PackageTargetDir)/$@ |
357 |
+ |
endif |
358 |
|
|
359 |
|
# .f -> .o |
360 |
|
$(PackageTargetDir)/%.o : %.f |
361 |
< |
$(Print) $@ |
313 |
< |
$(Print) $(FortranCompiler) $(FortranOptions) -c $< -o $@ |
314 |
< |
@$(FortranCompiler) $(FortranOptions) -c $< -o $@ |
361 |
> |
$(FortranCompiler) $(FortranOptions) -c $< -o $@ |
362 |
|
|
363 |
+ |
$(PackageParallelTargetDir)/%.o : %.f |
364 |
+ |
$(FortranCompiler) $(FortranParallelOptions) -c $< -o $@ |
365 |
+ |
|
366 |
+ |
ifeq "$(UseMPI)" "yes" |
367 |
|
%.o : %.f |
368 |
|
$(MAKE) $(MakeOptions) $(PackageTargetDir)/$@ |
369 |
+ |
$(MAKE) $(MakeOptions) $(PackageParallelTargetDir)/$@ |
370 |
+ |
else |
371 |
+ |
%.o : %.f |
372 |
+ |
$(MAKE) $(MakeOptions) $(PackageTargetDir)/$@ |
373 |
+ |
endif |
374 |
|
|
375 |
|
# .F90 -> .o |
376 |
|
$(PackageTargetDir)/%.o : %.F90 |
377 |
< |
$(Print) $@ |
322 |
< |
$(Print) $(F90Compiler) $(F90Options) -c $< -o $@ |
323 |
< |
@$(F90Compiler) $(F90Options) -c $< -o $@ |
377 |
> |
$(F90Compiler) $(F90Options) $(IncludePath) -c $< -o $@ |
378 |
|
|
379 |
+ |
$(PackageParallelTargetDir)/%.o : %.F90 |
380 |
+ |
$(F90Compiler) $(F90ParallelOptions) $(IncludePath) -c $< -o $@ |
381 |
+ |
|
382 |
+ |
ifeq "$(UseMPI)" "yes" |
383 |
|
%.o : %.F90 |
384 |
|
$(MAKE) $(MakeOptions) $(PackageTargetDir)/$@ |
385 |
+ |
$(MAKE) $(MakeOptions) $(PackageParallelTargetDir)/$@ |
386 |
+ |
else |
387 |
+ |
%.o : %.F90 |
388 |
+ |
$(MAKE) $(MakeOptions) $(PackageTargetDir)/$@ |
389 |
+ |
endif |
390 |
|
|
391 |
+ |
|
392 |
|
# .java -> .class |
393 |
|
$(PackageTargetDir)/%.class : $(PackageSourceDir)/%.java |
394 |
< |
$(Print) $@ |
331 |
< |
$(Print) $(JavaCompiler) $(JavaCompilerOptions) $< |
332 |
< |
@$(JavaCompiler) $(JavaCompilerOptions) $< |
394 |
> |
$(JavaCompiler) $(JavaCompilerOptions) $< |
395 |
|
|
396 |
|
%.class : $(PackageSourceDir)/%.java |
397 |
|
@$(MAKE) $(MakeOptions) $(PackageTargetDir)/$@ |
398 |
|
|
399 |
|
# .class -> .h |
400 |
|
$(PackageSourceDir)/%.h : $(PackageTargetDir)/%.class |
339 |
– |
$(Print) $@ |
340 |
– |
$(Print) $(JniCompiler) $(JniOptions) $(JavaPackageName).$* |
401 |
|
$(JniCompiler) $(JniOptions) $(JavaPackageName).$* |
402 |
|
|
403 |
|
%.h : %.class |
405 |
|
|
406 |
|
#.y -> .h |
407 |
|
%.h : %.y |
408 |
< |
$(Print) $@ |
349 |
< |
$(Print) @$(Yacc) -d $? |
350 |
< |
@$(Yacc) -d $? |
408 |
> |
$(Yacc) -d $? |
409 |
|
@$(Move) y.tab.h $*.h |
410 |
|
@$(Delete) y.tab.c |
411 |
|
|
412 |
|
#.y -> .c |
413 |
|
%.c : %.y |
414 |
< |
$(Print) $@ |
357 |
< |
$(Print) $(Yacc) -d $? |
358 |
< |
@$(Yacc) -d $? |
414 |
> |
$(Yacc) -d $? |
415 |
|
@$(Move) y.tab.c $*.c |
416 |
|
@$(Delete) y.tab.h |
417 |
|
|
422 |
|
@$(Lex) -o$@ $? |
423 |
|
|
424 |
|
# .o -> .a |
425 |
+ |
|
426 |
|
$(LibDir)/%.a : $(ObjectFiles) |
427 |
< |
$(Print) $@ |
371 |
< |
$(Print) $(StaticArchiver) $(StaticArchiverOptions) $@ $(ObjectFiles) |
372 |
< |
@$(StaticArchiver) $(StaticArchiverOptions) $@ $(ObjectFiles) |
427 |
> |
$(StaticArchiver) $(StaticArchiverOptions) $@ $(ObjectFiles) |
428 |
|
|
429 |
+ |
$(ParallelLibDir)/%.a: $(ParallelObjectFiles) |
430 |
+ |
$(StaticArchiver) $(StaticArchiverOptions) $@ $(ParallelObjectFiles) |
431 |
+ |
|
432 |
+ |
ifeq "$(UseMPI)" "yes" |
433 |
+ |
%.a : $(ObjectFiles) $(ParallelObjectFiles) |
434 |
+ |
$(MAKE) $(MakeOptions) $(LibDir)/$@ |
435 |
+ |
$(MAKE) $(MakeOptions) $(ParallelLibDir)/$@ |
436 |
+ |
else |
437 |
|
%.a : $(ObjectFiles) |
438 |
|
$(MAKE) $(MakeOptions) $(LibDir)/$@ |
439 |
+ |
endif |
440 |
|
|
377 |
– |
$(LibDir)/%_MPI.a : $(ParallelObjectFiles) |
378 |
– |
$(Print) $@ |
379 |
– |
$(Print) $(StaticArchiver) $(StaticArchiverOptions) $@ $(ParallelObjectFiles) |
380 |
– |
@$(StaticArchiver) $(StaticArchiverOptions) $@ $(ParallelObjectFiles) |
381 |
– |
|
382 |
– |
%_MPI.a : $(ParallelObjectFiles) |
383 |
– |
$(MAKE) $(MakeOptions) $(LibDir)/$@ |
384 |
– |
|
441 |
|
# .o -> .so |
442 |
|
$(LibDir)/%.so : $(ObjectFiles) |
387 |
– |
$(Print) $@ |
388 |
– |
$(Print) $(DynamicArchiver) $(ObjectFiles) $(DynamicArchiverOptions) -o $@ |
443 |
|
$(DynamicArchiver) $(ObjectFiles) $(DynamicArchiverOptions) -o $@ |
390 |
– |
|
391 |
– |
%.so : $(ObjectFiles) |
392 |
– |
$(MAKE) $(MakeOptions) $(LibDir)/$@ |
444 |
|
|
445 |
< |
$(LibDir)/%_MPI.so : $(ParallelObjectFiles) |
395 |
< |
$(Print) $@ |
396 |
< |
$(Print) $(DynamicArchiver) $(ParallelObjectFiles) $(DynamicArchiverOptions) -o $@ |
445 |
> |
$(ParallelLibDir)/%.so : $(ParallelObjectFiles) |
446 |
|
$(DynamicArchiver) $(ParallelObjectFiles) $(DynamicArchiverOptions) -o $@ |
447 |
|
|
448 |
< |
%_MPI.so : $(ParallelObjectFiles) |
448 |
> |
ifeq "$(UseMPI)" "yes" |
449 |
> |
%.so : $(ObjectFiles) $(ParallelObjectFiles) |
450 |
|
$(MAKE) $(MakeOptions) $(LibDir)/$@ |
451 |
+ |
$(MAKE) $(MakeOptions) $(ParallelLibDir)/$@ |
452 |
+ |
else |
453 |
+ |
%.so : $(ObjectFiles) |
454 |
+ |
$(MAKE) $(MakeOptions) $(LibDir)/$@ |
455 |
+ |
endif |
456 |
|
|
457 |
|
# .class -> .jar |
458 |
|
$(LibDir)/%.jar : $(JavaClassFiles) $(OtherTargetFiles) |
459 |
|
$(Print) $@ |
405 |
– |
$(Print) $(JavaArchiver) -cf $@ $(JavaClassFilesRel) $(OtherTargetFiles) |
460 |
|
@cd $(TargetDir); $(JavaArchiver) -cf $@ \ |
461 |
|
$(JavaClassFilesRel) $(OtherTargetFiles) |
462 |
|
|
488 |
|
|
489 |
|
# Executable |
490 |
|
$(Executable) : $(ObjectFiles) |
491 |
< |
$(Print) $@ |
438 |
< |
$(Print) $(Linker) $(LinkOptions) $(LibDirs) $(LibList) $(ObjectFiles) -o $@ |
439 |
< |
$(Linker) $(LinkOptions) $(LibDirs) $(LibList) $(ObjectFiles) -o $@ |
491 |
> |
$(Linker) $(ObjectFiles) $(LinkOptions) $(LibDirs) $(LibList) -o $@ |
492 |
|
|
493 |
|
$(ParallelExecutable) : $(ParallelObjectFiles) |
494 |
< |
$(Print) $@ |
443 |
< |
$(Print) $(Linker) $(LinkOptions) $(LibDirs) $(LibList) $(ParallelObjectFiles) -o $@ |
444 |
< |
$(Linker) $(LinkOptions) $(LibDirs) $(LibList) $(ParallelObjectFiles) -o $@ |
494 |
> |
$(Linker) $(ParallelObjectFiles) $(ParallelLinkOptions) $(ParallelLibDirs) $(LibList) -o $@ |
495 |
|
|
496 |
|
# Anything else is just copied from source to target |
497 |
|
$(PackageTargetDir)/% : $(PackageSourceDir)/% |
504 |
|
|
505 |
|
_all : _buildall |
506 |
|
|
507 |
+ |
ifeq "$(UseMPI)" "yes" |
508 |
|
_buildall : \ |
509 |
|
$(DependencyFile) \ |
510 |
|
$(PackageTargetDir) \ |
511 |
|
$(ObjectFiles) \ |
512 |
+ |
$(ParallelObjectFiles) \ |
513 |
|
$(JavaClassFiles) \ |
514 |
|
$(RmiStubFiles) \ |
515 |
|
$(RmiSkeletonFiles) \ |
516 |
|
$(OtherTargetFiles) \ |
517 |
|
$(SharedLibrary) \ |
518 |
|
$(StaticLibrary) \ |
519 |
+ |
$(ParallelSharedLibrary) \ |
520 |
+ |
$(ParallelStaticLibrary) \ |
521 |
|
$(JarFile) \ |
522 |
< |
$(Executable) |
522 |
> |
$(Executable) \ |
523 |
> |
$(ParallelExecutable) |
524 |
> |
else |
525 |
> |
_buildall : \ |
526 |
> |
$(DependencyFile) \ |
527 |
> |
$(PackageTargetDir) \ |
528 |
> |
$(ObjectFiles) \ |
529 |
> |
$(JavaClassFiles) \ |
530 |
> |
$(RmiStubFiles) \ |
531 |
> |
$(RmiSkeletonFiles) \ |
532 |
> |
$(OtherTargetFiles) \ |
533 |
> |
$(SharedLibrary) \ |
534 |
> |
$(StaticLibrary) \ |
535 |
> |
$(JarFile) \ |
536 |
> |
$(Executable) |
537 |
> |
endif |
538 |
|
|
539 |
|
|
540 |
|
# make clean |
542 |
|
$(Print) Done clean. |
543 |
|
|
544 |
|
_cleanall : |
545 |
< |
$(Delete) $(PackageTargetDir)/* \ |
546 |
< |
$(JarFile) \ |
545 |
> |
$(Delete) $(ObjectFiles) $(ParallelObjectFiles) |
546 |
> |
|
547 |
> |
# make distclean |
548 |
> |
distclean : $(PackageListLoop) |
549 |
> |
$(Print) Done clean. |
550 |
> |
|
551 |
> |
_distcleanall : |
552 |
> |
$(Delete) $(ObjectFiles) \ |
553 |
> |
$(ParallelObjectFiles) \ |
554 |
> |
$(JarFile) \ |
555 |
|
$(SharedLibrary) \ |
556 |
|
$(StaticLibrary) \ |
557 |
+ |
$(ParallelSharedLibrary) \ |
558 |
+ |
$(ParallelStaticLibrary) \ |
559 |
|
$(Executable) \ |
560 |
< |
$(DependencyFile) |
560 |
> |
$(ParallelExecutable) \ |
561 |
> |
$(DependencyFile) |
562 |
|
|
563 |
|
|
564 |
|
# make depend |
571 |
|
$(Print) $@ |
572 |
|
@cd $(PackageSourceDir) |
573 |
|
|
574 |
< |
touch Make.ctemp |
575 |
< |
touch Make.ctemp |
574 |
> |
@touch Make.ctemp |
575 |
> |
@touch Make.ctemp |
576 |
|
|
577 |
|
ifneq "$(words $(CppFiles))" "0" |
498 |
– |
$(Print) Make dependencies for $(CppFiles) |
499 |
– |
$(Print) $(CppCompiler) $(IncludePath) -MM $(CppFiles) > Make.cpptemp |
578 |
|
$(CppCompiler) $(IncludePath) -MM $(CppFiles) > Make.cpptemp |
579 |
|
cat Make.cpptemp | sed 's/^[a-zA-Z0-9]/$$\(DEV_ROOT\)\/obj\/&/g' >> $(DependencyFile) |
580 |
|
cat Make.cpptemp | sed 's/^[a-zA-Z0-9]/$$\(DEV_ROOT\)\/MPIobj\/&/g' >> $(DependencyFile) |
581 |
|
endif |
582 |
|
|
583 |
|
ifneq "$(words $(CFiles))" "0" |
506 |
– |
$(Print) Make dependencies for $(CFiles) |
507 |
– |
$(Print) $(CCompiler) $(IncludePath) -MM $(CFiles) $(DerivedCFiles) > Make.ctemp |
584 |
|
$(CCompiler) $(IncludePath) -MM $(CFiles) $(DerivedCFiles) > Make.ctemp |
585 |
|
cat Make.ctemp | sed 's/^[a-zA-Z0-9]/$$\(DEV_ROOT\)\/obj\/&/g' >> $(DependencyFile) |
586 |
|
cat Make.ctemp | sed 's/^[a-zA-Z0-9]/$$\(DEV_ROOT\)\/MPIobj\/&/g' >> $(DependencyFile) |
588 |
|
endif |
589 |
|
|
590 |
|
ifneq "$(words $(F90Files))" "0" |
591 |
< |
$(Print) Make dependencies for $(F90Files) |
592 |
< |
$(DEV_ROOT)/scripts/sfmakedepend -I $(DEV_ROOT)/src -d '$$(DEV_ROOT)/obj' -f ./Make.ftemp -h *.F90 |
591 |
> |
$(DEV_ROOT)/scripts/filepp -I $(DEV_ROOT)/src -od '$$(DEV_ROOT)/obj/' -D__FORTRAN90 $(F90Files) > Make.ftemp |
592 |
> |
$(DEV_ROOT)/scripts/filepp -I $(DEV_ROOT)/src -od '$$(DEV_ROOT)/MPIobj/' -DIS_MPI -D__FORTRAN90 $(F90Files) >> Make.ftemp |
593 |
|
cat Make.ftemp >> $(DependencyFile) |
594 |
|
endif |
595 |
|
$(Delete) Make.cpptemp Make.ctemp Make.ftemp |
621 |
|
|
622 |
|
pure : $(Executable).pure |
623 |
|
|
624 |
+ |
#make cvslog |
625 |
+ |
cvslog: |
626 |
+ |
$(DEV_ROOT)/scripts/cvs2cl.pl |
627 |
+ |
|
628 |
|
# Execute |
629 |
|
_runexe : |
630 |
|
$(Executable) $(RunParameters) |