Changeset 4146 for trunk/Makefile.in


Ignore:
Timestamp:
Jan 22, 2014 8:35:03 PM (8 years ago)
Author:
gah
Message:

revert to last version: remove changes for new build system for rappture

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Makefile.in

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