78 |
|
samples/lipid \ |
79 |
|
samples/alkane \ |
80 |
|
samples/minimizer \ |
81 |
< |
samples/metals \ |
81 |
> |
samples/metals/EAM \ |
82 |
> |
samples/metals/EAM/nanoparticle \ |
83 |
> |
samples/metals/EAM/nanorod \ |
84 |
> |
samples/metals/Sutton-Chen \ |
85 |
|
samples/thermoIntegration/liquid \ |
86 |
|
samples/thermoIntegration/solid \ |
87 |
|
samples/dipole \ |
114 |
|
ModuleCase = @F90_MODULE_NAMES@ |
115 |
|
ModSuffix = @MOD@ |
116 |
|
LinkOptions = \ |
117 |
< |
@F90LIBS@ |
117 |
> |
@FCLIBS@ |
118 |
|
|
119 |
|
ParallelLinkOptions = \ |
120 |
< |
@F90LIBS@ |
120 |
> |
@FCLIBS@ |
121 |
|
|
122 |
|
|
123 |
|
#--------------------------------------------------------------------------- |
341 |
|
MakeDepend = makedepend |
342 |
|
LN_S = @LN_S@ |
343 |
|
INSTALL = @INSTALL@ |
344 |
+ |
EGREP = @EGREP@ |
345 |
|
InstallProgram = @INSTALL_PROGRAM@ |
346 |
|
InstallScript = @INSTALL_SCRIPT@ |
347 |
|
InstallData = @INSTALL_DATA@ |
350 |
|
StaticArchiver = @AR@ |
351 |
|
DynamicArchiver = @CC@ |
352 |
|
FortranCompiler = @FC@ |
349 |
– |
F90Compiler = @F90@ |
353 |
|
JavaCompiler = $(JAVA_HOME)/bin/javac |
354 |
|
JavaArchiver = $(JAVA_HOME)/bin/jar |
355 |
|
JarSigner = $(JAVA_HOME)/bin/jarsigner |
375 |
|
-sourcepath $(SourceDir) |
376 |
|
COptions = $(FrcDeclare) @CFLAGS@ |
377 |
|
CParallelOptions = $(FrcDeclare) $(ParallelDeclare) @CFLAGS@ |
378 |
< |
CppOptions = $(FrcDeclare) @CXXFLAGS@ @OOPSE_TEMPLATE_FLAGS@ |
379 |
< |
CppParallelOptions = $(FrcDeclare) $(ParallelDeclare) @CXXFLAGS@ @OOPSE_TEMPLATE_FLAGS@ |
380 |
< |
FortranOptions = |
381 |
< |
F90Options = @PREPFLAG@ @F90FLAGS@ @MODDIRFLAG@$(SourceDir) @MODDIRFLAG@$(TargetDir) |
379 |
< |
F90ParallelOptions = @PREPFLAG@ @F90FLAGS@ @MODDIRFLAG@$(SourceDir) @MODDIRFLAG@$(ParallelTargetDir) @PREPDEFFLAG@$(ParallelDeclare) |
378 |
> |
CppOptions = $(FrcDeclare) @CXXFLAGS@ |
379 |
> |
CppParallelOptions = $(FrcDeclare) $(ParallelDeclare) @CXXFLAGS@ |
380 |
> |
FortranOptions = @FCFLAGS@ @MODDIRFLAG@$(SourceDir) @MODDIRFLAG@$(TargetDir) @FCFLAGS_SRCEXT@ |
381 |
> |
FortranParallelOptions = @FCFLAGS@ @MODDIRFLAG@$(SourceDir) @MODDIRFLAG@$(ParallelTargetDir) @PREPDEFFLAG@$(ParallelDeclar) @FCFLAGS_SRCEXT@ |
382 |
|
JavaCompilerOptions = -d $(TargetDir) -classpath $(ClassPath) \ |
383 |
|
-sourcepath $(SourceDir) -deprecation |
384 |
|
JavaRunOptions = -classpath $(ClassPath) |
514 |
|
|
515 |
|
# .F90 -> .o |
516 |
|
$(PackageTargetDir)/%.o : %.F90 $(MainMakefile) |
517 |
< |
$(F90Compiler) $(F90Options) $(IncludePath) -c $< -o $@ |
517 |
> |
$(FortranCompiler) $(FortranOptions) $(IncludePath) -c $< -o $@ |
518 |
|
if test -n "`ls *.$(ModSuffix)`"; then \ |
519 |
|
$(Move) `ls *.$(ModSuffix)` $(PackageTargetDir);\ |
520 |
|
fi |
521 |
|
|
522 |
|
$(PackageParallelTargetDir)/%.o : %.F90 $(MainMakefile) |
523 |
< |
$(F90Compiler) $(F90ParallelOptions) $(IncludePath) -c $< -o $@ |
523 |
> |
$(FortranCompiler) $(FortranParallelOptions) $(IncludePath) -c $< -o $@ |
524 |
|
if test -n "`ls *.$(ModSuffix)`"; then \ |
525 |
|
$(Move) "`ls *.$(ModSuffix)`" $(PackageParallelTargetDir);\ |
526 |
|
fi |
645 |
|
$(Doxygen) $(DEV_ROOT)/make/Doxyfile |
646 |
|
|
647 |
|
#GUN make funtions to merge the libraries |
648 |
< |
find_objs = $(shell $(StaticArchiver) -t $(1)) |
648 |
> |
find_objs = $(shell $(StaticArchiver) -t $(1) | $(EGREP) -v "SYMDEF") |
649 |
|
extract_objs = $(shell $(StaticArchiver) -x $(1) $(call find_objs, $(1))) |
650 |
|
create_archive = $(shell $(StaticArchiver) $(StaticArchiverOptions) $(2) $(call find_objs, $(1))) |
651 |
|
remove_objs = $(shell $(Delete) $(call find_objs, $(1))) |
652 |
|
do_create = $(call extract_objs,$(1))$(call create_archive,$(1),$(2))$(call remove_objs,$(1)) |
653 |
|
do_link = $(shell $(LN_S) $(1) $(2)) |
654 |
+ |
all_objs = $(foreach thisLib,$(LibNames), $(call find_objs, $(thisLib))) |
655 |
+ |
all_parallel_objs = $(foreach thisLib,$(ParallelLibNames), $(call find_objs, $(thisLib))) |
656 |
+ |
all_lib_objs = $(patsubst %,$(TargetDir)/%,$(call all_objs)) |
657 |
+ |
all_lib_parallel_objs = $(patsubst %,$(ParallelTargetDir)/%,$(call all_parallel_objs)) |
658 |
|
|
659 |
|
$(CombinedStaticLib) : $(LibDir)/.stamp_UP |
660 |
< |
$(Print) create $@ |
661 |
< |
$(foreach thisLib,$(LibNames),$(call do_create,$(thisLib),$@)) |
660 |
> |
$(Print) creating $@ |
661 |
> |
$(StaticArchiver) $(StaticArchiverOptions) $@ $(call all_lib_objs) |
662 |
|
$(Ranlib) $(CombinedStaticLib) |
663 |
|
|
664 |
|
$(CombinedParallelStaticLib) : $(LibDir)/.stamp_MPI |
665 |
< |
$(Print) create $@ |
666 |
< |
$(foreach thisLib,$(ParallelLibNames), $(call do_create, $(thisLib), $@)) |
665 |
> |
$(Print) creating $@ |
666 |
> |
$(StaticArchiver) $(StaticArchiverOptions) $@ $(call all_lib_parallel_objs) |
667 |
|
$(Ranlib) $(CombinedParallelStaticLib) |
668 |
|
|
669 |
|
# Executable |