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