source: branches/r9/Makefile.in @ 4870

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