49 |
|
integrators\ |
50 |
|
constraints \ |
51 |
|
minimizers \ |
52 |
+ |
selection \ |
53 |
|
|
54 |
|
#packages containing applications |
55 |
|
Applications = \ |
56 |
|
applications/oopse \ |
57 |
|
applications/dump2Xyz \ |
58 |
|
applications/simpleBuilder\ |
59 |
+ |
applications/staticProps \ |
60 |
+ |
applications/dynamicProps \ |
61 |
|
|
62 |
|
Samples = \ |
63 |
|
samples/argon \ |
126 |
|
# /home/maul/gezelter/src/code/src/UseTheForce/Darkside --> UseTheForce/Darkside |
127 |
|
#Package = $(shell echo $(CurrentDir) | sed -e 's/^.*\/src\/\(.*\)/\1/g') |
128 |
|
#use shell script to get the absolute path and then rip it off from $(CurrentDir) |
129 |
< |
Package = $(subst $(shell cd $(SourceDir); pwd)/,,$(CurrentDir)) |
129 |
> |
#Package = $(subst $(shell cd $(SourceDir); pwd)/,,$(CurrentDir)) |
130 |
> |
# REMINDER: We are now using the Package line in each subdir makefile. |
131 |
> |
# This avoids the strange path problem and the subshell |
132 |
|
|
133 |
|
PackageList = $(Package) |
134 |
|
PackageSourceDir = $(SourceDir)/$(Package) |
259 |
|
INSTALL = @INSTALL@ |
260 |
|
InstallProgram = @INSTALL_PROGRAM@ |
261 |
|
InstallData = @INSTALL_DATA@ |
262 |
< |
MkDir = @MKINSTALLDIRS@ |
262 |
> |
MkDir = @MKINSTALLDIRS@ |
263 |
|
Delete = rm -fr |
264 |
|
StaticArchiver = @AR@ |
265 |
|
DynamicArchiver = @CC@ |
279 |
|
Lex = @LEX@ |
280 |
|
Ranlib = @RANLIB@ |
281 |
|
Doxygen = @DOXYGEN@ |
282 |
+ |
Ps = @PS@ |
283 |
+ |
PsType = @PSTYPE@ |
284 |
|
|
285 |
|
MakeOptions = -k |
286 |
|
MakeDependOptions = |
290 |
|
JniOptions = |
291 |
|
RmiOptions = -d $(TargetDir) -classpath $(ClassPath) \ |
292 |
|
-sourcepath $(SourceDir) |
293 |
< |
COptions = $(FrcDeclare) @CFLAGS@ |
293 |
> |
COptions = $(FrcDeclare) @CFLAGS@ -DPS=$(Ps) -DPSTYPE=$(PsType) |
294 |
|
CParallelOptions = $(FrcDeclare) $(ParallelDeclare) @CFLAGS@ |
295 |
< |
CppOptions = $(FrcDeclare) @CXXFLAGS@ |
296 |
< |
CppParallelOptions = $(FrcDeclare) $(ParallelDeclare) @CXXFLAGS@ |
295 |
> |
CppOptions = $(FrcDeclare) @CXXFLAGS@ @OOPSE_TEMPLATE_FLAGS@ |
296 |
> |
CppParallelOptions = $(FrcDeclare) $(ParallelDeclare) @CXXFLAGS@ @OOPSE_TEMPLATE_FLAGS@ |
297 |
|
FortranOptions = |
298 |
|
F90Options = @PREPFLAG@ @F90FLAGS@ @MODDIRFLAG@$(SourceDir) @MODDIRFLAG@$(TargetDir) |
299 |
|
F90ParallelOptions = @PREPFLAG@ @F90FLAGS@ @MODDIRFLAG@$(SourceDir) @MODDIRFLAG@$(ParallelTargetDir) @PREPDEFFLAG@$(ParallelDeclare) |
371 |
|
|
372 |
|
# Create target directory |
373 |
|
$(PackageTargetDir) : |
374 |
< |
$(MakeDir) $@ |
374 |
> |
$(MkDir) $@ |
375 |
|
|
376 |
+ |
$(BinDir) : |
377 |
+ |
$(MkDir) $@ |
378 |
+ |
|
379 |
|
# .c -> .o |
380 |
|
$(PackageTargetDir)/%.o : %.c |
381 |
|
$(Print) $@ |
457 |
|
if test -n "`ls *.$(ModSuffix)`"; then\ |
458 |
|
$(Move) "`ls *.$(ModSuffix)`" $(PackageTargetDir);\ |
459 |
|
fi |
450 |
– |
|
460 |
|
endif |
461 |
|
|
462 |
|
|
576 |
|
$(Ranlib) $(CombinedParallelStaticLib) |
577 |
|
|
578 |
|
# Executable |
579 |
< |
$(Executable) : $(CombinedStaticLib) $(ObjectFiles) |
580 |
< |
$(Linker) $(ObjectFiles) $(LinkOptions) $(LibDirs) $(CombinedStaticLib) $(Libraries) -o $@ |
579 |
> |
$(Executable) : $(CombinedStaticLib) $(ObjectFiles) $(BinDir) |
580 |
> |
$(Linker) $(ObjectFiles) $(CombinedStaticLib) $(LinkOptions) $(LibDirs) $(Libraries) -o $@ |
581 |
|
|
582 |
< |
$(ParallelExecutable) : $(CombinedParallelStaticLib) $(ParallelObjectFiles) |
583 |
< |
$(Linker) $(ParallelObjectFiles) $(ParallelLinkOptions) $(LibDirs) $(CombinedParallelStaticLib) $(Libraries) -o $@ |
582 |
> |
$(ParallelExecutable) : $(CombinedParallelStaticLib) $(ParallelObjectFiles) $(BinDir) |
583 |
> |
$(Linker) $(ParallelObjectFiles) $(CombinedParallelStaticLib) $(ParallelLinkOptions) $(LibDirs) $(Libraries) -o $@ |
584 |
|
|
585 |
|
# Anything else is just copied from source to target |
586 |
|
$(PackageTargetDir)/% : $(PackageSourceDir)/% |