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