1 | |
---|
2 | # ------------------------------------------------------------------------ |
---|
3 | # Makefile for Rappture |
---|
4 | # ------------------------------------------------------------------------ |
---|
5 | |
---|
6 | # ------------------------------------------------------------------------ |
---|
7 | # C Compiler options |
---|
8 | # ------------------------------------------------------------------------ |
---|
9 | |
---|
10 | RAPPTURE_MAJOR_VERSION = @RAPPTURE_MAJOR_VERSION@ |
---|
11 | RAPPTURE_MINOR_VERSION = @RAPPTURE_MINOR_VERSION@ |
---|
12 | RAPPTURE_RELEASE_SERIAL = @RAPPTURE_RELEASE_SERIAL@ |
---|
13 | X_INCLUDES = @X_INCLUDES@ |
---|
14 | X_LIBRARIES = @X_LIBRARIES@ |
---|
15 | WORDSIZE = @WORDSIZE@ |
---|
16 | version = $(RAPPTURE_MAJOR_VERSION).$(RAPPTURE_MINOR_VERSION).$(RAPPTURE_RELEASE_SERIAL) |
---|
17 | runtime = $(shell cd ../rappture/runtime; pwd) |
---|
18 | TAG = branches/1.5 |
---|
19 | |
---|
20 | # ------------------------------------------------------------------------ |
---|
21 | # Source and targer installation directories |
---|
22 | # ------------------------------------------------------------------------ |
---|
23 | |
---|
24 | bindir = $(exec_prefix)/bin |
---|
25 | datadir = @datadir@ |
---|
26 | datarootdir = @datarootdir@ |
---|
27 | exec_prefix = @exec_prefix@ |
---|
28 | incdir = $(prefix)/include |
---|
29 | includedir = @includedir@ |
---|
30 | libdir = @libdir@ |
---|
31 | prefix = @prefix@ |
---|
32 | scriptdir = $(exec_prefix)/scripts |
---|
33 | pkgdir = $(exec_prefix)/lib |
---|
34 | srcdir = $(shell cd @srcdir@; pwd) |
---|
35 | statsdir = @STATSDIR@ |
---|
36 | |
---|
37 | # ------------------------------------------------------------------------ |
---|
38 | # You don't need to edit anything beyond this point |
---|
39 | # ------------------------------------------------------------------------ |
---|
40 | |
---|
41 | INSTALL = @INSTALL@ |
---|
42 | INSTALL_DATA = @INSTALL_DATA@ |
---|
43 | DESTDIR = |
---|
44 | RANLIB = @RANLIB@ |
---|
45 | MAKE = make |
---|
46 | SHELL = /bin/sh |
---|
47 | AR = ar rc |
---|
48 | RM = rm -f |
---|
49 | LN_S = @LN_S@ |
---|
50 | VPATH = $(srcdir) |
---|
51 | MKDIR_P = @MKDIR_P@ |
---|
52 | CP = /bin/cp |
---|
53 | |
---|
54 | WITH_R = @WITH_R@ |
---|
55 | WITH_JAVA = @WITH_JAVA@ |
---|
56 | WITH_MATLAB = @WITH_MATLAB@ |
---|
57 | WITH_MKOCTFILE2 = @WITH_MKOCTFILE2@ |
---|
58 | WITH_MKOCTFILE3 = @WITH_MKOCTFILE3@ |
---|
59 | WITH_OCTAVE = @WITH_OCTAVE@ |
---|
60 | WITH_PERL = @WITH_PERL@ |
---|
61 | WITH_PYTHON = @WITH_PYTHON@ |
---|
62 | WITH_RUBY = @WITH_RUBY@ |
---|
63 | WITH_RUBY_SITELIBDIR = @WITH_RUBY_SITELIBDIR@ |
---|
64 | WITH_TCL = @WITH_TCL@ |
---|
65 | WITH_VTK = @WITH_VTK@ |
---|
66 | |
---|
67 | common_flags = --prefix=$(prefix) --exec_prefix=$(exec_prefix) |
---|
68 | x_flags = |
---|
69 | ifneq ("$(X_INCLUDES)", ) |
---|
70 | x_flags += --x-includes=$(X_INCLUDES) |
---|
71 | endif |
---|
72 | ifneq ("$(X_LIBRARIES)", ) |
---|
73 | x_flags += --x-includes=$(X_LIBRARIES) |
---|
74 | endif |
---|
75 | |
---|
76 | PATH := $(bindir):$(PATH) |
---|
77 | |
---|
78 | targets = \ |
---|
79 | apps blt cmake examples expat expect gui htmlwidget itcl \ |
---|
80 | itk lang libs optimizer shape sqlitetcl tcl tcllib \ |
---|
81 | tdom tk tkimg tls video vtk zlib packages \ |
---|
82 | |
---|
83 | .PHONY: $(targets) |
---|
84 | |
---|
85 | .NOTPARALLEL: |
---|
86 | |
---|
87 | all: gui lang apps allpackages |
---|
88 | |
---|
89 | allpackages: packages video optimizer |
---|
90 | |
---|
91 | update: |
---|
92 | for i in $(srcdir)/runtime/*; do \ |
---|
93 | (cd $$i; svn update; svn status) \ |
---|
94 | done |
---|
95 | |
---|
96 | # Aliases for package directory names. |
---|
97 | |
---|
98 | # 1.4 runtime |
---|
99 | blt = blt2.4z |
---|
100 | cmake = cmake-2.8.12.2 |
---|
101 | examples = examples |
---|
102 | expat = expat-2.1.0 |
---|
103 | expect = expect5.45 |
---|
104 | # Doesn't exist in 1.4 runtime |
---|
105 | freetype = freetype-2.5.3 |
---|
106 | gui = gui |
---|
107 | htmlwidget = htmlwidget-3a14 |
---|
108 | itcl = itcl3.3 |
---|
109 | itk = itk3.3 |
---|
110 | # Doesn't exist in 1.4 runtime |
---|
111 | jpeg = jpeg-8d |
---|
112 | # Doesn't exist in 1.4 runtime |
---|
113 | libpng = libpng-1.6.15 |
---|
114 | libs = libs |
---|
115 | # Doesn't exist in 1.4 runtime |
---|
116 | openssl = openssl-1.0.1j |
---|
117 | optimizer = optimizer |
---|
118 | shape = shape0.4 |
---|
119 | sqlitetcl = sqlite-3071502 |
---|
120 | tcl = tcl8.4.19 |
---|
121 | tcllib = tcllib-1.12 |
---|
122 | tdom = tDOM-0.8.2 |
---|
123 | # Doesn't exist in 1.4 runtime |
---|
124 | tiff = tiff-4.0.3 |
---|
125 | tk = tk8.4.19 |
---|
126 | tkimg = tkimg1.3 |
---|
127 | tls = tls1.6 |
---|
128 | vtk = vtk-6.0.0 |
---|
129 | zlib = zlib |
---|
130 | lang = lang |
---|
131 | video = video |
---|
132 | packages = pkgs |
---|
133 | apps = apps |
---|
134 | |
---|
135 | subdirs = \ |
---|
136 | $(blt) $(cmake) $(expat) $(expect) \ |
---|
137 | $(gui) $(htmlwidget) $(itcl) $(itk) $(lang) $(libs) \ |
---|
138 | $(optimizer) $(shape) \ |
---|
139 | $(sqlitetcl) $(tcl) $(tcllib) $(tdom) $(tk) $(tkimg) \ |
---|
140 | $(tls) $(vtk) $(zlib) $(apps) |
---|
141 | |
---|
142 | ifneq ("$(WITH_VTK)", "no") |
---|
143 | vtk_timestamp = $(vtk)/timestamp |
---|
144 | endif |
---|
145 | |
---|
146 | clean: |
---|
147 | $(clean_apps) |
---|
148 | $(clean_blt) |
---|
149 | $(clean_cmake) |
---|
150 | $(clean_expat) |
---|
151 | $(clean_expect) |
---|
152 | $(clean_gui) |
---|
153 | $(clean_htmlwidget) |
---|
154 | $(clean_itcl) |
---|
155 | $(clean_itk) |
---|
156 | $(clean_lang) |
---|
157 | $(clean_libs) |
---|
158 | $(clean_optimizer) |
---|
159 | $(clean_shape) |
---|
160 | $(clean_sqlitetcl) |
---|
161 | $(clean_tcl) |
---|
162 | $(clean_tcllib) |
---|
163 | $(clean_tdom) |
---|
164 | $(clean_tk) |
---|
165 | $(clean_tkimg) |
---|
166 | $(clean_tls) |
---|
167 | $(clean_vtk) |
---|
168 | $(clean_zlib) |
---|
169 | |
---|
170 | # ------------------------------------------------------------------------- |
---|
171 | # APPS |
---|
172 | # ------------------------------------------------------------------------- |
---|
173 | |
---|
174 | apps_flags = \ |
---|
175 | --enable-shared \ |
---|
176 | $(common_flags) |
---|
177 | |
---|
178 | apps: $(apps)/timestamp |
---|
179 | |
---|
180 | clean-apps: |
---|
181 | $(clean_apps) |
---|
182 | fetch-apps: |
---|
183 | $(fetch_apps) |
---|
184 | configure-apps: |
---|
185 | $(configure_apps) |
---|
186 | build-apps: |
---|
187 | $(build_apps) |
---|
188 | install-apps: |
---|
189 | $(install_apps) |
---|
190 | touch-apps: |
---|
191 | $(touch_apps) |
---|
192 | force-apps: $(gui)/timestamp |
---|
193 | + $(clean_apps) |
---|
194 | + $(fetch_apps) |
---|
195 | + $(configure_apps) |
---|
196 | + $(build_apps) |
---|
197 | + $(install_apps) |
---|
198 | + $(touch_apps) |
---|
199 | |
---|
200 | define clean_apps |
---|
201 | $(MAKE) -C $(apps) clean |
---|
202 | endef |
---|
203 | define fetch_apps |
---|
204 | endef |
---|
205 | define configure_apps |
---|
206 | endef |
---|
207 | define build_apps |
---|
208 | $(MAKE) -C $(apps) all |
---|
209 | endef |
---|
210 | define install_apps |
---|
211 | $(MAKE) -C $(apps) install |
---|
212 | endef |
---|
213 | define touch_apps |
---|
214 | touch $(apps)/timestamp |
---|
215 | endef |
---|
216 | |
---|
217 | $(apps)/timestamp: $(gui)/timestamp |
---|
218 | + $(clean_apps) |
---|
219 | + $(fetch_apps) |
---|
220 | + $(configure_apps) |
---|
221 | + $(build_apps) |
---|
222 | + $(install_apps) |
---|
223 | + $(touch_apps) |
---|
224 | |
---|
225 | |
---|
226 | # ------------------------------------------------------------------------- |
---|
227 | # BLT |
---|
228 | # ------------------------------------------------------------------------- |
---|
229 | |
---|
230 | blt_flags = \ |
---|
231 | --enable-shared \ |
---|
232 | $(common_flags) |
---|
233 | |
---|
234 | blt: $(blt)/timestamp |
---|
235 | |
---|
236 | clean-blt: |
---|
237 | $(clean_blt) |
---|
238 | fetch-blt: |
---|
239 | $(fetch_blt) |
---|
240 | configure-blt: |
---|
241 | $(configure_blt) |
---|
242 | build-blt: |
---|
243 | $(build_blt) |
---|
244 | install-blt: |
---|
245 | $(install_blt) |
---|
246 | touch-blt: |
---|
247 | $(touch_blt) |
---|
248 | force-blt: $(tcl)/timestamp $(tk)/timestamp |
---|
249 | + $(clean_blt) |
---|
250 | + $(fetch_blt) |
---|
251 | + $(configure_blt) |
---|
252 | + $(build_blt) |
---|
253 | + $(install_blt) |
---|
254 | + $(touch_blt) |
---|
255 | |
---|
256 | define clean_blt |
---|
257 | $(RM) -r $(blt) |
---|
258 | endef |
---|
259 | define fetch_blt |
---|
260 | sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(blt) |
---|
261 | endef |
---|
262 | define configure_blt |
---|
263 | $(MKDIR_P) $(blt) |
---|
264 | cd $(blt); $(runtime)/$(blt)/configure $(blt_flags) |
---|
265 | endef |
---|
266 | define build_blt |
---|
267 | $(MAKE) -C $(blt) all |
---|
268 | endef |
---|
269 | define install_blt |
---|
270 | $(MAKE) -C $(blt) install |
---|
271 | endef |
---|
272 | define touch_blt |
---|
273 | touch $(blt)/timestamp |
---|
274 | endef |
---|
275 | |
---|
276 | $(blt)/timestamp: $(tcl)/timestamp $(tk)/timestamp |
---|
277 | + $(clean_blt) |
---|
278 | + $(fetch_blt) |
---|
279 | + $(configure_blt) |
---|
280 | + $(build_blt) |
---|
281 | + $(install_blt) |
---|
282 | + $(touch_blt) |
---|
283 | |
---|
284 | # ------------------------------------------------------------------------- |
---|
285 | # CMAKE |
---|
286 | # ------------------------------------------------------------------------- |
---|
287 | |
---|
288 | cmake_flags = \ |
---|
289 | --prefix=$(prefix) |
---|
290 | |
---|
291 | cmake: $(cmake)/timestamp |
---|
292 | |
---|
293 | clean-cmake: |
---|
294 | $(clean_cmake) |
---|
295 | fetch-cmake: |
---|
296 | $(fetch_cmake) |
---|
297 | configure-cmake: |
---|
298 | $(configure_cmake) |
---|
299 | build-cmake: |
---|
300 | $(build_cmake) |
---|
301 | install-cmake: |
---|
302 | $(install_cmake) |
---|
303 | touch-cmake: |
---|
304 | $(touch_cmake) |
---|
305 | force-cmake: |
---|
306 | + $(clean_cmake) |
---|
307 | + $(fetch_cmake) |
---|
308 | + $(configure_cmake) |
---|
309 | + $(build_cmake) |
---|
310 | + $(install_cmake) |
---|
311 | + $(touch_cmake) |
---|
312 | |
---|
313 | define clean_cmake |
---|
314 | $(RM) -r $(cmake) |
---|
315 | endef |
---|
316 | define fetch_cmake |
---|
317 | sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(cmake) |
---|
318 | endef |
---|
319 | define configure_cmake |
---|
320 | $(MKDIR_P) $(cmake) |
---|
321 | cd $(cmake); $(runtime)/$(cmake)/configure $(cmake_flags) |
---|
322 | endef |
---|
323 | define build_cmake |
---|
324 | $(MAKE) -C $(cmake) all |
---|
325 | endef |
---|
326 | define install_cmake |
---|
327 | $(MAKE) -C $(cmake) install |
---|
328 | endef |
---|
329 | define touch_cmake |
---|
330 | touch $(cmake)/timestamp |
---|
331 | endef |
---|
332 | |
---|
333 | $(cmake)/timestamp: |
---|
334 | + $(clean_cmake) |
---|
335 | + $(fetch_cmake) |
---|
336 | + $(configure_cmake) |
---|
337 | + $(build_cmake) |
---|
338 | + $(install_cmake) |
---|
339 | + $(touch_cmake) |
---|
340 | |
---|
341 | # ------------------------------------------------------------------------- |
---|
342 | # EXAMPLES |
---|
343 | # ------------------------------------------------------------------------- |
---|
344 | |
---|
345 | examples_flags = \ |
---|
346 | --with-tclsh="$(bindir)/tclsh" \ |
---|
347 | --enable-shared \ |
---|
348 | $(common_flags) |
---|
349 | |
---|
350 | examples: $(examples)/timestamp |
---|
351 | |
---|
352 | clean-examples: |
---|
353 | $(clean_examples) |
---|
354 | fetch-examples: |
---|
355 | $(fetch_examples) |
---|
356 | configure-examples: |
---|
357 | $(configure_examples) |
---|
358 | build-examples: |
---|
359 | $(build_examples) |
---|
360 | install-examples: |
---|
361 | $(install_examples) |
---|
362 | touch-examples: |
---|
363 | $(touch_examples) |
---|
364 | force-examples: $(gui)/timestamp |
---|
365 | + $(clean_examples) |
---|
366 | + $(fetch_examples) |
---|
367 | + $(configure_examples) |
---|
368 | + $(build_examples) |
---|
369 | + $(install_examples) |
---|
370 | + $(touch_examples) |
---|
371 | |
---|
372 | define clean_examples |
---|
373 | $(MAKE) -C $(examples) clean |
---|
374 | endef |
---|
375 | define fetch_examples |
---|
376 | endef |
---|
377 | define configure_examples |
---|
378 | $(MKDIR_P) $(examples) |
---|
379 | endef |
---|
380 | define build_examples |
---|
381 | $(MAKE) -C $(examples) all |
---|
382 | endef |
---|
383 | define install_examples |
---|
384 | $(MAKE) -C $(examples) install |
---|
385 | endef |
---|
386 | define touch_examples |
---|
387 | touch $(examples)/timestamp |
---|
388 | endef |
---|
389 | |
---|
390 | $(examples)/timestamp: $(gui)/timestamp |
---|
391 | + $(clean_examples) |
---|
392 | + $(fetch_examples) |
---|
393 | + $(configure_examples) |
---|
394 | + $(build_examples) |
---|
395 | + $(install_examples) |
---|
396 | + $(touch_examples) |
---|
397 | |
---|
398 | # ------------------------------------------------------------------------- |
---|
399 | # EXPAT |
---|
400 | # ------------------------------------------------------------------------- |
---|
401 | |
---|
402 | expat_flags = \ |
---|
403 | --enable-shared \ |
---|
404 | $(common_flags) |
---|
405 | |
---|
406 | expat: $(expat)/timestamp |
---|
407 | |
---|
408 | clean-expat: |
---|
409 | $(clean_expat) |
---|
410 | fetch-expat: |
---|
411 | $(fetch_expat) |
---|
412 | configure-expat: |
---|
413 | $(configure_expat) |
---|
414 | build-expat: |
---|
415 | $(build_expat) |
---|
416 | install-expat: |
---|
417 | $(install_expat) |
---|
418 | touch-expat: |
---|
419 | $(touch_expat) |
---|
420 | force-expat: |
---|
421 | + $(clean_expat) |
---|
422 | + $(fetch_expat) |
---|
423 | + $(configure_expat) |
---|
424 | + $(build_expat) |
---|
425 | + $(install_expat) |
---|
426 | + $(touch_expat) |
---|
427 | |
---|
428 | define clean_expat |
---|
429 | $(RM) -r $(expat) |
---|
430 | endef |
---|
431 | define fetch_expat |
---|
432 | sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(expat) |
---|
433 | endef |
---|
434 | define configure_expat |
---|
435 | $(MKDIR_P) $(expat) |
---|
436 | cd $(expat); $(runtime)/$(expat)/configure $(expat_flags) |
---|
437 | endef |
---|
438 | define build_expat |
---|
439 | $(MAKE) -C $(expat) all |
---|
440 | endef |
---|
441 | define install_expat |
---|
442 | $(MAKE) -C $(expat) install |
---|
443 | endef |
---|
444 | define touch_expat |
---|
445 | touch $(expat)/timestamp |
---|
446 | endef |
---|
447 | |
---|
448 | $(expat)/timestamp: |
---|
449 | + $(clean_expat) |
---|
450 | + $(fetch_expat) |
---|
451 | + $(configure_expat) |
---|
452 | + $(build_expat) |
---|
453 | + $(install_expat) |
---|
454 | + $(touch_expat) |
---|
455 | |
---|
456 | # ------------------------------------------------------------------------- |
---|
457 | # EXPECT |
---|
458 | # ------------------------------------------------------------------------- |
---|
459 | |
---|
460 | expect_flags = \ |
---|
461 | --enable-shared \ |
---|
462 | --enable-64bit \ |
---|
463 | --with-tcl=$(libdir) \ |
---|
464 | --with-tclinclude=$(incdir) \ |
---|
465 | $(common_flags) |
---|
466 | |
---|
467 | expect: $(expect)/timestamp |
---|
468 | |
---|
469 | clean-expect: |
---|
470 | $(clean_expect) |
---|
471 | fetch-expect: |
---|
472 | $(fetch_expect) |
---|
473 | configure-expect: |
---|
474 | $(configure_expect) |
---|
475 | build-expect: |
---|
476 | $(build_expect) |
---|
477 | install-expect: |
---|
478 | $(install_expect) |
---|
479 | touch-expect: |
---|
480 | $(touch_expect) |
---|
481 | force-expect: $(tcl)/timestamp $(tk)/timestamp |
---|
482 | + $(clean_expect) |
---|
483 | + $(fetch_expect) |
---|
484 | + $(configure_expect) |
---|
485 | + $(build_expect) |
---|
486 | + $(install_expect) |
---|
487 | + $(touch_expect) |
---|
488 | |
---|
489 | define clean_expect |
---|
490 | $(RM) -r $(expect) |
---|
491 | endef |
---|
492 | define fetch_expect |
---|
493 | sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(expect) |
---|
494 | endef |
---|
495 | define configure_expect |
---|
496 | $(MKDIR_P) $(expect) |
---|
497 | cd $(expect); $(runtime)/$(expect)/configure $(expect_flags) |
---|
498 | endef |
---|
499 | define build_expect |
---|
500 | $(MAKE) -C $(expect) all |
---|
501 | endef |
---|
502 | define install_expect |
---|
503 | $(MAKE) -C $(expect) install |
---|
504 | endef |
---|
505 | define touch_expect |
---|
506 | touch $(expect)/timestamp |
---|
507 | endef |
---|
508 | |
---|
509 | $(expect)/timestamp: $(tcl)/timestamp $(tk)/timestamp |
---|
510 | + $(clean_expect) |
---|
511 | + $(fetch_expect) |
---|
512 | + $(configure_expect) |
---|
513 | + $(build_expect) |
---|
514 | + $(install_expect) |
---|
515 | + $(touch_expect) |
---|
516 | |
---|
517 | # ------------------------------------------------------------------------- |
---|
518 | # GUI |
---|
519 | # ------------------------------------------------------------------------- |
---|
520 | |
---|
521 | gui_flags = \ |
---|
522 | $(common_flags) |
---|
523 | |
---|
524 | gui: $(gui)/timestamp |
---|
525 | |
---|
526 | clean-gui: |
---|
527 | $(clean_gui) |
---|
528 | fetch-gui: |
---|
529 | $(fetch_gui) |
---|
530 | configure-gui: |
---|
531 | $(configure_gui) |
---|
532 | build-gui: |
---|
533 | $(build_gui) |
---|
534 | install-gui: |
---|
535 | $(install_gui) |
---|
536 | touch-gui: |
---|
537 | $(touch_gui) |
---|
538 | force-gui: $(libs)/timestamp \ |
---|
539 | $(blt)/timestamp \ |
---|
540 | $(itk)/timestamp \ |
---|
541 | $(htmlwidget)/timestamp \ |
---|
542 | $(shape)/timestamp \ |
---|
543 | $(sqlitetcl)/timestamp \ |
---|
544 | $(vtk_timestamp) |
---|
545 | + $(clean_gui) |
---|
546 | + $(fetch_gui) |
---|
547 | + $(configure_gui) |
---|
548 | + $(build_gui) |
---|
549 | + $(install_gui) |
---|
550 | + $(touch_gui) |
---|
551 | |
---|
552 | define clean_gui |
---|
553 | $(RM) -r $(gui) |
---|
554 | endef |
---|
555 | define fetch_gui |
---|
556 | endef |
---|
557 | define configure_gui |
---|
558 | $(MKDIR_P) $(gui) |
---|
559 | cd $(gui); $(srcdir)/$(gui)/configure $(gui_flags) |
---|
560 | endef |
---|
561 | define build_gui |
---|
562 | $(MAKE) -C $(gui) all |
---|
563 | endef |
---|
564 | define install_gui |
---|
565 | $(MAKE) -C $(gui) install |
---|
566 | endef |
---|
567 | define touch_gui |
---|
568 | touch $(gui)/timestamp |
---|
569 | endef |
---|
570 | |
---|
571 | $(gui)/timestamp: $(libs)/timestamp \ |
---|
572 | $(blt)/timestamp \ |
---|
573 | $(itk)/timestamp \ |
---|
574 | $(htmlwidget)/timestamp \ |
---|
575 | $(shape)/timestamp \ |
---|
576 | $(tdom)/timestamp \ |
---|
577 | $(tcllib)/timestamp \ |
---|
578 | $(tls)/timestamp \ |
---|
579 | $(tkimg)/timestamp \ |
---|
580 | $(sqlitetcl)/timestamp \ |
---|
581 | $(vtk_timestamp) |
---|
582 | + $(clean_gui) |
---|
583 | + $(fetch_gui) |
---|
584 | + $(configure_gui) |
---|
585 | + $(build_gui) |
---|
586 | + $(install_gui) |
---|
587 | + $(touch_gui) |
---|
588 | |
---|
589 | # ------------------------------------------------------------------------- |
---|
590 | # HTMLWIDGET |
---|
591 | # ------------------------------------------------------------------------- |
---|
592 | |
---|
593 | htmlwidget_flags = \ |
---|
594 | --enable-shared \ |
---|
595 | $(common_flags) |
---|
596 | |
---|
597 | htmlwidget: $(htmlwidget)/timestamp |
---|
598 | |
---|
599 | clean-htmlwidget: |
---|
600 | $(clean_htmlwidget) |
---|
601 | fetch-htmlwidget: |
---|
602 | $(fetch_htmlwidget) |
---|
603 | configure-htmlwidget: |
---|
604 | $(configure_htmlwidget) |
---|
605 | build-htmlwidget: |
---|
606 | $(build_htmlwidget) |
---|
607 | install-htmlwidget: |
---|
608 | $(install_htmlwidget) |
---|
609 | touch-htmlwidget: |
---|
610 | $(touch_htmlwidget) |
---|
611 | force-htmlwidget: $(tk)/timestamp |
---|
612 | + $(clean_htmlwidget) |
---|
613 | + $(fetch_htmlwidget) |
---|
614 | + $(configure_htmlwidget) |
---|
615 | + $(build_htmlwidget) |
---|
616 | + $(install_htmlwidget) |
---|
617 | + $(touch_htmlwidget) |
---|
618 | |
---|
619 | define clean_htmlwidget |
---|
620 | $(RM) -r $(htmlwidget) |
---|
621 | endef |
---|
622 | define fetch_htmlwidget |
---|
623 | sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(htmlwidget) |
---|
624 | endef |
---|
625 | define configure_htmlwidget |
---|
626 | $(MKDIR_P) $(htmlwidget) |
---|
627 | cd $(htmlwidget); $(runtime)/$(htmlwidget)/configure $(htmlwidget_flags) |
---|
628 | endef |
---|
629 | define build_htmlwidget |
---|
630 | $(MAKE) -C $(htmlwidget) all |
---|
631 | endef |
---|
632 | define install_htmlwidget |
---|
633 | $(MAKE) -C $(htmlwidget) install |
---|
634 | endef |
---|
635 | define touch_htmlwidget |
---|
636 | touch $(htmlwidget)/timestamp |
---|
637 | endef |
---|
638 | |
---|
639 | $(htmlwidget)/timestamp: $(tk)/timestamp |
---|
640 | + $(clean_htmlwidget) |
---|
641 | + $(fetch_htmlwidget) |
---|
642 | + $(configure_htmlwidget) |
---|
643 | + $(build_htmlwidget) |
---|
644 | + $(install_htmlwidget) |
---|
645 | + $(touch_htmlwidget) |
---|
646 | |
---|
647 | # ------------------------------------------------------------------------- |
---|
648 | # ITCL |
---|
649 | # ------------------------------------------------------------------------- |
---|
650 | |
---|
651 | itcl_flags = \ |
---|
652 | --enable-shared \ |
---|
653 | $(common_flags) |
---|
654 | |
---|
655 | itcl: $(itcl)/timestamp |
---|
656 | |
---|
657 | clean-itcl: |
---|
658 | $(clean_itcl) |
---|
659 | fetch-itcl: |
---|
660 | $(fetch_itcl) |
---|
661 | configure-itcl: |
---|
662 | $(configure_itcl) |
---|
663 | build-itcl: |
---|
664 | $(build_itcl) |
---|
665 | install-itcl: |
---|
666 | $(install_itcl) |
---|
667 | touch-itcl: |
---|
668 | $(touch_itcl) |
---|
669 | force-itcl: |
---|
670 | + $(clean_itcl) |
---|
671 | + $(fetch_itcl) |
---|
672 | + $(configure_itcl) |
---|
673 | + $(build_itcl) |
---|
674 | + $(install_itcl) |
---|
675 | + $(touch_itcl) |
---|
676 | |
---|
677 | define clean_itcl |
---|
678 | $(RM) -r $(itcl) |
---|
679 | endef |
---|
680 | define fetch_itcl |
---|
681 | sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(itcl) |
---|
682 | endef |
---|
683 | define configure_itcl |
---|
684 | $(MKDIR_P) $(itcl) |
---|
685 | cd $(itcl); $(runtime)/$(itcl)/configure $(itcl_flags) |
---|
686 | endef |
---|
687 | define build_itcl |
---|
688 | $(MAKE) -C $(itcl) all |
---|
689 | endef |
---|
690 | define install_itcl |
---|
691 | $(MAKE) -C $(itcl) install |
---|
692 | endef |
---|
693 | define touch_itcl |
---|
694 | touch $(itcl)/timestamp |
---|
695 | endef |
---|
696 | |
---|
697 | $(itcl)/timestamp: $(tcl)/timestamp |
---|
698 | + $(clean_itcl) |
---|
699 | + $(fetch_itcl) |
---|
700 | + $(configure_itcl) |
---|
701 | + $(build_itcl) |
---|
702 | + $(install_itcl) |
---|
703 | + $(touch_itcl) |
---|
704 | |
---|
705 | # ------------------------------------------------------------------------- |
---|
706 | # ITK |
---|
707 | # ------------------------------------------------------------------------- |
---|
708 | |
---|
709 | itk_flags = \ |
---|
710 | --enable-shared \ |
---|
711 | $(common_flags) |
---|
712 | |
---|
713 | itk: $(itk)/timestamp |
---|
714 | |
---|
715 | clean-itk: |
---|
716 | $(clean_itk) |
---|
717 | fetch-itk: |
---|
718 | $(fetch_itk) |
---|
719 | configure-itk: |
---|
720 | $(configure_itk) |
---|
721 | build-itk: |
---|
722 | $(build_itk) |
---|
723 | install-itk: |
---|
724 | $(install_itk) |
---|
725 | touch-itk: |
---|
726 | $(touch_itk) |
---|
727 | force-itk: $(itcl)/timestamp $(tk)/timestamp |
---|
728 | + $(clean_itk) |
---|
729 | + $(fetch_itk) |
---|
730 | + $(configure_itk) |
---|
731 | + $(build_itk) |
---|
732 | + $(install_itk) |
---|
733 | + $(touch_itk) |
---|
734 | |
---|
735 | define clean_itk |
---|
736 | $(RM) -r $(itk) |
---|
737 | endef |
---|
738 | define fetch_itk |
---|
739 | sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(itk) |
---|
740 | endef |
---|
741 | define configure_itk |
---|
742 | $(MKDIR_P) $(itk) |
---|
743 | cd $(itk); $(runtime)/$(itk)/configure $(itk_flags) |
---|
744 | endef |
---|
745 | define build_itk |
---|
746 | $(MAKE) -C $(itk) all |
---|
747 | endef |
---|
748 | define install_itk |
---|
749 | $(MAKE) -C $(itk) install |
---|
750 | endef |
---|
751 | define touch_itk |
---|
752 | touch $(itk)/timestamp |
---|
753 | endef |
---|
754 | |
---|
755 | $(itk)/timestamp: $(itcl)/timestamp $(tk)/timestamp |
---|
756 | + $(clean_itk) |
---|
757 | + $(fetch_itk) |
---|
758 | + $(configure_itk) |
---|
759 | + $(build_itk) |
---|
760 | + $(install_itk) |
---|
761 | + $(touch_itk) |
---|
762 | |
---|
763 | # ------------------------------------------------------------------------- |
---|
764 | # LANG |
---|
765 | # ------------------------------------------------------------------------- |
---|
766 | |
---|
767 | lang_flags = \ |
---|
768 | --enable-shared \ |
---|
769 | $(common_flags) \ |
---|
770 | --with-R=${WITH_R} \ |
---|
771 | --with-java=${WITH_JAVA} \ |
---|
772 | --with-matlab=${WITH_MATLAB} \ |
---|
773 | --with-mkoctfile2=${WITH_MKOCTFILE2} \ |
---|
774 | --with-mkoctfile3=${WITH_MKOCTFILE3} \ |
---|
775 | --with-octave=${WITH_OCTAVE} \ |
---|
776 | --with-perl=${WITH_PERL} \ |
---|
777 | --with-python=${WITH_PYTHON} \ |
---|
778 | --with-ruby=${WITH_RUBY} \ |
---|
779 | --with-ruby_sitelibdir=${WITH_RUBY_SITELIBDIR} |
---|
780 | |
---|
781 | lang: $(lang)/timestamp |
---|
782 | |
---|
783 | clean-lang: |
---|
784 | $(clean_lang) |
---|
785 | fetch-lang: |
---|
786 | $(fetch_lang) |
---|
787 | configure-lang: |
---|
788 | $(configure_lang) |
---|
789 | build-lang: |
---|
790 | $(build_lang) |
---|
791 | install-lang: |
---|
792 | $(install_lang) |
---|
793 | touch-lang: |
---|
794 | $(touch_lang) |
---|
795 | force-lang: $(gui)/timestamp |
---|
796 | + $(clean_lang) |
---|
797 | + $(fetch_lang) |
---|
798 | + $(configure_lang) |
---|
799 | + $(build_lang) |
---|
800 | + $(install_lang) |
---|
801 | + $(touch_lang) |
---|
802 | |
---|
803 | define clean_lang |
---|
804 | $(RM) -r $(lang) |
---|
805 | endef |
---|
806 | define fetch_lang |
---|
807 | endef |
---|
808 | define configure_lang |
---|
809 | $(MKDIR_P) $(lang) |
---|
810 | cd $(lang); $(srcdir)/$(lang)/configure $(lang_flags) |
---|
811 | endef |
---|
812 | define build_lang |
---|
813 | $(MAKE) -C $(lang) all |
---|
814 | endef |
---|
815 | define install_lang |
---|
816 | $(MAKE) -C $(lang) install |
---|
817 | endef |
---|
818 | define touch_lang |
---|
819 | touch $(lang)/timestamp |
---|
820 | endef |
---|
821 | |
---|
822 | $(lang)/timestamp: $(libs)/timestamp $(tcl)/timestamp $(itcl)/timestamp |
---|
823 | + $(clean_lang) |
---|
824 | + $(fetch_lang) |
---|
825 | + $(configure_lang) |
---|
826 | + $(build_lang) |
---|
827 | + $(install_lang) |
---|
828 | + $(touch_lang) |
---|
829 | |
---|
830 | |
---|
831 | # ------------------------------------------------------------------------- |
---|
832 | # LIB |
---|
833 | # ------------------------------------------------------------------------- |
---|
834 | |
---|
835 | libs_flags = \ |
---|
836 | --enable-shared \ |
---|
837 | $(common_flags) |
---|
838 | |
---|
839 | libs: $(libs)/timestamp |
---|
840 | |
---|
841 | clean-libs: |
---|
842 | $(clean_libs) |
---|
843 | fetch-libs: |
---|
844 | $(fetch_libs) |
---|
845 | configure-libs: |
---|
846 | $(configure_libs) |
---|
847 | build-libs: |
---|
848 | $(build_libs) |
---|
849 | install-libs: |
---|
850 | $(install_libs) |
---|
851 | touch-libs: |
---|
852 | $(touch_libs) |
---|
853 | force-libs: |
---|
854 | + $(clean_libs) |
---|
855 | + $(fetch_libs) |
---|
856 | + $(configure_libs) |
---|
857 | + $(build_libs) |
---|
858 | + $(install_libs) |
---|
859 | + $(touch_libs) |
---|
860 | |
---|
861 | define clean_libs |
---|
862 | $(MAKE) -C $(libs) clean |
---|
863 | $(RM) $(libs)/timestamp |
---|
864 | endef |
---|
865 | define fetch_libs |
---|
866 | endef |
---|
867 | define configure_libs |
---|
868 | endef |
---|
869 | define build_libs |
---|
870 | $(MAKE) -C $(libs) all |
---|
871 | endef |
---|
872 | define install_libs |
---|
873 | $(MAKE) -C $(libs) install |
---|
874 | $(MKDIR_P) $(libdir) |
---|
875 | $(INSTALL) -m 0444 rapptureConfig.sh $(libdir) |
---|
876 | endef |
---|
877 | define touch_libs |
---|
878 | touch $(libs)/timestamp |
---|
879 | endef |
---|
880 | |
---|
881 | $(libs)/timestamp: |
---|
882 | + $(clean_libs) |
---|
883 | + $(fetch_libs) |
---|
884 | + $(configure_libs) |
---|
885 | + $(build_libs) |
---|
886 | + $(install_libs) |
---|
887 | + $(touch_libs) |
---|
888 | |
---|
889 | # ------------------------------------------------------------------------- |
---|
890 | # OPTIMIZER |
---|
891 | # ------------------------------------------------------------------------- |
---|
892 | |
---|
893 | optimizer_flags = \ |
---|
894 | --with-tclsh="$(bindir)/tclsh8.5" \ |
---|
895 | --enable-shared \ |
---|
896 | --disable-threads \ |
---|
897 | $(common_flags) |
---|
898 | |
---|
899 | optimizer: $(optimizer)/timestamp |
---|
900 | |
---|
901 | clean-optimizer: |
---|
902 | $(clean_optimizer) |
---|
903 | fetch-optimizer: |
---|
904 | $(fetch_optimizer) |
---|
905 | configure-optimizer: |
---|
906 | $(configure_optimizer) |
---|
907 | build-optimizer: |
---|
908 | $(build_optimizer) |
---|
909 | install-optimizer: |
---|
910 | $(install_optimizer) |
---|
911 | touch-optimizer: |
---|
912 | $(touch_optimizer) |
---|
913 | force-optimizer: $(gui)/timestamp |
---|
914 | + $(clean_optimizer) |
---|
915 | + $(fetch_optimizer) |
---|
916 | + $(configure_optimizer) |
---|
917 | + $(build_optimizer) |
---|
918 | + $(install_optimizer) |
---|
919 | + $(touch_optimizer) |
---|
920 | |
---|
921 | define clean_optimizer |
---|
922 | $(RM) -r $(optimizer) |
---|
923 | endef |
---|
924 | define fetch_optimizer |
---|
925 | endef |
---|
926 | define configure_optimizer |
---|
927 | $(MKDIR_P) $(optimizer) |
---|
928 | cd $(optimizer); $(srcdir)/pkgs/$(optimizer)/configure $(optimizer_flags) |
---|
929 | endef |
---|
930 | define build_optimizer |
---|
931 | $(MAKE) -C $(optimizer) all |
---|
932 | endef |
---|
933 | define install_optimizer |
---|
934 | $(MAKE) -C $(optimizer) install |
---|
935 | endef |
---|
936 | define touch_optimizer |
---|
937 | touch $(optimizer)/timestamp |
---|
938 | endef |
---|
939 | |
---|
940 | $(optimizer)/timestamp: $(gui)/timestamp |
---|
941 | + $(clean_optimizer) |
---|
942 | + $(fetch_optimizer) |
---|
943 | + $(configure_optimizer) |
---|
944 | + $(build_optimizer) |
---|
945 | + $(install_optimizer) |
---|
946 | + $(touch_optimizer) |
---|
947 | |
---|
948 | |
---|
949 | # ------------------------------------------------------------------------- |
---|
950 | # PACKAGES |
---|
951 | # ------------------------------------------------------------------------- |
---|
952 | |
---|
953 | packages_flags = \ |
---|
954 | $(common_flags) |
---|
955 | |
---|
956 | packages: $(packages)/timestamp |
---|
957 | |
---|
958 | clean-packages: |
---|
959 | $(clean_packages) |
---|
960 | fetch-packages: |
---|
961 | $(fetch_packages) |
---|
962 | configure-packages: |
---|
963 | $(configure_packages) |
---|
964 | build-packages: |
---|
965 | $(build_packages) |
---|
966 | install-packages: |
---|
967 | $(install_packages) |
---|
968 | touch-packages: |
---|
969 | $(touch_packages) |
---|
970 | force-packages: $(gui)/timestamp |
---|
971 | + $(clean_packages) |
---|
972 | + $(fetch_packages) |
---|
973 | + $(configure_packages) |
---|
974 | + $(build_packages) |
---|
975 | + $(install_packages) |
---|
976 | + $(touch_packages) |
---|
977 | |
---|
978 | define clean_packages |
---|
979 | $(RM) -r $(packages) |
---|
980 | endef |
---|
981 | define fetch_packages |
---|
982 | endef |
---|
983 | define configure_packages |
---|
984 | $(MKDIR_P) $(packages) |
---|
985 | cd $(packages); $(srcdir)/$(packages)/configure $(packages_flags) |
---|
986 | endef |
---|
987 | define build_packages |
---|
988 | $(MAKE) -C $(packages) all |
---|
989 | endef |
---|
990 | define install_packages |
---|
991 | $(MAKE) -C $(packages) install |
---|
992 | endef |
---|
993 | define touch_packages |
---|
994 | touch $(packages)/timestamp |
---|
995 | endef |
---|
996 | |
---|
997 | $(packages)/timestamp: $(gui)/timestamp |
---|
998 | + $(clean_packages) |
---|
999 | + $(fetch_packages) |
---|
1000 | + $(configure_packages) |
---|
1001 | + $(build_packages) |
---|
1002 | + $(install_packages) |
---|
1003 | + $(touch_packages) |
---|
1004 | |
---|
1005 | # ------------------------------------------------------------------------- |
---|
1006 | # SHAPE |
---|
1007 | # ------------------------------------------------------------------------- |
---|
1008 | |
---|
1009 | shape_flags = \ |
---|
1010 | --enable-shared \ |
---|
1011 | --with-tclconf=$(libdir) \ |
---|
1012 | --with-tkconf=$(libdir) \ |
---|
1013 | $(common_flags) |
---|
1014 | |
---|
1015 | shape: $(shape)/timestamp |
---|
1016 | |
---|
1017 | clean-shape: |
---|
1018 | $(clean_shape) |
---|
1019 | fetch-shape: |
---|
1020 | $(fetch_shape) |
---|
1021 | configure-shape: |
---|
1022 | $(configure_shape) |
---|
1023 | build-shape: |
---|
1024 | $(build_shape) |
---|
1025 | install-shape: |
---|
1026 | $(install_shape) |
---|
1027 | touch-shape: |
---|
1028 | $(touch_shape) |
---|
1029 | force-shape: $(tk)/timestamp |
---|
1030 | + $(clean_shape) |
---|
1031 | + $(fetch_shape) |
---|
1032 | + $(configure_shape) |
---|
1033 | + $(build_shape) |
---|
1034 | + $(install_shape) |
---|
1035 | + $(touch_shape) |
---|
1036 | |
---|
1037 | define clean_shape |
---|
1038 | $(RM) -r $(shape) |
---|
1039 | endef |
---|
1040 | define fetch_shape |
---|
1041 | sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(shape) |
---|
1042 | endef |
---|
1043 | define configure_shape |
---|
1044 | $(MKDIR_P) $(shape) |
---|
1045 | cd $(shape); $(runtime)/$(shape)/unix/configure $(shape_flags) |
---|
1046 | endef |
---|
1047 | define build_shape |
---|
1048 | $(MAKE) -C $(shape) all |
---|
1049 | endef |
---|
1050 | define install_shape |
---|
1051 | $(MAKE) -C $(shape) install |
---|
1052 | endef |
---|
1053 | define touch_shape |
---|
1054 | touch $(shape)/timestamp |
---|
1055 | endef |
---|
1056 | |
---|
1057 | $(shape)/timestamp: $(tk)/timestamp |
---|
1058 | + $(clean_shape) |
---|
1059 | + $(fetch_shape) |
---|
1060 | + $(configure_shape) |
---|
1061 | + $(build_shape) |
---|
1062 | + $(install_shape) |
---|
1063 | + $(touch_shape) |
---|
1064 | |
---|
1065 | # ------------------------------------------------------------------------- |
---|
1066 | # SQLITETCL |
---|
1067 | # ------------------------------------------------------------------------- |
---|
1068 | |
---|
1069 | sqlitetcl_flags = \ |
---|
1070 | --enable-shared \ |
---|
1071 | $(common_flags) |
---|
1072 | |
---|
1073 | sqlitetcl: $(sqlitetcl)/timestamp |
---|
1074 | |
---|
1075 | clean-sqlitetcl: |
---|
1076 | $(clean_sqlitetcl) |
---|
1077 | fetch-sqlitetcl: |
---|
1078 | $(fetch_sqlitetcl) |
---|
1079 | configure-sqlitetcl: |
---|
1080 | $(configure_sqlitetcl) |
---|
1081 | build-sqlitetcl: |
---|
1082 | $(build_sqlitetcl) |
---|
1083 | install-sqlitetcl: |
---|
1084 | $(install_sqlitetcl) |
---|
1085 | touch-sqlitetcl: |
---|
1086 | $(touch_sqlitetcl) |
---|
1087 | force-sqlitetcl: $(tcl)/timestamp |
---|
1088 | + $(clean_sqlitetcl) |
---|
1089 | + $(fetch_sqlitetcl) |
---|
1090 | + $(configure_sqlitetcl) |
---|
1091 | + $(build_sqlitetcl) |
---|
1092 | + $(install_sqlitetcl) |
---|
1093 | + $(touch_sqlitetcl) |
---|
1094 | |
---|
1095 | define clean_sqlitetcl |
---|
1096 | $(RM) -r $(sqlitetcl) |
---|
1097 | endef |
---|
1098 | define fetch_sqlitetcl |
---|
1099 | sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(sqlitetcl) |
---|
1100 | endef |
---|
1101 | define configure_sqlitetcl |
---|
1102 | $(MKDIR_P) $(sqlitetcl) |
---|
1103 | cd $(sqlitetcl); $(runtime)/$(sqlitetcl)/tea/configure $(sqlitetcl_flags) |
---|
1104 | endef |
---|
1105 | define build_sqlitetcl |
---|
1106 | $(MAKE) -C $(sqlitetcl) all |
---|
1107 | endef |
---|
1108 | define install_sqlitetcl |
---|
1109 | $(MAKE) -C $(sqlitetcl) install |
---|
1110 | endef |
---|
1111 | define touch_sqlitetcl |
---|
1112 | touch $(sqlitetcl)/timestamp |
---|
1113 | endef |
---|
1114 | |
---|
1115 | $(sqlitetcl)/timestamp: $(tcl)/timestamp |
---|
1116 | + $(clean_sqlitetcl) |
---|
1117 | + $(fetch_sqlitetcl) |
---|
1118 | + $(configure_sqlitetcl) |
---|
1119 | + $(build_sqlitetcl) |
---|
1120 | + $(install_sqlitetcl) |
---|
1121 | + $(touch_sqlitetcl) |
---|
1122 | |
---|
1123 | # ------------------------------------------------------------------------- |
---|
1124 | # TCL |
---|
1125 | # ------------------------------------------------------------------------- |
---|
1126 | |
---|
1127 | tcl_flags = \ |
---|
1128 | --enable-shared \ |
---|
1129 | --disable-threads \ |
---|
1130 | $(common_flags) |
---|
1131 | |
---|
1132 | tcl: $(tcl)/timestamp |
---|
1133 | |
---|
1134 | clean-tcl: |
---|
1135 | $(clean_tcl) |
---|
1136 | fetch-tcl: |
---|
1137 | $(fetch_tcl) |
---|
1138 | configure-tcl: |
---|
1139 | $(configure_tcl) |
---|
1140 | build-tcl: |
---|
1141 | $(build_tcl) |
---|
1142 | install-tcl: |
---|
1143 | $(install_tcl) |
---|
1144 | touch-tcl: |
---|
1145 | $(touch_tcl) |
---|
1146 | force-tcl: |
---|
1147 | + $(clean_tcl) |
---|
1148 | + $(fetch_tcl) |
---|
1149 | + $(configure_tcl) |
---|
1150 | + $(build_tcl) |
---|
1151 | + $(install_tcl) |
---|
1152 | + $(touch_tcl) |
---|
1153 | |
---|
1154 | define fetch_tcl |
---|
1155 | sh $(srcdir)/fetch.sh $(TAG) $(srcdir) $(tcl) |
---|
1156 | endef |
---|
1157 | define clean_tcl |
---|
1158 | $(RM) -r $(tcl) |
---|
1159 | endef |
---|
1160 | define fetch_tcl |
---|
1161 | sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(tcl) |
---|
1162 | endef |
---|
1163 | define configure_tcl |
---|
1164 | $(MKDIR_P) $(tcl) |
---|
1165 | cd $(tcl); $(srcdir)/runtime/$(tcl)/unix/configure $(tcl_flags) |
---|
1166 | endef |
---|
1167 | define build_tcl |
---|
1168 | $(MAKE) -C $(tcl) all |
---|
1169 | endef |
---|
1170 | define install_tcl |
---|
1171 | $(MAKE) -C $(tcl) install |
---|
1172 | $(RM) $(bindir)/tclsh |
---|
1173 | (. ${libdir}/tclConfig.sh ; cd $(bindir); $(LN_S) tclsh$${TCL_VERSION} tclsh) |
---|
1174 | endef |
---|
1175 | define touch_tcl |
---|
1176 | touch $(tcl)/timestamp |
---|
1177 | endef |
---|
1178 | |
---|
1179 | $(tcl)/timestamp: |
---|
1180 | + $(clean_tcl) |
---|
1181 | + $(fetch_tcl) |
---|
1182 | + $(configure_tcl) |
---|
1183 | + $(build_tcl) |
---|
1184 | + $(install_tcl) |
---|
1185 | + $(touch_tcl) |
---|
1186 | |
---|
1187 | # ------------------------------------------------------------------------- |
---|
1188 | # TCLLIB |
---|
1189 | # ------------------------------------------------------------------------- |
---|
1190 | |
---|
1191 | tcllib_flags = \ |
---|
1192 | --enable-shared \ |
---|
1193 | $(common_flags) |
---|
1194 | |
---|
1195 | tcllib: $(tcllib)/timestamp |
---|
1196 | |
---|
1197 | clean-tcllib: |
---|
1198 | $(clean_tcllib) |
---|
1199 | fetch-tcllib: |
---|
1200 | $(fetch_tcllib) |
---|
1201 | configure-tcllib: |
---|
1202 | $(configure_tcllib) |
---|
1203 | build-tcllib: |
---|
1204 | $(build_tcllib) |
---|
1205 | install-tcllib: |
---|
1206 | $(install_tcllib) |
---|
1207 | touch-tcllib: |
---|
1208 | $(touch_tcllib) |
---|
1209 | force-tcllib: $(tcl)/timestamp |
---|
1210 | + $(clean_tcllib) |
---|
1211 | + $(fetch_tcllib) |
---|
1212 | + $(configure_tcllib) |
---|
1213 | + $(build_tcllib) |
---|
1214 | + $(install_tcllib) |
---|
1215 | + $(touch_tcllib) |
---|
1216 | |
---|
1217 | define clean_tcllib |
---|
1218 | $(RM) -r $(tcllib) |
---|
1219 | endef |
---|
1220 | define fetch_tcllib |
---|
1221 | sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(tcllib) |
---|
1222 | endef |
---|
1223 | define configure_tcllib |
---|
1224 | $(MKDIR_P) $(tcllib) |
---|
1225 | cd $(tcllib); $(runtime)/$(tcllib)/configure $(tcllib_flags) |
---|
1226 | endef |
---|
1227 | define build_tcllib |
---|
1228 | $(MAKE) -C $(tcllib) all |
---|
1229 | endef |
---|
1230 | define install_tcllib |
---|
1231 | $(MAKE) -C $(tcllib) install |
---|
1232 | endef |
---|
1233 | define touch_tcllib |
---|
1234 | touch $(tcllib)/timestamp |
---|
1235 | endef |
---|
1236 | |
---|
1237 | $(tcllib)/timestamp: $(tcl)/timestamp |
---|
1238 | + $(clean_tcllib) |
---|
1239 | + $(fetch_tcllib) |
---|
1240 | + $(configure_tcllib) |
---|
1241 | + $(build_tcllib) |
---|
1242 | + $(install_tcllib) |
---|
1243 | + $(touch_tcllib) |
---|
1244 | |
---|
1245 | # ------------------------------------------------------------------------- |
---|
1246 | # TDOM |
---|
1247 | # ------------------------------------------------------------------------- |
---|
1248 | |
---|
1249 | tdom_flags = \ |
---|
1250 | --enable-shared \ |
---|
1251 | $(common_flags) |
---|
1252 | |
---|
1253 | tdom: $(tdom)/timestamp |
---|
1254 | |
---|
1255 | clean-tdom: |
---|
1256 | $(clean_tdom) |
---|
1257 | fetch-tdom: |
---|
1258 | $(fetch_tdom) |
---|
1259 | configure-tdom: |
---|
1260 | $(configure_tdom) |
---|
1261 | build-tdom: |
---|
1262 | $(build_tdom) |
---|
1263 | install-tdom: |
---|
1264 | $(install_tdom) |
---|
1265 | touch-tdom: |
---|
1266 | $(touch_tdom) |
---|
1267 | force-tdom: $(tcl)/timestamp |
---|
1268 | + $(clean_tdom) |
---|
1269 | + $(fetch_tdom) |
---|
1270 | + $(configure_tdom) |
---|
1271 | + $(build_tdom) |
---|
1272 | + $(install_tdom) |
---|
1273 | + $(touch_tdom) |
---|
1274 | |
---|
1275 | define clean_tdom |
---|
1276 | $(RM) -r $(tdom) |
---|
1277 | endef |
---|
1278 | define fetch_tdom |
---|
1279 | sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(tdom) |
---|
1280 | endef |
---|
1281 | define configure_tdom |
---|
1282 | $(MKDIR_P) $(tdom) |
---|
1283 | cd $(tdom); $(runtime)/$(tdom)/configure $(tdom_flags) |
---|
1284 | endef |
---|
1285 | define build_tdom |
---|
1286 | $(MAKE) -C $(tdom) all |
---|
1287 | endef |
---|
1288 | define install_tdom |
---|
1289 | $(MAKE) -C $(tdom) install |
---|
1290 | endef |
---|
1291 | define touch_tdom |
---|
1292 | touch $(tdom)/timestamp |
---|
1293 | endef |
---|
1294 | |
---|
1295 | $(tdom)/timestamp: $(tcl)/timestamp |
---|
1296 | + $(clean_tdom) |
---|
1297 | + $(fetch_tdom) |
---|
1298 | + $(configure_tdom) |
---|
1299 | + $(build_tdom) |
---|
1300 | + $(install_tdom) |
---|
1301 | + $(touch_tdom) |
---|
1302 | |
---|
1303 | # ------------------------------------------------------------------------- |
---|
1304 | # TK |
---|
1305 | # ------------------------------------------------------------------------- |
---|
1306 | |
---|
1307 | tk_flags = \ |
---|
1308 | --enable-shared \ |
---|
1309 | --disable-threads \ |
---|
1310 | $(common_flags) |
---|
1311 | |
---|
1312 | tk: $(tk)/timestamp |
---|
1313 | |
---|
1314 | clean-tk: |
---|
1315 | $(clean_tk) |
---|
1316 | fetch-tk: |
---|
1317 | $(fetch_tk) |
---|
1318 | configure-tk: |
---|
1319 | $(configure_tk) |
---|
1320 | build-tk: |
---|
1321 | $(build_tk) |
---|
1322 | install-tk: |
---|
1323 | $(install_tk) |
---|
1324 | touch-tk: |
---|
1325 | $(touch_tk) |
---|
1326 | force-tk: $(tcl)/timestamp |
---|
1327 | + $(clean_tk) |
---|
1328 | + $(fetch_tk) |
---|
1329 | + $(configure_tk) |
---|
1330 | + $(build_tk) |
---|
1331 | + $(install_tk) |
---|
1332 | + $(touch_tk) |
---|
1333 | |
---|
1334 | define clean_tk |
---|
1335 | $(RM) -r $(tk) |
---|
1336 | endef |
---|
1337 | define fetch_tk |
---|
1338 | sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(tk) |
---|
1339 | endef |
---|
1340 | define configure_tk |
---|
1341 | $(MKDIR_P) $(tk) |
---|
1342 | cd $(tk); $(runtime)/$(tk)/unix/configure $(tk_flags) |
---|
1343 | endef |
---|
1344 | define build_tk |
---|
1345 | $(MAKE) -C $(tk) all |
---|
1346 | endef |
---|
1347 | define install_tk |
---|
1348 | $(MAKE) -C $(tk) install |
---|
1349 | $(RM) $(bindir)/wish |
---|
1350 | (. $(libdir)/tkConfig.sh ; cd $(bindir); $(LN_S) wish$${TK_VERSION} wish) |
---|
1351 | endef |
---|
1352 | define touch_tk |
---|
1353 | touch $(tk)/timestamp |
---|
1354 | endef |
---|
1355 | |
---|
1356 | $(tk)/timestamp: $(tcl)/timestamp |
---|
1357 | + $(clean_tk) |
---|
1358 | + $(fetch_tk) |
---|
1359 | + $(configure_tk) |
---|
1360 | + $(build_tk) |
---|
1361 | + $(install_tk) |
---|
1362 | + $(touch_tk) |
---|
1363 | |
---|
1364 | # ------------------------------------------------------------------------- |
---|
1365 | # TKING |
---|
1366 | # ------------------------------------------------------------------------- |
---|
1367 | |
---|
1368 | tkimg_flags = \ |
---|
1369 | --enable-shared \ |
---|
1370 | $(common_flags) |
---|
1371 | |
---|
1372 | tkimg: $(tkimg)/timestamp |
---|
1373 | |
---|
1374 | clean-tkimg: |
---|
1375 | $(clean_tkimg) |
---|
1376 | fetch-tkimg: |
---|
1377 | $(fetch_tkimg) |
---|
1378 | configure-tkimg: |
---|
1379 | $(configure_tkimg) |
---|
1380 | build-tkimg: |
---|
1381 | $(build_tkimg) |
---|
1382 | install-tkimg: |
---|
1383 | $(install_tkimg) |
---|
1384 | touch-tkimg: |
---|
1385 | $(touch_tkimg) |
---|
1386 | force-tkimg: $(tk)/timestamp |
---|
1387 | + $(clean_tkimg) |
---|
1388 | + $(fetch_tkimg) |
---|
1389 | + $(configure_tkimg) |
---|
1390 | + $(build_tkimg) |
---|
1391 | + $(install_tkimg) |
---|
1392 | + $(touch_tkimg) |
---|
1393 | |
---|
1394 | define clean_tkimg |
---|
1395 | $(RM) -r $(tkimg) |
---|
1396 | endef |
---|
1397 | define fetch_tkimg |
---|
1398 | sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(tkimg) |
---|
1399 | endef |
---|
1400 | define configure_tkimg |
---|
1401 | $(MKDIR_P) $(tkimg) |
---|
1402 | cd $(tkimg); $(runtime)/$(tkimg)/configure $(tkimg_flags) |
---|
1403 | endef |
---|
1404 | define build_tkimg |
---|
1405 | $(MAKE) -C $(tkimg) all |
---|
1406 | endef |
---|
1407 | define install_tkimg |
---|
1408 | $(MAKE) -C $(tkimg) install |
---|
1409 | endef |
---|
1410 | define touch_tkimg |
---|
1411 | touch $(tkimg)/timestamp |
---|
1412 | endef |
---|
1413 | |
---|
1414 | $(tkimg)/timestamp: $(tk)/timestamp |
---|
1415 | + $(clean_tkimg) |
---|
1416 | + $(fetch_tkimg) |
---|
1417 | + $(configure_tkimg) |
---|
1418 | + $(build_tkimg) |
---|
1419 | + $(install_tkimg) |
---|
1420 | + $(touch_tkimg) |
---|
1421 | |
---|
1422 | # ------------------------------------------------------------------------- |
---|
1423 | # TLS |
---|
1424 | # ------------------------------------------------------------------------- |
---|
1425 | |
---|
1426 | tls_flags = \ |
---|
1427 | --enable-shared \ |
---|
1428 | $(common_flags) |
---|
1429 | |
---|
1430 | tls: $(tls)/timestamp |
---|
1431 | |
---|
1432 | clean-tls: |
---|
1433 | $(clean_tls) |
---|
1434 | fetch-tls: |
---|
1435 | $(fetch_tls) |
---|
1436 | configure-tls: |
---|
1437 | $(configure_tls) |
---|
1438 | build-tls: |
---|
1439 | $(build_tls) |
---|
1440 | install-tls: |
---|
1441 | $(install_tls) |
---|
1442 | touch-tls: |
---|
1443 | $(touch_tls) |
---|
1444 | force-tls: $(tcl)/timestamp |
---|
1445 | + $(clean_tls) |
---|
1446 | + $(fetch_tls) |
---|
1447 | + $(configure_tls) |
---|
1448 | + $(build_tls) |
---|
1449 | + $(install_tls) |
---|
1450 | + $(touch_tls) |
---|
1451 | |
---|
1452 | define clean_tls |
---|
1453 | $(RM) -r $(tls) |
---|
1454 | endef |
---|
1455 | define fetch_tls |
---|
1456 | sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(tls) |
---|
1457 | endef |
---|
1458 | define configure_tls |
---|
1459 | $(MKDIR_P) $(tls) |
---|
1460 | cd $(tls); $(runtime)/$(tls)/configure $(tls_flags) |
---|
1461 | endef |
---|
1462 | define build_tls |
---|
1463 | $(MAKE) -C $(tls) all |
---|
1464 | endef |
---|
1465 | define install_tls |
---|
1466 | $(MAKE) -C $(tls) install |
---|
1467 | endef |
---|
1468 | define touch_tls |
---|
1469 | touch $(tls)/timestamp |
---|
1470 | endef |
---|
1471 | |
---|
1472 | $(tls)/timestamp: $(tcl)/timestamp |
---|
1473 | + $(clean_tls) |
---|
1474 | + $(fetch_tls) |
---|
1475 | + $(configure_tls) |
---|
1476 | + $(build_tls) |
---|
1477 | + $(install_tls) |
---|
1478 | + $(touch_tls) |
---|
1479 | |
---|
1480 | # ------------------------------------------------------------------------- |
---|
1481 | # VIDEO |
---|
1482 | # ------------------------------------------------------------------------- |
---|
1483 | |
---|
1484 | video_flags = \ |
---|
1485 | --with-tclsh="$(bindir)/tclsh" \ |
---|
1486 | --enable-shared \ |
---|
1487 | $(common_flags) |
---|
1488 | |
---|
1489 | video: $(video)/timestamp |
---|
1490 | |
---|
1491 | clean-video: |
---|
1492 | $(clean_video) |
---|
1493 | fetch-video: |
---|
1494 | $(fetch_video) |
---|
1495 | configure-video: |
---|
1496 | $(configure_video) |
---|
1497 | build-video: |
---|
1498 | $(build_video) |
---|
1499 | install-video: |
---|
1500 | $(install_video) |
---|
1501 | touch-video: |
---|
1502 | $(touch_video) |
---|
1503 | force-video: #$(gui)/timestamp |
---|
1504 | + $(clean_video) |
---|
1505 | + $(fetch_video) |
---|
1506 | + $(configure_video) |
---|
1507 | + $(build_video) |
---|
1508 | + $(install_video) |
---|
1509 | + $(touch_video) |
---|
1510 | |
---|
1511 | define clean_video |
---|
1512 | $(RM) -r $(video) |
---|
1513 | endef |
---|
1514 | define fetch_video |
---|
1515 | endef |
---|
1516 | define configure_video |
---|
1517 | $(MKDIR_P) $(video) |
---|
1518 | cd $(video); $(srcdir)/pkgs/$(video)/configure $(video_flags) |
---|
1519 | endef |
---|
1520 | define build_video |
---|
1521 | $(MAKE) -C $(video) all |
---|
1522 | endef |
---|
1523 | define install_video |
---|
1524 | $(MAKE) -C $(video) install |
---|
1525 | endef |
---|
1526 | define touch_video |
---|
1527 | touch $(video)/timestamp |
---|
1528 | endef |
---|
1529 | |
---|
1530 | $(video)/timestamp: $(gui)/timestamp |
---|
1531 | + $(clean_video) |
---|
1532 | + $(fetch_video) |
---|
1533 | + $(configure_video) |
---|
1534 | + $(build_video) |
---|
1535 | + $(install_video) |
---|
1536 | + $(touch_video) |
---|
1537 | |
---|
1538 | # ------------------------------------------------------------------------- |
---|
1539 | # VTK |
---|
1540 | # ------------------------------------------------------------------------- |
---|
1541 | |
---|
1542 | vtk_flags = \ |
---|
1543 | $(common_flags) |
---|
1544 | |
---|
1545 | vtk: $(vtk)/timestamp |
---|
1546 | |
---|
1547 | clean-vtk: |
---|
1548 | $(clean_vtk) |
---|
1549 | fetch-vtk: |
---|
1550 | $(fetch_vtk) |
---|
1551 | configure-vtk: |
---|
1552 | $(configure_vtk) |
---|
1553 | build-vtk: |
---|
1554 | $(build_vtk) |
---|
1555 | install-vtk: |
---|
1556 | $(install_vtk) |
---|
1557 | touch-vtk: |
---|
1558 | $(touch_vtk) |
---|
1559 | force-vtk: $(cmake)/timestamp $(tcl)/timestamp $(tk)/timestamp |
---|
1560 | + $(clean_vtk) |
---|
1561 | + $(fetch_vtk) |
---|
1562 | + $(configure_vtk) |
---|
1563 | + $(build_vtk) |
---|
1564 | + $(install_vtk) |
---|
1565 | + $(touch_vtk) |
---|
1566 | |
---|
1567 | define clean_vtk |
---|
1568 | $(RM) -r $(vtk) |
---|
1569 | endef |
---|
1570 | define fetch_vtk |
---|
1571 | sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(vtk) |
---|
1572 | endef |
---|
1573 | define configure_vtk |
---|
1574 | $(MKDIR_P) $(vtk) |
---|
1575 | cd $(vtk); $(runtime)/$(vtk)/configure $(vtk_flags) |
---|
1576 | endef |
---|
1577 | define build_vtk |
---|
1578 | $(MAKE) -C $(vtk) all |
---|
1579 | endef |
---|
1580 | define install_vtk |
---|
1581 | $(MAKE) -C $(vtk) install |
---|
1582 | $(INSTALL) -m 0444 $(vtk)/vtkConfig.sh $(libdir) |
---|
1583 | $(RM) $(includedir)/vtk |
---|
1584 | (. $(libdir)/vtkConfig.sh ; cd $(includedir); $(LN_S) vtk-$${VTK_VERSION} vtk) |
---|
1585 | $(RM) $(libdir)/tcltk/vtk |
---|
1586 | (. $(libdir)/vtkConfig.sh ; cd $(libdir)/tcltk; $(LN_S) vtk-$${VTK_VERSION} vtk) |
---|
1587 | endef |
---|
1588 | define touch_vtk |
---|
1589 | touch $(vtk)/timestamp |
---|
1590 | endef |
---|
1591 | |
---|
1592 | $(vtk)/timestamp: $(cmake)/timestamp $(tcl)/timestamp $(tk)/timestamp |
---|
1593 | + $(clean_vtk) |
---|
1594 | + $(fetch_vtk) |
---|
1595 | + $(configure_vtk) |
---|
1596 | + $(build_vtk) |
---|
1597 | + $(install_vtk) |
---|
1598 | + $(touch_vtk) |
---|
1599 | |
---|
1600 | # ------------------------------------------------------------------------- |
---|
1601 | # ZLIB |
---|
1602 | # ------------------------------------------------------------------------- |
---|
1603 | |
---|
1604 | zlib_flags = \ |
---|
1605 | --enable-shared \ |
---|
1606 | $(common_flags) |
---|
1607 | |
---|
1608 | zlib: $(zlib)/timestamp |
---|
1609 | |
---|
1610 | clean-zlib: |
---|
1611 | $(clean_zlib) |
---|
1612 | fetch-zlib: |
---|
1613 | $(fetch_zlib) |
---|
1614 | configure-zlib: |
---|
1615 | $(configure_zlib) |
---|
1616 | build-zlib: |
---|
1617 | $(build_zlib) |
---|
1618 | install-zlib: |
---|
1619 | $(install_zlib) |
---|
1620 | touch-zlib: |
---|
1621 | $(touch_zlib) |
---|
1622 | force-zlib: |
---|
1623 | + $(clean_zlib) |
---|
1624 | + $(fetch_zlib) |
---|
1625 | + $(configure_zlib) |
---|
1626 | + $(build_zlib) |
---|
1627 | + $(install_zlib) |
---|
1628 | + $(touch_zlib) |
---|
1629 | |
---|
1630 | define clean_zlib |
---|
1631 | $(RM) -r $(zlib) |
---|
1632 | endef |
---|
1633 | define fetch_zlib |
---|
1634 | sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(zlib) |
---|
1635 | endef |
---|
1636 | define configure_zlib |
---|
1637 | $(MKDIR_P) $(zlib) |
---|
1638 | cd $(zlib); $(runtime)/$(zlib)/configure $(zlib_flags) |
---|
1639 | endef |
---|
1640 | define build_zlib |
---|
1641 | $(MAKE) -C $(zlib) all |
---|
1642 | endef |
---|
1643 | define install_zlib |
---|
1644 | $(MAKE) -C $(zlib) install |
---|
1645 | endef |
---|
1646 | define touch_zlib |
---|
1647 | touch $(zlib)/timestamp |
---|
1648 | endef |
---|
1649 | |
---|
1650 | $(zlib)/timestamp: |
---|
1651 | + $(clean_zlib) |
---|
1652 | + $(fetch_zlib) |
---|
1653 | + $(configure_zlib) |
---|
1654 | + $(build_zlib) |
---|
1655 | + $(install_zlib) |
---|
1656 | + $(touch_zlib) |
---|
1657 | |
---|
1658 | |
---|
1659 | TRASH = \ |
---|
1660 | ./bin/bltsh30 \ |
---|
1661 | ./bin/bltwish30 \ |
---|
1662 | ./bin/dtplite \ |
---|
1663 | ./bin/flowvis-test \ |
---|
1664 | ./bin/mapviewer-test \ |
---|
1665 | ./bin/nanovis-test \ |
---|
1666 | ./bin/nns \ |
---|
1667 | ./bin/nnsd \ |
---|
1668 | ./bin/nnslog \ |
---|
1669 | ./bin/page \ |
---|
1670 | ./bin/tcldocstrip \ |
---|
1671 | ./bin/vtkglyphs-test \ |
---|
1672 | ./bin/vtkheightmap-test \ |
---|
1673 | ./bin/vtkisosurface-test \ |
---|
1674 | ./bin/vtkstreamlines-test \ |
---|
1675 | ./bin/vtkviewer-test \ |
---|
1676 | ./bin/vtkvolume-test \ |
---|
1677 | ./lib/bltConfig.sh \ |
---|
1678 | ./lib/itclConfig.sh \ |
---|
1679 | ./lib/jpegtclConfig.sh \ |
---|
1680 | ./lib/libBltTcl30.so \ |
---|
1681 | ./lib/libBltTk30.so \ |
---|
1682 | ./lib/pngtclConfig.sh \ |
---|
1683 | ./lib/tdomConfig.sh \ |
---|
1684 | ./lib/tifftclConfig.sh \ |
---|
1685 | ./lib/tkConfig.sh \ |
---|
1686 | ./lib/tkimgConfig.sh \ |
---|
1687 | ./lib/zlibtclConfig.sh \ |
---|
1688 | ./man \ |
---|
1689 | ./share |
---|
1690 | |
---|
1691 | installdir = rappture_install |
---|
1692 | tmpdir = /tmp/$(installdir) |
---|
1693 | arch = $(shell uname -m) |
---|
1694 | package: |
---|
1695 | $(RM) -r $(tmpdir) |
---|
1696 | $(MKDIR_P) $(tmpdir) |
---|
1697 | tar -C $(DESTDIR)$(exec_prefix) -clf - . | tar -C $(tmpdir) -xpf - |
---|
1698 | for i in $(TRASH); do \ |
---|
1699 | $(RM) -r $(tmpdir)/$$i ; \ |
---|
1700 | done |
---|
1701 | $(bindir)/bltsh30 fixrunpaths.tcl $(tmpdir) |
---|
1702 | tar -C /tmp -zclf rappture$(version)-linux-$(arch).tar.gz $(installdir) |
---|
1703 | $(RM) -r $(tmpdir) |
---|
1704 | |
---|