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