1 |
#--------------------------------------------------------------------------- |
2 |
# (C) 1999 - 2002 Jacob Dreyer - Geotechnical Software Services |
3 |
# jacob.dreyer@geosoft.no - http://geosoft.no |
4 |
# |
5 |
# This program is free software; you can redistribute it and/or |
6 |
# modify it under the terms of the GNU General Public License |
7 |
# as published by the Free Software Foundation; either version 2 |
8 |
# of the License, or (at your option) any later version. |
9 |
# |
10 |
# This program is distributed in the hope that it will be useful, |
11 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
13 |
# GNU General Public License for more details. |
14 |
# |
15 |
# You should have received a copy of the GNU General Public License |
16 |
# along with this program; if not, write to the Free Software |
17 |
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, |
18 |
# MA 02111-1307, USA. |
19 |
#--------------------------------------------------------------------------- |
20 |
#--------------------------------------------------------------------------- |
21 |
# |
22 |
# GnuMake crash course: |
23 |
# |
24 |
# target : depends |
25 |
# rule |
26 |
# |
27 |
# target - the parameter given to make. I.e. what to build |
28 |
# depends - file or other targets target depends on |
29 |
# rule - how to create target (note that rule is preceeded by a TAB char) |
30 |
# $(VAR) - environment variable or variable defined above |
31 |
# $@ - Current target |
32 |
# $* - Current target without extension |
33 |
# $< - Current dependency |
34 |
# |
35 |
#--------------------------------------------------------------------------- |
36 |
|
37 |
Packages = \ |
38 |
utils \ |
39 |
math \ |
40 |
types \ |
41 |
primitives \ |
42 |
visitors \ |
43 |
UseTheForce/DarkSide \ |
44 |
UseTheForce \ |
45 |
brains \ |
46 |
io \ |
47 |
integrators \ |
48 |
minimizers \ |
49 |
constraints \ |
50 |
profiling \ |
51 |
restraints \ |
52 |
applications \ |
53 |
|
54 |
#--------------------------------------------------------------------------- |
55 |
# |
56 |
# Directories |
57 |
# |
58 |
#--------------------------------------------------------------------------- |
59 |
|
60 |
srcdir = @srcdir@ |
61 |
SourceDir = $(DEV_ROOT)/src |
62 |
TargetDir = $(DEV_ROOT)/obj |
63 |
ParallelTargetDir = $(DEV_ROOT)/MPIobj |
64 |
LibDir = $(DEV_ROOT)/lib |
65 |
MakeDir = $(DEV_ROOT)/make |
66 |
BinDir = $(DEV_ROOT)/bin |
67 |
DocsDir = $(DEV_ROOT)/docs |
68 |
CurrentDir = $(CURDIR) |
69 |
|
70 |
ifdef Source |
71 |
Package = $(subst $(SourceDir)/,,$(CurrentDir)) |
72 |
PackageList = $(Package) |
73 |
PackageSourceDir = $(SourceDir)/$(Package) |
74 |
PackageTargetDir = $(TargetDir) |
75 |
PackageParallelTargetDir = $(ParallelTargetDir) |
76 |
JavaMainClass = $(subst /,.,$(Package)).$(Main) |
77 |
else |
78 |
PackageList = $(Packages) $(JavaPackages) |
79 |
endif |
80 |
|
81 |
PackageListLoop = $(patsubst %,$(SourceDir)/%/.loop,$(PackageList)) |
82 |
|
83 |
JRE = $(JAVA_HOME)/jre/lib/rt.jar |
84 |
|
85 |
ifdef IS_UNIX |
86 |
X = : |
87 |
else |
88 |
X = \; |
89 |
endif |
90 |
|
91 |
#--------------------------------------------------------------------------- |
92 |
# |
93 |
# Classification of files |
94 |
# |
95 |
#--------------------------------------------------------------------------- |
96 |
|
97 |
# Source |
98 |
JavaFiles = $(filter %.java, $(Source)) |
99 |
CppFiles = $(filter %.cpp, $(Source)) |
100 |
CFiles = $(filter %.c, $(Source)) |
101 |
FortranFiles = $(filter %.f, $(Source)) |
102 |
F90Files = $(filter %.F90, $(Source)) |
103 |
CorbaFiles = $(filter %.idl, $(Source)) |
104 |
LexFiles = $(filter %.l, $(Source)) |
105 |
YaccFiles = $(filter %.y, $(Source)) |
106 |
OtherSourceFiles = $(filter-out $(JavaFiles) $(CppFiles) $(CFiles) \ |
107 |
$(FortranFiles) $(F90Files) $(LexFiles) \ |
108 |
$(YaccFiles) $(CorbaFiles), \ |
109 |
$(Source)) |
110 |
ManifestFile = $(PackageSourceDir)/Manifest |
111 |
SourceFiles = $(JavaFiles:%.java= $(PackageSourceDir)/%.java)\ |
112 |
$(CppFiles:%.cpp= $(PackageSourceDir)/%.cpp)\ |
113 |
$(CFiles:%.c= $(PackageSourceDir)/%.c)\ |
114 |
$(FortranFiles:%.f= $(PackageSourceDir)/%.f)\ |
115 |
$(F90Files:%.F90= $(PackageSourceDir)/%.F90)\ |
116 |
$(LexFiles:%.l= $(PackageSourceDir)/%.l)\ |
117 |
$(YaccFiles:%.y= $(PackageSourceDir)/%.y)\ |
118 |
|
119 |
|
120 |
# Target |
121 |
JavaClassFiles = $(JavaFiles:%.java= $(PackageTargetDir)/%.class) |
122 |
JavaClassFilesRel = $(JavaFiles:%.java= $(Package)/%.class) |
123 |
RmiStubFiles = $(RmiSource:%.java= $(PackageTargetDir)/%_Stub.class) |
124 |
RmiSkeletonFiles = $(RmiSource:%.java= $(PackageTargetDir)/%_Skel.class) |
125 |
JniClassFiles = $(JniSource:%.java= $(PackageTargetDir)/%.class) |
126 |
JniHeaders = $(JniSource:%.java= $(PackageSourceDir)/%.h) |
127 |
ObjectFiles = $(CFiles:%.c= $(PackageTargetDir)/%.o)\ |
128 |
$(CppFiles:%.cpp= $(PackageTargetDir)/%.o)\ |
129 |
$(FortranFiles:%.f= $(PackageTargetDir)/%.o)\ |
130 |
$(F90Files:%.F90= $(PackageTargetDir)/%.o)\ |
131 |
$(LexFiles:%.l= $(PackageTargetDir)/%.o)\ |
132 |
$(YaccFiles:%.y= $(PackageTargetDir)/%.o) |
133 |
ParallelObjectFiles = $(CFiles:%.c= $(PackageParallelTargetDir)/%.o)\ |
134 |
$(CppFiles:%.cpp= $(PackageParallelTargetDir)/%.o)\ |
135 |
$(FortranFiles:%.f= $(PackageParallelTargetDir)/%.o)\ |
136 |
$(F90Files:%.F90= $(PackageParallelTargetDir)/%.o)\ |
137 |
$(LexFiles:%.l= $(PackageParallelTargetDir)/%.o)\ |
138 |
$(YaccFiles:%.y= $(PackageParallelTargetDir)/%.o) |
139 |
|
140 |
DerivedSource = $(YaccFiles:%.y= %.h) \ |
141 |
$(YaccFiles:%.y= %.c) \ |
142 |
$(LexFiles:%.l= %.c) |
143 |
|
144 |
DerivedCFiles = $(YaccFiles:%.y= %.c) \ |
145 |
$(LexFiles:%.l= %.c) |
146 |
|
147 |
OtherTargetFiles = $(OtherSourceFiles:%=$(PackageTargetDir)/%) |
148 |
|
149 |
ThirdPartyJarsTmp = $(patsubst %,$(LibDir)/%,$(JavaLibraries)) |
150 |
ThirdPartyJars = $(subst $(Space),$(X),$(ThirdPartyJarsTmp)) |
151 |
|
152 |
ifneq "$(words $(JavaFiles))" "0" |
153 |
JavaPackageName = $(subst /,.,$(Package)) |
154 |
JarFile = $(LibDir)/$(subst /,,$(Package)).jar |
155 |
endif |
156 |
|
157 |
#if Main is defined, do not build library. It may not be true sometimes |
158 |
ifneq "$(words $(ObjectFiles) $(ParallelObjectFiles))" "0" |
159 |
DependencyFile = $(PackageSourceDir)/Makedepend |
160 |
ifneq "$(Main)" "" |
161 |
Executable = $(BinDir)/$(Main) |
162 |
ParallelExecutable = $(BinDir)/$(Main)_MPI |
163 |
else |
164 |
SharedLibrary = $(LibDir)/lib$(subst /,,$(Package)).so |
165 |
StaticLibrary = $(LibDir)/lib$(subst /,,$(Package)).a |
166 |
ParallelSharedLibrary = $(LibDir)/lib$(subst /,,$(Package))_MPI.so |
167 |
ParallelStaticLibrary = $(LibDir)/lib$(subst /,,$(Package))_MPI.a |
168 |
endif |
169 |
endif |
170 |
# |
171 |
# Misc |
172 |
# |
173 |
ClassPath = $(JRE)$(X)$(TargetDir)$(X)$(ThirdPartyJars) |
174 |
JavaPackageNames = $(subst /,.,$(JavaPackages)) |
175 |
IncludePath = -I$(SourceDir) $(IncludeDirs:%=-I%) |
176 |
LibDirs = -L$(LibDir) $(LibraryDirs:%=-L%) |
177 |
LocalLibs = $(subst /,,$(Packages)) |
178 |
LibList = $(LocalLibs:%=-l%) $(Libraries:%=-l%) |
179 |
|
180 |
|
181 |
#--------------------------------------------------------------------------- |
182 |
# |
183 |
# Tools & Options |
184 |
# |
185 |
#--------------------------------------------------------------------------- |
186 |
Print = @echo |
187 |
Move = mv |
188 |
Copy = cp |
189 |
CCompiler = @CC@ |
190 |
CppCompiler = @CXX@ |
191 |
Linker = @CXX@ |
192 |
MakeDepend = makedepend |
193 |
Install = @INSTALL@ |
194 |
InstallProgram = @INSTALL_PROGRAM@ |
195 |
InstallData = @INSTALL_DATA@ |
196 |
MakeDir = @MKINSTALLDIRS@ |
197 |
Delete = rm -fr |
198 |
StaticArchiver = @AR@ |
199 |
DynamicArchiver = @CC@ |
200 |
FortranCompiler = @FC@ |
201 |
F90Compiler = @F90@ |
202 |
JavaCompiler = $(JAVA_HOME)/bin/javac |
203 |
JavaArchiver = $(JAVA_HOME)/bin/jar |
204 |
JarSigner = $(JAVA_HOME)/bin/jarsigner |
205 |
JavadocGenerator = $(JAVA_HOME)/bin/javadoc |
206 |
JniCompiler = $(JAVA_HOME)/bin/javah |
207 |
RmiCompiler = $(JAVA_HOME)/bin/rmic |
208 |
JavaExecute = $(JAVA_HOME)/bin/java |
209 |
Purify = purify |
210 |
WordCount = wc |
211 |
List = cat |
212 |
Yacc = @YACC@ |
213 |
Lex = @LEX@ |
214 |
|
215 |
|
216 |
MakeOptions = -k -s |
217 |
MakeDependOptions = |
218 |
StaticArchiverOptions = rc |
219 |
DynamicArchiverOptions = -shared |
220 |
JavaArchiverOptions = |
221 |
JniOptions = |
222 |
RmiOptions = -d $(TargetDir) -classpath $(ClassPath) \ |
223 |
-sourcepath $(SourceDir) |
224 |
FortranOptions = |
225 |
F90Options = -I$(SourceDir) -module $(TargetDir) |
226 |
JavaCompilerOptions = -d $(TargetDir) -classpath $(ClassPath) \ |
227 |
-sourcepath $(SourceDir) -deprecation |
228 |
JavaRunOptions = -classpath $(ClassPath) |
229 |
PurifyOptions = |
230 |
JavadocOptions = -d $(DocsDir) \ |
231 |
-sourcepath $(SourceDir) \ |
232 |
-classpath $(ClassPath) \ |
233 |
-author \ |
234 |
-package \ |
235 |
-use \ |
236 |
-splitIndex \ |
237 |
-version \ |
238 |
-link file:$(JAVA_HOME)/docs/api \ |
239 |
-windowtitle $(JavadocWindowTitle) \ |
240 |
-doctitle $(JavadocDocTitle) \ |
241 |
-header $(JavadocHeader) \ |
242 |
-bottom $(JavadocFooter) |
243 |
WordCountOptions = --lines |
244 |
|
245 |
Empty = |
246 |
Space = $(Empty) $(Empty) |
247 |
|
248 |
|
249 |
#--------------------------------------------------------------------------- |
250 |
# |
251 |
# Rules |
252 |
# |
253 |
#--------------------------------------------------------------------------- |
254 |
default : build |
255 |
|
256 |
%.loop : |
257 |
@$(MAKE) $(MakeOptions) -C $(subst .loop,,$@) _$(MAKECMDGOALS)all |
258 |
|
259 |
# Create target directory |
260 |
$(PackageTargetDir) : |
261 |
$(MakeDir) $@ |
262 |
|
263 |
# .c -> .o |
264 |
$(PackageTargetDir)/%.o : $(PackageSourceDir)/%.c |
265 |
$(Print) $@ |
266 |
$(Print) $(CCompiler) $(COptions) -c $(IncludePath) $< -o $@ |
267 |
@$(CCompiler) $(COptions) -c $(IncludePath) $< -o $@ |
268 |
|
269 |
%.o : $(PackageSourceDir)/%.c |
270 |
$(MAKE) $(MakeOptions) $(PackageTargetDir)/$@ |
271 |
|
272 |
# .cpp -> .o |
273 |
$(PackageTargetDir)/%.o : $(PackageSourceDir)/%.cpp |
274 |
$(Print) $@ |
275 |
$(Print) $(CppCompiler) $(CppOptions) -c $(IncludePath) $< -o $@ |
276 |
$(CppCompiler) $(CppOptions) -c $(IncludePath) $< -o $@ |
277 |
|
278 |
%.o : $(PackageSourceDir)/%.cpp |
279 |
$(MAKE) $(MakeOptions) $(PackageTargetDir)/$@ |
280 |
|
281 |
# .f -> .o |
282 |
$(PackageTargetDir)/%.o : $(PackageSourceDir)/%.f |
283 |
$(Print) $@ |
284 |
$(Print) $(FortranCompiler) $(FortranOptions) -c $< -o $@ |
285 |
@$(FortranCompiler) $(FortranOptions) -c $< -o $@ |
286 |
|
287 |
%.o : $(PackageSourceDir)/%.f |
288 |
$(MAKE) $(MakeOptions) $(PackageTargetDir)/$@ |
289 |
|
290 |
# .F90 -> .o |
291 |
$(PackageTargetDir)/%.o : $(PackageSourceDir)/%.F90 |
292 |
$(Print) $@ |
293 |
$(Print) $(F90Compiler) $(F90Options) -c $< -o $@ |
294 |
@$(F90Compiler) $(F90Options) -c $< -o $@ |
295 |
|
296 |
%.o : $(PackageSourceDir)/%.F90 |
297 |
$(MAKE) $(MakeOptions) $(PackageTargetDir)/$@ |
298 |
|
299 |
# .java -> .class |
300 |
$(PackageTargetDir)/%.class : $(PackageSourceDir)/%.java |
301 |
$(Print) $@ |
302 |
$(Print) $(JavaCompiler) $(JavaCompilerOptions) $< |
303 |
@$(JavaCompiler) $(JavaCompilerOptions) $< |
304 |
|
305 |
%.class : $(PackageSourceDir)/%.java |
306 |
@$(MAKE) $(MakeOptions) $(PackageTargetDir)/$@ |
307 |
|
308 |
# .class -> .h |
309 |
$(PackageSourceDir)/%.h : $(PackageTargetDir)/%.class |
310 |
$(Print) $@ |
311 |
$(Print) $(JniCompiler) $(JniOptions) $(JavaPackageName).$* |
312 |
$(JniCompiler) $(JniOptions) $(JavaPackageName).$* |
313 |
|
314 |
%.h : %.class |
315 |
$(MAKE) $(MakeOptions) $(PackageSourceDir)/$@ |
316 |
|
317 |
#.y -> .h |
318 |
$(PackageSourceDir)/%.h : $(PackageSourceDir)/%.y |
319 |
$(Print) $@ |
320 |
$(Print) @$(Yacc) -d $? |
321 |
@$(Yacc) -d $? |
322 |
@$(Move) y.tab.h $*.h |
323 |
@$(Delete) y.tab.c |
324 |
|
325 |
#.y -> .c |
326 |
$(PackageSourceDir)/%.c : $(PackageSourceDir)/%.y |
327 |
$(Print) $@ |
328 |
$(Print) $(Yacc) -d $? |
329 |
@$(Yacc) -d $? |
330 |
@$(Move) y.tab.c $*.c |
331 |
@$(Delete) y.tab.h |
332 |
|
333 |
# .l -> .c |
334 |
$(PackageSourceDir)/%.c : $(PackageSourceDir)/%.l |
335 |
$(Print) $@ |
336 |
$(Print) $(Lex) -o$@ $? |
337 |
@$(Lex) -o$@ $? |
338 |
|
339 |
# .o -> .a |
340 |
$(LibDir)/%.a : $(ObjectFiles) |
341 |
$(Print) $@ |
342 |
$(Print) $(StaticArchiver) $(StaticArchiverOptions) $@ $(ObjectFiles) |
343 |
@$(StaticArchiver) $(StaticArchiverOptions) $@ $(ObjectFiles) |
344 |
|
345 |
%.a : $(ObjectFiles) |
346 |
$(MAKE) $(MakeOptions) $(LibDir)/$@ |
347 |
|
348 |
$(LibDir)/%_MPI.a : $(ParallelObjectFiles) |
349 |
$(Print) $@ |
350 |
$(Print) $(StaticArchiver) $(StaticArchiverOptions) $@ $(ParallelObjectFiles) |
351 |
@$(StaticArchiver) $(StaticArchiverOptions) $@ $(ParallelObjectFiles) |
352 |
|
353 |
%_MPI.a : $(ParallelObjectFiles) |
354 |
$(MAKE) $(MakeOptions) $(LibDir)/$@ |
355 |
|
356 |
# .o -> .so |
357 |
$(LibDir)/%.so : $(ObjectFiles) |
358 |
$(Print) $@ |
359 |
$(Print) $(DynamicArchiver) $(ObjectFiles) $(DynamicArchiverOptions) -o $@ |
360 |
$(DynamicArchiver) $(ObjectFiles) $(DynamicArchiverOptions) -o $@ |
361 |
|
362 |
%.so : $(ObjectFiles) |
363 |
$(MAKE) $(MakeOptions) $(LibDir)/$@ |
364 |
|
365 |
$(LibDir)/%_MPI.so : $(ParallelObjectFiles) |
366 |
$(Print) $@ |
367 |
$(Print) $(DynamicArchiver) $(ParallelObjectFiles) $(DynamicArchiverOptions) -o $@ |
368 |
$(DynamicArchiver) $(ParallelObjectFiles) $(DynamicArchiverOptions) -o $@ |
369 |
|
370 |
%_MPI.so : $(ParallelObjectFiles) |
371 |
$(MAKE) $(MakeOptions) $(LibDir)/$@ |
372 |
|
373 |
# .class -> .jar |
374 |
$(LibDir)/%.jar : $(JavaClassFiles) $(OtherTargetFiles) |
375 |
$(Print) $@ |
376 |
$(Print) $(JavaArchiver) -cf $@ $(JavaClassFilesRel) $(OtherTargetFiles) |
377 |
@cd $(TargetDir); $(JavaArchiver) -cf $@ \ |
378 |
$(JavaClassFilesRel) $(OtherTargetFiles) |
379 |
|
380 |
%.jar : $(JavaClassFiles) $(OtherTargetFiles) |
381 |
$(MAKE) $(MakeOptions) $(LibDir)/$@ |
382 |
|
383 |
# .class -> JavaDoc |
384 |
javadoc : |
385 |
$(Print) $(JavaPackageNames) > $(DEV_ROOT)/packages.tmp |
386 |
$(JavadocGenerator) $(JavadocOptions) @$(DEV_ROOT)/packages.tmp |
387 |
$(Delete) $(DEV_ROOT)/packages.tmp |
388 |
$(Print) Done JavaDoc. |
389 |
|
390 |
# .class -> _Stub.class |
391 |
$(PackageTargetDir)/%_Stub.class : $(PackageTargetDir)/%.class |
392 |
$(Print) $@ |
393 |
$(RmiCompiler) $(RmiOptions) $(JavaPackageName).$* |
394 |
|
395 |
%_Stub.class : %.class |
396 |
$(MAKE) $(MakeOptions) $(PackageTargetDir)/$@ |
397 |
|
398 |
# .class -> _Skel.class |
399 |
$(PackageTargetDir)/%_Skel.class : $(PackageTargetDir)/%.class |
400 |
$(Print) $@ |
401 |
$(RmiCompiler) $(RmiOptions) $(JavaPackageName).$* |
402 |
|
403 |
%_Skel.class : %.class |
404 |
$(MAKE) $(MakeOptions) $(PackageTargetDir)/$@ |
405 |
|
406 |
# Executable |
407 |
$(Executable) : $(ObjectFiles) |
408 |
$(Print) $@ |
409 |
$(Linker) $(LinkOptions) $(LibDirs) $(LibList) $(ObjectFiles) -o $@ |
410 |
|
411 |
$(ParallelExecutable) : $(ParallelObjectFiles) |
412 |
$(Print) $@ |
413 |
$(Linker) $(LinkOptions) $(LibDirs) $(LibList) $(ParallelObjectFiles) -o $@ |
414 |
|
415 |
# Anything else is just copied from source to target |
416 |
$(PackageTargetDir)/% : $(PackageSourceDir)/% |
417 |
$(Print) $@ |
418 |
$(Copy) $< $@ |
419 |
|
420 |
# make (or make build) |
421 |
build : $(PackageListLoop) |
422 |
$(Print) Done build. |
423 |
|
424 |
_all : _buildall |
425 |
|
426 |
_buildall : \ |
427 |
$(DependencyFile) \ |
428 |
$(PackageTargetDir) \ |
429 |
$(ObjectFiles) \ |
430 |
$(JavaClassFiles) \ |
431 |
$(RmiStubFiles) \ |
432 |
$(RmiSkeletonFiles) \ |
433 |
$(OtherTargetFiles) \ |
434 |
$(SharedLibrary) \ |
435 |
$(StaticLibrary) \ |
436 |
$(JarFile) \ |
437 |
$(Executable) |
438 |
|
439 |
|
440 |
# make clean |
441 |
clean : $(PackageListLoop) |
442 |
$(Print) Done clean. |
443 |
|
444 |
_cleanall : |
445 |
$(Delete) $(PackageTargetDir)/* \ |
446 |
$(JarFile) \ |
447 |
$(SharedLibrary) \ |
448 |
$(StaticLibrary) \ |
449 |
$(Executable) \ |
450 |
$(DependencyFile) |
451 |
|
452 |
|
453 |
# make depend |
454 |
depend : $(PackageListLoop) |
455 |
$(Print) Done dependencies. |
456 |
|
457 |
_dependall : $(DependencyFile) |
458 |
|
459 |
$(DependencyFile) : $(DerivedSource) |
460 |
$(Print) $@ |
461 |
@cd $(PackageSourceDir) |
462 |
touch Make.temp |
463 |
ifdef $(CppFiles) |
464 |
$(CppCompiler) $(IncludePath) -MM $(CppFiles) > Make.temp |
465 |
endif |
466 |
ifdef $(CFiles) |
467 |
$(CCompiler) $(IncludePath) -MM $(CFiles) $(DerivedCFiles) >> Make.temp |
468 |
endif |
469 |
cat Make.temp | sed 's/^[a-zA-Z0-9]/$$\(DEV_ROOT\)\/obj\/&/g' >> $(DependencyFile) |
470 |
cat Make.temp | sed 's/^[a-zA-Z0-9]/$$\(DEV_ROOT\)\/MPIobj\/&/g' >> $(DependencyFile) |
471 |
echo $(F90Files) |
472 |
ifdef $(F90Files) |
473 |
$(DEV_ROOT)/scripts/sfmakedepend -I $(DEV_ROOT)/src -d '$$(DEV_ROOT)/obj' -f ./Make.ftemp -h *.F90 |
474 |
cat Make.ftemp >> $(DependencyFile) |
475 |
endif |
476 |
$(Delete) Make.temp Make.ftemp |
477 |
|
478 |
# make lib |
479 |
lib : $(PackageListLoop) |
480 |
$(Print) Libraries built. |
481 |
|
482 |
_liball : $(JarFile) $(SharedLibrary) $(StaticLibrary) |
483 |
|
484 |
jar : $(JarFile) |
485 |
|
486 |
jarsign : $(JarFile) |
487 |
$(JarSigner) -keystore GeoSoftKeystore $(JarFile) myself |
488 |
|
489 |
# make statistics |
490 |
_statisticsall : |
491 |
@$(Print) $(SourceFiles) >> $(DEV_ROOT)/files.tmp |
492 |
|
493 |
statistics : $(PackageListLoop) |
494 |
@$(List) $(DEV_ROOT)/files.tmp | xargs $(WordCount) $(WordCountOptions) |
495 |
@$(Delete) $(DEV_ROOT)/files.tmp |
496 |
$(Print) Done statistics. |
497 |
|
498 |
# make pure |
499 |
$(Executable).pure : |
500 |
$(Purify) $(PurifyOptions) $(CppCompiler) $(LinkOptions) $(LibDirs) \ |
501 |
$(LibList) $(ObjectFiles) -o $@ |
502 |
|
503 |
pure : $(Executable).pure |
504 |
|
505 |
# Execute |
506 |
_runexe : |
507 |
$(Executable) $(RunParameters) |
508 |
|
509 |
_runjava : |
510 |
$(JavaExecute) $(JavaRunOptions) $(JavaMainClass) $(RunParameters) |
511 |
|
512 |
run : _runjava |
513 |
|
514 |
|
515 |
ifdef $(DependencyFile) |
516 |
-include $(DependencyFile) |
517 |
endif |