source: branches/r9/Makefile.in @ 4866

Last change on this file since 4866 was 4866, checked in by gah, 7 years ago
File size: 31.2 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 librappture 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 packages lang
76
77fullpkg: tester builder packages
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
93librappture = librappture
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
111
112subdirs = \
113        $(blt) $(builder) $(cmake) $(examples) $(expat) $(expect) \
114        $(gui) $(htmlwidget) $(itcl) $(itk) $(lang) $(librappture)  \
115        $(optimizer) $(shape) \
116        $(sqlitetcl) $(tcl) $(tcllib) $(tdom) $(tester) $(tk) $(tkimg) \
117        $(tls) $(vtk) $(zlib)
118
119ifneq ("$(HAVE_VTK)", )
120  vtk_timestamp   = $(vtk)/timestamp
121  cmake_timestamp = $(cmake)/timestamp
122endif
123
124clean:
125        $(RM) -r $(subdirs)
126
127# -------------------------------------------------------------------------
128#  BLT
129# -------------------------------------------------------------------------
130
131blt_flags =     \
132                --enable-shared \
133                $(common_flags)
134
135blt: $(blt)/timestamp
136
137clean-blt:
138        $(clean_blt)
139fetch-blt:
140        $(fetch_blt)
141configure-blt:
142        $(configure_blt)
143build-blt:
144        $(build_blt)
145install-blt:
146        $(install_blt)
147touch-blt:
148        $(touch_blt)
149force-blt: $(tcl)/timestamp $(tk)/timestamp
150        + $(clean_blt)
151        + $(fetch_blt)
152        + $(configure_blt)
153        + $(build_blt)
154        + $(install_blt)
155        + $(touch_blt)
156
157define clean_blt
158        $(RM) -r $(blt)
159endef
160define fetch_blt
161        sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(blt)
162endef
163define configure_blt
164        $(MKDIR_P) $(blt)
165        cd $(blt); $(runtime)/$(blt)/configure $(blt_flags)
166endef
167define build_blt
168        $(MAKE)  -C $(blt) all
169endef
170define install_blt
171        $(MAKE) -C $(blt) install
172endef
173define touch_blt
174        touch $(blt)/timestamp
175endef
176
177$(blt)/timestamp: $(tcl)/timestamp $(tk)/timestamp
178        + $(clean_blt)
179        + $(fetch_blt)
180        + $(configure_blt)
181        + $(build_blt)
182        + $(install_blt)
183        + $(touch_blt)
184
185# -------------------------------------------------------------------------
186#  BUILDER
187# -------------------------------------------------------------------------
188
189builder_flags = \
190        --with-tclsh="$(bindir)/tclsh8.4" \
191        --enable-shared \
192        $(common_flags)
193
194builder: $(builder)/timestamp
195
196clean-builder:
197        $(clean_builder)
198fetch-builder:
199        $(fetch_builder)
200configure-builder:
201build-builder:
202        $(build_builder)
203install-builder:
204        $(install_builder)
205touch-builder:
206        $(touch_builder)
207force-builder: $(gui)/timestamp
208        + $(clean_builder)
209        + $(fetch_builder)
210        + $(configure_builder)
211        + $(build_builder)
212        + $(install_builder)
213        + $(touch_builder)
214
215define clean_builder
216        $(MAKE) -C $(builder) clean
217endef
218define fetch_builder
219endef
220define build_builder
221        $(MAKE) -C $(builder) all
222endef
223define install_builder
224        $(MAKE) -C $(builder) install
225endef
226define touch_builder
227        touch $(builder)/timestamp
228endef
229
230$(builder)/timestamp: $(gui)/timestamp
231        + $(clean_builder)
232        + $(fetch_builder)
233        + $(configure_builder)
234        + $(build_builder)
235        + $(install_builder)
236        + $(touch_builder)
237
238# -------------------------------------------------------------------------
239#  CMAKE
240# -------------------------------------------------------------------------
241
242cmake_flags =   \
243        --prefix=$(prefix)
244
245cmake: $(cmake)/timestamp
246
247clean-cmake:
248        $(clean_cmake)
249fetch-cmake:
250        $(fetch_cmake)
251configure-cmake:
252        $(configure_cmake)
253build-cmake:
254        $(build_cmake)
255install-cmake:
256        $(install_cmake)
257touch-cmake:
258        $(touch_cmake)
259force-cmake:
260        + $(clean_cmake)
261        + $(fetch_cmake)
262        + $(configure_cmake)
263        + $(build_cmake)
264        + $(install_cmake)
265        + $(touch_cmake)
266
267define clean_cmake
268        $(RM) -r $(cmake)
269endef
270define fetch_cmake
271        sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(cmake)
272endef
273define configure_cmake
274        $(MKDIR_P) $(cmake)
275        cd $(cmake); $(runtime)/$(cmake)/configure $(cmake_flags)
276endef
277define build_cmake
278        $(MAKE)  -C $(cmake) all
279endef
280define install_cmake
281        $(MAKE) -C $(cmake) install
282endef
283define touch_cmake
284        touch $(cmake)/timestamp
285endef
286
287$(cmake)/timestamp:
288        + $(clean_cmake)
289        + $(fetch_cmake)
290        + $(configure_cmake)
291        + $(build_cmake)
292        + $(install_cmake)
293        + $(touch_cmake)
294
295# -------------------------------------------------------------------------
296#  EXAMPLES
297# -------------------------------------------------------------------------
298
299examples_flags =        \
300        --with-tclsh="$(bindir)/tclsh8.4" \
301        --enable-shared \
302        $(common_flags)
303
304examples: $(examples)/timestamp
305
306clean-examples:
307        $(clean_examples)
308fetch-examples:
309        $(fetch_examples)
310configure-examples:
311        $(configure_examples)
312build-examples:
313        $(build_examples)
314install-examples:
315        $(install_examples)
316touch-examples:
317        $(touch_examples)
318force-examples: $(gui)/timestamp
319        + $(clean_examples)
320        + $(fetch_examples)
321        + $(configure_examples)
322        + $(build_examples)
323        + $(install_examples)
324        + $(touch_examples)
325
326define clean_examples
327        $(MAKE) -C $(examples) clean
328endef
329define fetch_examples
330endef
331define configure_examples
332        $(MKDIR_P) $(examples)
333endef
334define build_examples
335        $(MAKE) -C $(examples) all
336endef
337define install_examples
338        $(MAKE) -C $(examples) install
339endef
340define touch_examples
341        touch $(examples)/timestamp
342endef
343
344$(examples)/timestamp: $(gui)/timestamp
345        + $(clean_examples)
346        + $(fetch_examples)
347        + $(configure_examples)
348        + $(build_examples)
349        + $(install_examples)
350        + $(touch_examples)
351
352# -------------------------------------------------------------------------
353#  EXPAT
354# -------------------------------------------------------------------------
355
356expat_flags =   \
357        --enable-shared \
358        $(common_flags)
359
360expat: $(expat)/timestamp
361
362clean-expat:
363        $(clean_expat)
364fetch-expat:
365        $(fetch_expat)
366configure-expat:
367        $(configure_expat)
368build-expat:
369        $(build_expat)
370install-expat:
371        $(install_expat)
372touch-expat:
373        $(touch_expat)
374force-expat:
375        + $(clean_expat)
376        + $(fetch_expat)
377        + $(configure_expat)
378        + $(build_expat)
379        + $(install_expat)
380        + $(touch_expat)
381
382define clean_expat
383        $(RM) -r $(expat)
384endef
385define fetch_expat
386        sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(expat)
387endef
388define configure_expat
389        $(MKDIR_P) $(expat)
390        cd $(expat); $(runtime)/$(expat)/configure $(expat_flags)
391endef
392define build_expat
393        $(MAKE)  -C $(expat) all
394endef
395define install_expat
396        $(MAKE) -C $(expat) install
397endef
398define touch_expat
399        touch $(expat)/timestamp
400endef
401
402$(expat)/timestamp:
403        + $(clean_expat)
404        + $(fetch_expat)
405        + $(configure_expat)
406        + $(build_expat)
407        + $(install_expat)
408        + $(touch_expat)
409
410# -------------------------------------------------------------------------
411#  EXPECT
412# -------------------------------------------------------------------------
413
414expect_flags =  \
415        --enable-shared \
416        --enable-64bit \
417        --with-tcl=$(libdir) \
418        --with-tclinclude=$(incdir) \
419        $(common_flags)
420
421expect: $(expect)/timestamp
422
423clean-expect:
424        $(clean_expect)
425fetch-expect:
426        $(fetch_expect)
427configure-expect:
428        $(configure_expect)
429build-expect:
430        $(build_expect)
431install-expect:
432        $(install_expect)
433touch-expect:
434        $(touch_expect)
435force-expect: $(tcl)/timestamp $(tk)/timestamp
436        + $(clean_expect)
437        + $(fetch_expect)
438        + $(configure_expect)
439        + $(build_expect)
440        + $(install_expect)
441        + $(touch_expect)
442
443define clean_expect
444        $(RM) -r $(expect)
445endef
446define fetch_expect
447        sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(expect)
448endef
449define configure_expect
450        $(MKDIR_P) $(expect)
451        cd $(expect); $(runtime)/$(expect)/configure $(expect_flags)
452endef
453define build_expect
454        $(MAKE)  -C $(expect) all
455endef
456define install_expect
457        $(MAKE) -C $(expect) install
458endef
459define touch_expect
460        touch $(expect)/timestamp
461endef
462
463$(expect)/timestamp: $(tcl)/timestamp $(tk)/timestamp
464        + $(clean_expect)
465        + $(fetch_expect)
466        + $(configure_expect)
467        + $(build_expect)
468        + $(install_expect)
469        + $(touch_expect)
470
471# -------------------------------------------------------------------------
472#  GUI
473# -------------------------------------------------------------------------
474
475gui_flags =     \
476        --with-tclsh="$(bindir)/tclsh8.4" \
477        --enable-shared \
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: $(librappture)/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: $(librappture)/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: $(librappture)/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#  LIBRAPPTURE
779# -------------------------------------------------------------------------
780
781librappture_flags =     \
782        --enable-shared \
783        $(common_flags)
784
785librappture: $(librappture)/timestamp
786
787clean-librappture:
788        $(clean_librappture)
789fetch-librappture:
790        $(fetch_librappture)
791configure-librappture:
792        $(configure_librappture)
793build-librappture:
794        $(build_librappture)
795install-librappture:
796        $(install_librappture)
797touch-librappture:
798        $(touch_librappture)
799force-librappture:
800        + $(clean_librappture)
801        + $(fetch_librappture)
802        + $(configure_librappture)
803        + $(build_librappture)
804        + $(install_librappture)
805        + $(touch_librappture)
806
807define clean_librappture
808        $(RM) -r $(librappture)
809endef
810define fetch_librappture
811endef
812define configure_librappture
813        $(MKDIR_P) $(librappture)
814        cd $(librappture); $(srcdir)/lib/configure $(librappture_flags)
815endef
816define build_librappture
817        $(MAKE)  -C $(librappture) all
818endef
819define install_librappture
820        $(MAKE) -C $(librappture) install
821endef
822define touch_librappture
823        touch $(librappture)/timestamp
824endef
825
826$(librappture)/timestamp:
827        + $(clean_librappture)
828        + $(fetch_librappture)
829        + $(configure_librappture)
830        + $(build_librappture)
831        + $(install_librappture)
832        + $(touch_librappture)
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)/src/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
1060endef
1061define touch_tcl
1062        touch $(tcl)/timestamp
1063endef
1064
1065$(tcl)/timestamp:
1066        + $(clean_tcl)
1067        + $(fetch_tcl)
1068        + $(configure_tcl)
1069        + $(build_tcl)
1070        + $(install_tcl)
1071        + $(touch_tcl)
1072
1073# -------------------------------------------------------------------------
1074#  TCLLIB
1075# -------------------------------------------------------------------------
1076
1077tcllib_flags =  \
1078        --enable-shared \
1079        $(common_flags)
1080
1081tcllib: $(tcllib)/timestamp
1082
1083clean-tcllib:
1084        $(clean_tcllib)
1085fetch-tcllib:
1086        $(fetch_tcllib)
1087configure-tcllib:
1088        $(configure_tcllib)
1089build-tcllib:
1090        $(build_tcllib)
1091install-tcllib:
1092        $(install_tcllib)
1093touch-tcllib:
1094        $(touch_tcllib)
1095force-tcllib: $(tcl)/timestamp
1096        + $(clean_tcllib)
1097        + $(fetch_tcllib)
1098        + $(configure_tcllib)
1099        + $(build_tcllib)
1100        + $(install_tcllib)
1101        + $(touch_tcllib)
1102
1103define clean_tcllib
1104        $(RM) -r $(tcllib)
1105endef
1106define fetch_tcllib
1107        sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(tcllib)
1108endef
1109define configure_tcllib
1110        $(MKDIR_P) $(tcllib)
1111        cd $(tcllib); $(runtime)/$(tcllib)/configure $(tcllib_flags)
1112endef
1113define build_tcllib
1114        $(MAKE) -C $(tcllib) all
1115endef
1116define install_tcllib
1117        $(MAKE) -C $(tcllib) install
1118endef
1119define touch_tcllib
1120        touch $(tcllib)/timestamp
1121endef
1122
1123$(tcllib)/timestamp: $(tcl)/timestamp
1124        + $(clean_tcllib)
1125        + $(fetch_tcllib)
1126        + $(configure_tcllib)
1127        + $(build_tcllib)
1128        + $(install_tcllib)
1129        + $(touch_tcllib)
1130
1131# -------------------------------------------------------------------------
1132#  TDOM
1133# -------------------------------------------------------------------------
1134
1135tdom_flags =    \
1136        --enable-shared \
1137        $(common_flags)
1138
1139tdom: $(tdom)/timestamp
1140
1141clean-tdom:
1142        $(clean_tdom)
1143fetch-tdom:
1144        $(fetch_tdom)
1145configure-tdom:
1146        $(configure_tdom)
1147build-tdom:
1148        $(build_tdom)
1149install-tdom:
1150        $(install_tdom)
1151touch-tdom:
1152        $(touch_tdom)
1153force-tdom: $(tcl)/timestamp
1154        + $(clean_tdom)
1155        + $(fetch_tdom)
1156        + $(configure_tdom)
1157        + $(build_tdom)
1158        + $(install_tdom)
1159        + $(touch_tdom)
1160
1161define clean_tdom
1162        $(RM) -r $(tdom)
1163endef
1164define fetch_tdom
1165        sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(tdom)
1166endef
1167define configure_tdom
1168        $(MKDIR_P) $(tdom)
1169        cd $(tdom); $(runtime)/$(tdom)/configure $(tdom_flags)
1170endef
1171define build_tdom
1172        $(MAKE) -C $(tdom) all
1173endef
1174define install_tdom
1175        $(MAKE) -C $(tdom) install
1176endef
1177define touch_tdom
1178        touch $(tdom)/timestamp
1179endef
1180
1181$(tdom)/timestamp: $(tcl)/timestamp
1182        + $(clean_tdom)
1183        + $(fetch_tdom)
1184        + $(configure_tdom)
1185        + $(build_tdom)
1186        + $(install_tdom)
1187        + $(touch_tdom)
1188
1189# -------------------------------------------------------------------------
1190#  TESTER
1191# -------------------------------------------------------------------------
1192
1193tester_flags =  \
1194        --with-tclsh="$(bindir)/tclsh8.4" \
1195        --enable-shared \
1196        $(common_flags)
1197
1198tester: $(tester)/timestamp
1199
1200clean-tester:
1201        $(clean_tester)
1202fetch-tester:
1203        $(fetch_tester)
1204configure-tester:
1205        $(configure_tester)
1206build-tester:
1207        $(build_tester)
1208install-tester:
1209        $(install_tester)
1210touch-tester:
1211        $(touch_tester)
1212force-tester: $(gui)/timestamp
1213        + $(clean_tester)
1214        + $(fetch_tester)
1215        + $(configure_tester)
1216        + $(build_tester)
1217        + $(install_tester)
1218        + $(touch_tester)
1219
1220define clean_tester
1221        $(MAKE) -C $(tester) clean
1222endef
1223define fetch_tester
1224endef
1225define configure_tester
1226endef
1227define build_tester
1228        $(MAKE) -C $(tester) all
1229endef
1230define install_tester
1231        $(MAKE) -C $(tester) install
1232endef
1233define touch_tester
1234        touch $(tester)/timestamp
1235endef
1236
1237$(tester)/timestamp: $(gui)/timestamp
1238        + $(clean_tester)
1239        + $(fetch_tester)
1240        + $(configure_tester)
1241        + $(build_tester)
1242        + $(install_tester)
1243        + $(touch_tester)
1244
1245# -------------------------------------------------------------------------
1246#  TK
1247# -------------------------------------------------------------------------
1248
1249tk_flags =      \
1250        --enable-shared \
1251        --disable-threads \
1252        $(common_flags)
1253
1254tk: $(tk)/timestamp
1255
1256clean-tk:
1257        $(clean_tk)
1258fetch-tk:
1259        $(fetch_tk)
1260configure-tk:
1261        $(configure_tk)
1262build-tk:
1263        $(build_tk)
1264install-tk:
1265        $(install_tk)
1266touch-tk:
1267        $(touch_tk)
1268force-tk: $(tcl)/timestamp
1269        + $(clean_tk)
1270        + $(fetch_tk)
1271        + $(configure_tk)
1272        + $(build_tk)
1273        + $(install_tk)
1274        + $(touch_tk)
1275
1276define clean_tk
1277        $(RM) -r $(tk)
1278endef
1279define fetch_tk
1280        sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(tk)
1281endef
1282define configure_tk
1283        $(MKDIR_P) $(tk)
1284        cd $(tk); $(runtime)/$(tk)/unix/configure $(tk_flags)
1285endef
1286define build_tk
1287        $(MAKE)  -C $(tk) all
1288endef
1289define install_tk
1290        $(MAKE) -C $(tk) install
1291endef
1292define touch_tk
1293        touch $(tk)/timestamp
1294endef
1295
1296$(tk)/timestamp: $(tcl)/timestamp
1297        + $(clean_tk)
1298        + $(fetch_tk)
1299        + $(configure_tk)
1300        + $(build_tk)
1301        + $(install_tk)
1302        + $(touch_tk)
1303
1304# -------------------------------------------------------------------------
1305#  TKING
1306# -------------------------------------------------------------------------
1307
1308tkimg_flags =   \
1309        --enable-shared \
1310        $(common_flags)
1311
1312tkimg: $(tkimg)/timestamp
1313
1314clean-tkimg:
1315        $(clean_tkimg)
1316fetch-tkimg:
1317        $(fetch_tkimg)
1318configure-tkimg:
1319        $(configure_tkimg)
1320build-tkimg:
1321        $(build_tkimg)
1322install-tkimg:
1323        $(install_tkimg)
1324touch-tkimg:
1325        $(touch_tkimg)
1326force-tkimg: $(tk)/timestamp
1327        + $(clean_tkimg)
1328        + $(fetch_tkimg)
1329        + $(configure_tkimg)
1330        + $(build_tkimg)
1331        + $(install_tkimg)
1332        + $(touch_tkimg)
1333
1334define clean_tkimg
1335        $(RM) -r $(tkimg)
1336endef
1337define fetch_tkimg
1338        sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(tkimg)
1339endef
1340define configure_tkimg
1341        $(MKDIR_P) $(tkimg)
1342        cd $(tkimg); $(runtime)/$(tkimg)/configure $(tkimg_flags)
1343endef
1344define build_tkimg
1345        $(MAKE) -C $(tkimg) all
1346endef
1347define install_tkimg
1348        $(MAKE) -C $(tkimg) install
1349endef
1350define touch_tkimg
1351        touch $(tkimg)/timestamp
1352endef
1353
1354$(tkimg)/timestamp: $(tk)/timestamp
1355        + $(clean_tkimg)
1356        + $(fetch_tkimg)
1357        + $(configure_tkimg)
1358        + $(build_tkimg)
1359        + $(install_tkimg)
1360        + $(touch_tkimg)
1361
1362# -------------------------------------------------------------------------
1363#  TLS
1364# -------------------------------------------------------------------------
1365
1366tls_flags =     \
1367        --enable-shared \
1368        $(common_flags)
1369
1370tls: $(tls)/timestamp
1371
1372clean-tls:
1373        $(clean_tls)
1374fetch-tls:
1375        $(fetch_tls)
1376configure-tls:
1377        $(configure_tls)
1378build-tls:
1379        $(build_tls)
1380install-tls:
1381        $(install_tls)
1382touch-tls:
1383        $(touch_tls)
1384force-tls: $(tcl)/timestamp
1385        + $(clean_tls)
1386        + $(fetch_tls)
1387        + $(configure_tls)
1388        + $(build_tls)
1389        + $(install_tls)
1390        + $(touch_tls)
1391
1392define clean_tls
1393        $(RM) -r $(tls)
1394endef
1395define fetch_tls
1396        sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(tls)
1397endef
1398define configure_tls
1399        $(MKDIR_P) $(tls)
1400        cd $(tls); $(runtime)/$(tls)/configure $(tls_flags)
1401endef
1402define build_tls
1403        $(MAKE) -C $(tls) all
1404endef
1405define install_tls
1406        $(MAKE) -C $(tls) install
1407endef
1408define touch_tls
1409        touch $(tls)/timestamp
1410endef
1411
1412$(tls)/timestamp: $(tcl)/timestamp
1413        + $(clean_tls)
1414        + $(fetch_tls)
1415        + $(configure_tls)
1416        + $(build_tls)
1417        + $(install_tls)
1418        + $(touch_tls)
1419
1420# -------------------------------------------------------------------------
1421#  VIDEO
1422# -------------------------------------------------------------------------
1423
1424video_flags =   \
1425        --with-tclsh="$(bindir)/tclsh8.4" \
1426        --enable-shared \
1427        $(common_flags)
1428
1429video: $(video)/timestamp
1430
1431clean-video:
1432        $(clean_video)
1433fetch-video:
1434        $(fetch_video)
1435configure-video:
1436        $(configure_video)
1437build-video:
1438        $(build_video)
1439install-video:
1440        $(install_video)
1441touch-video:
1442        $(touch_video)
1443force-video: $(gui)/timestamp
1444        + $(clean_video)
1445        + $(fetch_video)
1446        + $(configure_video)
1447        + $(build_video)
1448        + $(install_video)
1449        + $(touch_video)
1450
1451define clean_video
1452        $(RM) -r $(video)
1453endef
1454define fetch_video
1455endef
1456define configure_video
1457        $(MKDIR_P) $(video)
1458        cd $(video); $(srcdir)/packages/$(video)/configure $(video_flags)
1459endef
1460define build_video
1461        $(MAKE) -C $(video) all
1462endef
1463define install_video
1464        $(MAKE) -C $(video) install
1465endef
1466define touch_video
1467        touch $(video)/timestamp
1468endef
1469
1470$(video)/timestamp: $(gui)/timestamp
1471        + $(clean_video)
1472        + $(fetch_video)
1473        + $(configure_video)
1474        + $(build_video)
1475        + $(install_video)
1476        + $(touch_video)
1477
1478# -------------------------------------------------------------------------
1479#  VTK
1480# -------------------------------------------------------------------------
1481
1482vtk_flags =     \
1483        $(common_flags)
1484
1485vtk: $(vtk)/timestamp
1486
1487clean-vtk:
1488        $(clean_vtk)
1489fetch-vtk:
1490        $(fetch_vtk)
1491configure-vtk:
1492        $(configure_vtk)
1493build-vtk:
1494        $(build_vtk)
1495install-vtk:
1496        $(install_vtk)
1497touch-vtk:
1498        $(touch_vtk)
1499force-vtk: $(cmake)/timestamp $(tcl)/timestamp $(tk)/timestamp
1500        + $(clean_vtk)
1501        + $(fetch_vtk)
1502        + $(configure_vtk)
1503        + $(build_vtk)
1504        + $(install_vtk)
1505        + $(touch_vtk)
1506
1507define clean_vtk
1508        $(RM) -r $(vtk)
1509endef
1510define fetch_vtk
1511        sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(vtk)
1512endef
1513define configure_vtk
1514        $(MKDIR_P) $(vtk)
1515        cd $(vtk); $(runtime)/$(vtk)/configure $(vtk_flags)
1516endef
1517define build_vtk
1518        $(MAKE)  -C $(vtk) all
1519endef
1520define install_vtk
1521        $(MAKE) -C $(vtk) install
1522        $(RM) $(includedir)/vtk
1523        (cd $(includedir); $(LN_S) vtk-$(VTK_VERSION) vtk)
1524        $(RM) $(libdir)/tcltk/vtk
1525        (cd $(libdir)/tcltk; $(LN_S) vtk-$(VTK_VERSION) vtk)
1526endef
1527define touch_vtk
1528        touch $(vtk)/timestamp
1529endef
1530
1531$(vtk)/timestamp: $(cmake)/timestamp $(tcl)/timestamp $(tk)/timestamp
1532        + $(clean_vtk)
1533        + $(fetch_vtk)
1534        + $(configure_vtk)
1535        + $(build_vtk)
1536        + $(install_vtk)
1537        + $(touch_vtk)
1538
1539# -------------------------------------------------------------------------
1540#  ZLIB
1541# -------------------------------------------------------------------------
1542
1543zlib_flags =    \
1544        --enable-shared \
1545        $(common_flags)
1546
1547zlib: $(zlib)/timestamp
1548
1549clean-zlib:
1550        $(clean_zlib)
1551fetch-zlib:
1552        $(fetch_zlib)
1553configure-zlib:
1554        $(configure_zlib)
1555build-zlib:
1556        $(build_zlib)
1557install-zlib:
1558        $(install_zlib)
1559touch-zlib:
1560        $(touch_zlib)
1561force-zlib:
1562        + $(clean_zlib)
1563        + $(fetch_zlib)
1564        + $(configure_zlib)
1565        + $(build_zlib)
1566        + $(install_zlib)
1567        + $(touch_zlib)
1568
1569define clean_zlib
1570        $(RM) -r $(zlib)
1571endef
1572define fetch_zlib
1573        sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(zlib)
1574endef
1575define configure_zlib
1576        $(MKDIR_P) $(zlib)
1577        cd $(zlib); $(runtime)/$(zlib)/configure $(zlib_flags)
1578endef
1579define build_zlib
1580        $(MAKE) -C $(zlib) all
1581endef
1582define install_zlib
1583        $(MAKE) -C $(zlib) install
1584endef
1585define touch_zlib
1586        touch $(zlib)/timestamp
1587endef
1588
1589$(zlib)/timestamp:
1590        + $(clean_zlib)
1591        + $(fetch_zlib)
1592        + $(configure_zlib)
1593        + $(build_zlib)
1594        + $(install_zlib)
1595        + $(touch_zlib)
Note: See TracBrowser for help on using the repository browser.