51 |
|
minimizers \ |
52 |
|
selection \ |
53 |
|
restraints \ |
54 |
+ |
lattice \ |
55 |
|
|
56 |
|
#packages containing applications |
57 |
|
Applications = \ |
58 |
|
applications/oopse \ |
59 |
|
applications/dump2Xyz \ |
59 |
– |
applications/simpleBuilder\ |
60 |
|
applications/staticProps \ |
61 |
|
applications/dynamicProps \ |
62 |
+ |
applications/simpleBuilder\ |
63 |
+ |
applications/nanoRodBuilder \ |
64 |
|
|
65 |
|
Samples = \ |
66 |
|
samples/argon \ |
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 |
|
|
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) |
701 |
|
_cleanall : |
702 |
|
$(Delete) \ |
703 |
|
$(ObjectFiles) \ |
704 |
+ |
$(ModuleFiles) \ |
705 |
|
$(ParallelObjectFiles) \ |
706 |
+ |
$(ParallelModuleFiles) \ |
707 |
|
$(JarFile) \ |
708 |
|
$(SharedLibrary) \ |
709 |
|
$(StaticLibrary) \ |