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 \ |
53 |
< |
restraints \ |
51 |
> |
minimizers \ |
52 |
|
|
53 |
|
#packages containing applications |
54 |
|
Applications = \ |
55 |
|
applications/oopse \ |
56 |
|
applications/dump2Xyz \ |
57 |
< |
applications/simpleBuilder |
57 |
> |
applications/simpleBuilder\ |
58 |
|
|
59 |
|
Samples = \ |
60 |
|
samples/argon \ |
245 |
|
# |
246 |
|
#--------------------------------------------------------------------------- |
247 |
|
Print = @echo |
248 |
< |
Move = mv |
248 |
> |
Move = mv -f |
249 |
|
Copy = cp |
250 |
|
CCompiler = @CC@ |
251 |
|
CppCompiler = @CXX@ |
283 |
|
JniOptions = |
284 |
|
RmiOptions = -d $(TargetDir) -classpath $(ClassPath) \ |
285 |
|
-sourcepath $(SourceDir) |
286 |
< |
COptions = $(FrcDeclare) |
287 |
< |
CParallelOptions = $(FrcDeclare) $(ParallelDeclare) |
288 |
< |
CppOptions = $(FrcDeclare) |
289 |
< |
CppParallelOptions = $(FrcDeclare) $(ParallelDeclare) |
286 |
> |
COptions = $(FrcDeclare) @CFLAGS@ |
287 |
> |
CParallelOptions = $(FrcDeclare) $(ParallelDeclare) @CFLAGS@ |
288 |
> |
CppOptions = $(FrcDeclare) @CXXFLAGS@ |
289 |
> |
CppParallelOptions = $(FrcDeclare) $(ParallelDeclare) @CXXFLAGS@ |
290 |
|
FortranOptions = |
291 |
|
F90Options = @PREPFLAG@ @F90FLAGS@ @MODDIRFLAG@$(SourceDir) @MODDIRFLAG@$(TargetDir) |
292 |
|
F90ParallelOptions = @PREPFLAG@ @F90FLAGS@ @MODDIRFLAG@$(SourceDir) @MODDIRFLAG@$(ParallelTargetDir) @PREPDEFFLAG@$(ParallelDeclare) |
419 |
|
# .F90 -> .o |
420 |
|
$(PackageTargetDir)/%.o : %.F90 |
421 |
|
$(F90Compiler) $(F90Options) $(IncludePath) -c $< -o $@ |
422 |
< |
if test -f *.$(ModSuffix); then \ |
423 |
< |
$(Move) *.$(ModSuffix) $(PackageTargetDir);\ |
422 |
> |
if test -n "`ls *.$(ModSuffix)`"; then \ |
423 |
> |
$(Move) `ls *.$(ModSuffix)` $(PackageTargetDir);\ |
424 |
|
fi |
425 |
|
|
426 |
|
$(PackageParallelTargetDir)/%.o : %.F90 |
427 |
|
$(F90Compiler) $(F90ParallelOptions) $(IncludePath) -c $< -o $@ |
428 |
< |
if test -f *.$(ModSuffix); then \ |
429 |
< |
$(Move) *.$(ModSuffix) $(PackageParallelTargetDir);\ |
428 |
> |
if test -n "`ls *.$(ModSuffix)`"; then \ |
429 |
> |
$(Move) "`ls *.$(ModSuffix)`" $(PackageParallelTargetDir);\ |
430 |
|
fi |
431 |
|
|
432 |
|
ifeq "$(UseMPI)" "yes" |
433 |
|
%.o : %.F90 |
434 |
|
$(MAKE) $(MakeOptions) $(PackageTargetDir)/$@ |
435 |
< |
if test -f *.$(ModSuffix); then \ |
436 |
< |
$(Move) *.$(ModSuffix) $(PackageTargetDir);\ |
437 |
< |
fi |
435 |
> |
if test -n "`ls *.$(ModSuffix)`"; then\ |
436 |
> |
$(Move) "`ls *.$(ModSuffix)`" $(PackageTargetDir);\ |
437 |
> |
fi |
438 |
|
|
439 |
|
$(MAKE) $(MakeOptions) $(PackageParallelTargetDir)/$@ |
440 |
< |
if test -f *.$(ModSuffix); then \ |
441 |
< |
$(Move) *.$(ModSuffix) $(PackageParallelTargetDir);\ |
440 |
> |
if test -n "`ls *.$(ModSuffix)`"; then\ |
441 |
> |
$(Move) "`ls *.$(ModSuffix)`" $(PackageTargetDir);\ |
442 |
|
fi |
443 |
|
|
444 |
|
else |
445 |
|
%.o : %.F90 |
446 |
|
$(MAKE) $(MakeOptions) $(PackageTargetDir)/$@ |
447 |
< |
if test -f *.$(ModSuffix); then \ |
448 |
< |
$(Move) *.$(ModSuffix) $(PackageTargetDir);\ |
449 |
< |
fi |
447 |
> |
if test -n "`ls *.$(ModSuffix)`"; then\ |
448 |
> |
$(Move) "`ls *.$(ModSuffix)`" $(PackageTargetDir);\ |
449 |
> |
fi |
450 |
|
|
451 |
|
endif |
452 |
|
|
716 |
|
ifneq "$(words $(InstallFiles))" "0" |
717 |
|
$(InstallData) $(InstallFiles) $(MyInstallDir) |
718 |
|
endif |
719 |
< |
|
719 |
> |
|
720 |
|
# make statistics |
721 |
|
_statisticsall : |
722 |
|
@$(Print) $(patsubst %,$(CurrentDir)/%,$(SourceFiles)) >> $(DEV_ROOT)/files.tmp |