50 |
|
constraints \ |
51 |
|
minimizers \ |
52 |
|
selection \ |
53 |
+ |
restraints \ |
54 |
+ |
lattice \ |
55 |
|
|
56 |
|
#packages containing applications |
57 |
|
Applications = \ |
58 |
|
applications/oopse \ |
59 |
|
applications/dump2Xyz \ |
60 |
+ |
applications/staticProps \ |
61 |
+ |
applications/dynamicProps \ |
62 |
|
applications/simpleBuilder\ |
63 |
+ |
applications/nanoRodBuilder \ |
64 |
|
|
65 |
|
Samples = \ |
66 |
|
samples/argon \ |
77 |
|
samples/zcons \ |
78 |
|
|
79 |
|
IncludeDirs = \ |
75 |
– |
@SPRNG_INC_DIR@ \ |
80 |
|
@MPI_INC_DIR@ |
81 |
|
|
82 |
|
LibraryDirs = \ |
79 |
– |
@SPRNG_LIB_DIR@ \ |
83 |
|
@MPI_LIB_DIR@ |
84 |
|
|
85 |
|
Libraries = \ |
83 |
– |
@SPRNG_LIB@ \ |
86 |
|
@MPI_LIB@ \ |
87 |
|
@MPI_F90_LIB@ |
88 |
|
|
207 |
|
|
208 |
|
OtherTargetFiles = $(OtherSourceFiles:%=$(PackageTargetDir)/%) |
209 |
|
|
210 |
+ |
########################################################################### |
211 |
+ |
# |
212 |
+ |
# Figure out the names of the module files based on some work done by |
213 |
+ |
# configure. The tr function below is from John Graham-Cumming |
214 |
+ |
# (http://www.jgc.org). |
215 |
+ |
# |
216 |
+ |
# The tr function. Has three arguments: |
217 |
+ |
# |
218 |
+ |
# $1 The list of characters to translate from |
219 |
+ |
# $2 The list of characters to translate to |
220 |
+ |
# $3 The text to translate |
221 |
+ |
# |
222 |
+ |
# For example, $(call tr,A B C,1 2 3,CAPITAL) becomes 21PIT1L. |
223 |
+ |
|
224 |
+ |
tr = $(eval __t := $3) \ |
225 |
+ |
$(foreach c, \ |
226 |
+ |
$(join $(addsuffix :,$1),$2), \ |
227 |
+ |
$(eval __t := \ |
228 |
+ |
$(subst $(word 1,$(subst :, ,$c)),$(word 2,$(subst :, ,$c)), \ |
229 |
+ |
$(__t))))$(__t) |
230 |
+ |
|
231 |
+ |
# Common character classes for use with the tr function. Each of |
232 |
+ |
# these is actually a variable declaration and must be wrapped with |
233 |
+ |
# $() or ${} to be used. |
234 |
+ |
|
235 |
+ |
[A-Z] := A B C D E F G H I J K L M N O P Q R S T U V W X Y Z # |
236 |
+ |
[a-z] := a b c d e f g h i j k l m n o p q r s t u v w x y z # |
237 |
+ |
[0-9] := 0 1 2 3 4 5 6 7 8 9 # |
238 |
+ |
[A-F] := A B C D E F # |
239 |
+ |
|
240 |
+ |
# Figure out whether we have $(eval) or not (GNU Make 3.80 and above) |
241 |
+ |
# if we do not then we need to use the shell version of tr, and not the |
242 |
+ |
# faster tr function above: |
243 |
+ |
|
244 |
+ |
__have_eval := $(false) |
245 |
+ |
__ignore := $(eval __have_eval := $(true)) |
246 |
+ |
|
247 |
+ |
ifndef __have_eval |
248 |
+ |
uc = $(shell echo $1 | tr "a-z" "A-Z") |
249 |
+ |
lc = $(shell echo $1 | tr "A-Z" "a-z") |
250 |
+ |
else |
251 |
+ |
uc = $(call tr,$([a-z]),$([A-Z]),$1) |
252 |
+ |
lc = $(call tr,$([A-Z]),$([a-z]),$1) |
253 |
+ |
endif |
254 |
+ |
|
255 |
+ |
# OK, now we can actually use these functions to figure out the names |
256 |
+ |
# of the module files: |
257 |
+ |
|
258 |
+ |
ifneq "$(words $(Modules))" "0" |
259 |
+ |
ifeq "$(ModuleCase)" "UPPER" |
260 |
+ |
MODULES = $(call uc,$(Modules)) |
261 |
+ |
else |
262 |
+ |
ifeq "$(ModuleCase)" "lower" |
263 |
+ |
MODULES = $(call lc,$(Modules)) |
264 |
+ |
else |
265 |
+ |
MODULES = $(Modules) |
266 |
+ |
endif |
267 |
+ |
endif |
268 |
+ |
ModuleFiles = $(MODULES:%= $(PackageTargetDir)/%.$(ModSuffix)) |
269 |
+ |
ParallelModuleFiles = $(MODULES:%= $(PackageParallelTargetDir)/%.$(ModSuffix)) |
270 |
+ |
endif |
271 |
+ |
# |
272 |
+ |
########################################################################### |
273 |
+ |
|
274 |
|
ThirdPartyJarsTmp = $(patsubst %,$(LibDir)/%,$(JavaLibraries)) |
275 |
|
ThirdPartyJars = $(subst $(Space),$(X),$(ThirdPartyJarsTmp)) |
276 |
|
|
282 |
|
#if Main is defined, do not build library. It may not be true sometimes |
283 |
|
ifneq "$(words $(ObjectFiles) $(ParallelObjectFiles))" "0" |
284 |
|
DependencyFile = $(PackageSourceDir)/Makedepend |
285 |
< |
ifneq "$(Main)" "" |
285 |
> |
ifneq "$(words $(Main))" "0" |
286 |
|
Executable = $(BinDir)/$(Main) |
287 |
< |
ParallelExecutable = $(BinDir)/$(Main)_MPI |
287 |
> |
ifeq "$(BuiltParallelExe)" "1" |
288 |
> |
ParallelExecutable = $(BinDir)/$(Main)_MPI |
289 |
> |
endif |
290 |
|
else |
291 |
|
SharedLibrary = $(LibDir)/lib$(subst /,,$(patsubst %,oopse_%,$(Package)))_UP.so |
292 |
|
StaticLibrary = $(LibDir)/lib$(subst /,,$(patsubst %,oopse_%,$(Package)))_UP.a |
324 |
|
MakeDepend = makedepend |
325 |
|
INSTALL = @INSTALL@ |
326 |
|
InstallProgram = @INSTALL_PROGRAM@ |
327 |
+ |
InstallScript = @INSTALL_SCRIPT@ |
328 |
|
InstallData = @INSTALL_DATA@ |
329 |
|
MkDir = @MKINSTALLDIRS@ |
330 |
|
Delete = rm -fr |
687 |
|
$(JarFile) \ |
688 |
|
$(Executable) |
689 |
|
endif |
690 |
+ |
|
691 |
+ |
echo : $(PackageListLoop) |
692 |
+ |
$(Print) Done echo. |
693 |
|
|
694 |
+ |
_echoall : |
695 |
+ |
$(Print) $(Modules) |
696 |
|
|
697 |
|
# make clean |
698 |
|
clean : $(PackageListLoop) |
699 |
|
$(Print) Done clean. |
700 |
|
|
701 |
|
_cleanall : |
702 |
< |
$(Delete) $(ObjectFiles) $(ParallelObjectFiles) |
702 |
> |
$(Delete) \ |
703 |
> |
$(ObjectFiles) \ |
704 |
> |
$(ModuleFiles) \ |
705 |
> |
$(ParallelObjectFiles) \ |
706 |
> |
$(ParallelModuleFiles) \ |
707 |
> |
$(JarFile) \ |
708 |
> |
$(SharedLibrary) \ |
709 |
> |
$(StaticLibrary) \ |
710 |
> |
$(ParallelSharedLibrary) \ |
711 |
> |
$(ParallelStaticLibrary) \ |
712 |
> |
$(CombinedStaticLib) \ |
713 |
> |
$(CombinedParallelStaticLib) |
714 |
|
|
715 |
|
# make distclean |
716 |
|
distclean : $(PackageListLoop) |
717 |
|
$(Print) Done clean. |
718 |
|
|
719 |
< |
_distcleanall : |
720 |
< |
$(Delete) $(ObjectFiles) \ |
636 |
< |
$(ParallelObjectFiles) \ |
637 |
< |
$(JarFile) \ |
638 |
< |
$(SharedLibrary) \ |
639 |
< |
$(StaticLibrary) \ |
640 |
< |
$(ParallelSharedLibrary) \ |
641 |
< |
$(ParallelStaticLibrary) \ |
642 |
< |
$(Executable) \ |
719 |
> |
_distcleanall : _cleanall |
720 |
> |
$(Delete) $(Executable) \ |
721 |
|
$(ParallelExecutable) \ |
722 |
|
$(DependencyFile) |
723 |
|
|
646 |
– |
|
724 |
|
# make depend |
725 |
|
depend : $(PackageListLoop) |
726 |
|
$(Print) Done dependencies. |
796 |
|
_installdata : $(MyInstallDir) |
797 |
|
$(Print) $(InstallFiles) |
798 |
|
ifneq "$(words $(InstallFiles))" "0" |
799 |
< |
$(InstallData) $(InstallFiles) $(MyInstallDir) |
799 |
> |
$(InstallCommand) $(InstallFiles) $(MyInstallDir) |
800 |
|
endif |
801 |
|
|
802 |
|
# make statistics |