source: branches/r9/Makefile.in @ 4867

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