source: branches/r9/Makefile.in @ 4872

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