Ignore:
Timestamp:
Dec 13, 2014 6:19:29 PM (7 years ago)
Author:
gah
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/r9/Makefile.in

    r4869 r4870  
    1818TAG =                   branches/blt4
    1919VTK_VERSION =           6.0
     20TCL_VERSION =           @TCL_VERSION@
     21TK_VERSION =            @TK_VERSION@
     22
    2023# ------------------------------------------------------------------------
    2124#       Source and targer installation directories
     
    6568
    6669targets = \
    67         blt builder cmake examples expat expect gui htmlwidget itcl \
     70        blt cmake examples expat expect gui htmlwidget itcl \
    6871        itk lang lib optimizer shape sqlitetcl tcl tcllib \
    69         tdom tester tk tkimg tls video vtk zlib  packages objects runner
     72        tdom tester tk tkimg tls video vtk zlib  packages \
     73        apps p2p
    7074
    7175.PHONY: $(targets)
     
    7377.NOTPARALLEL:
    7478
    75 all: gui lang all_packages
    76 
    77 all_packages: runner tester objects builder packages video optimizer
     79all: gui lang apps allpackages
     80
     81allpackages: packages video optimizer
    7882
    7983update:
     
    111115vtk = vtk-6.0.0
    112116zlib = zlib
    113 tester = tester
    114 builder = builder
    115117lang = lang
    116118video = video
    117 runner = runner
    118 objects = objects
     119packages = pkgs
     120apps = apps
    119121
    120122subdirs = \
    121         $(blt) $(builder) $(cmake) $(examples) $(expat) $(expect) \
     123        $(blt) $(cmake) $(expat) $(expect) \
    122124        $(gui) $(htmlwidget) $(itcl) $(itk) $(lang) $(lib)  \
    123125        $(optimizer) $(shape) \
    124         $(sqlitetcl) $(tcl) $(tcllib) $(tdom) $(tester) $(tk) $(tkimg) \
    125         $(tls) $(vtk) $(zlib)
     126        $(sqlitetcl) $(tcl) $(tcllib) $(tdom) $(tk) $(tkimg) \
     127        $(tls) $(vtk) $(zlib) $(apps)
    126128
    127129ifeq ("$(HAVE_VTK)", 1)
     
    131133
    132134clean:
    133         $(RM) -r $(subdirs)
     135        $(clean_apps)
     136        $(clean_blt)
     137        $(clean_cmake)
     138        $(clean_expat)
     139        $(clean_expect)
     140        $(clean_gui)
     141        $(clean_htmlwidget)
     142        $(clean_itcl)
     143        $(clean_itk)
     144        $(clean_lang)
     145        $(clean_lib)
     146        $(clean_optimizer)
     147        $(clean_shape)
     148        $(clean_sqlitetcl)
     149        $(clean_tcl)
     150        $(clean_tcllib)
     151        $(clean_tdom)
     152        $(clean_tk)
     153        $(clean_tkimg)
     154        $(clean_tls)
     155        $(clean_vtk)
     156        $(clean_zlib)
     157
     158# -------------------------------------------------------------------------
     159#  APPS
     160# -------------------------------------------------------------------------
     161
     162apps_flags =    \
     163        --enable-shared \
     164        $(common_flags)
     165
     166apps: $(apps)/timestamp
     167
     168clean-apps:
     169        $(clean_apps)
     170fetch-apps:
     171        $(fetch_apps)
     172configure-apps:
     173        $(configure_apps)
     174build-apps:
     175        $(build_apps)
     176install-apps:
     177        $(install_apps)
     178touch-apps:
     179        $(touch_apps)
     180force-apps: $(gui)/timestamp
     181        + $(clean_apps)
     182        + $(fetch_apps)
     183        + $(configure_apps)
     184        + $(build_apps)
     185        + $(install_apps)
     186        + $(touch_apps)
     187
     188define clean_apps
     189        $(MAKE) -C $(apps) clean
     190endef
     191define fetch_apps
     192endef
     193define configure_apps
     194endef
     195define build_apps
     196        $(MAKE) -C $(apps) all
     197endef
     198define install_apps
     199        $(MAKE) -C $(apps) install
     200endef
     201define touch_apps
     202        touch $(apps)/timestamp
     203endef
     204
     205$(apps)/timestamp: $(gui)/timestamp
     206        + $(clean_apps)
     207        + $(fetch_apps)
     208        + $(configure_apps)
     209        + $(build_apps)
     210        + $(install_apps)
     211        + $(touch_apps)
     212
    134213
    135214# -------------------------------------------------------------------------
     
    190269        + $(install_blt)
    191270        + $(touch_blt)
    192 
    193 # -------------------------------------------------------------------------
    194 #  BUILDER
    195 # -------------------------------------------------------------------------
    196 
    197 builder_flags = \
    198         --with-tclsh="$(bindir)/tclsh8.4" \
    199         --enable-shared \
    200         $(common_flags)
    201 
    202 builder: $(builder)/timestamp
    203 
    204 clean-builder:
    205         $(clean_builder)
    206 fetch-builder:
    207         $(fetch_builder)
    208 configure-builder:
    209 build-builder:
    210         $(build_builder)
    211 install-builder:
    212         $(install_builder)
    213 touch-builder:
    214         $(touch_builder)
    215 force-builder: $(gui)/timestamp
    216         + $(clean_builder)
    217         + $(fetch_builder)
    218         + $(configure_builder)
    219         + $(build_builder)
    220         + $(install_builder)
    221         + $(touch_builder)
    222 
    223 define clean_builder
    224         $(MAKE) -C $(builder) clean
    225 endef
    226 define fetch_builder
    227 endef
    228 define build_builder
    229         $(MAKE) -C $(builder) all
    230 endef
    231 define install_builder
    232         $(MAKE) -C $(builder) install
    233 endef
    234 define touch_builder
    235         touch $(builder)/timestamp
    236 endef
    237 
    238 $(builder)/timestamp: $(lib)/timestamp $(itcl)/timestamp $(gui)/timestamp
    239         + $(clean_builder)
    240         + $(fetch_builder)
    241         + $(configure_builder)
    242         + $(build_builder)
    243         + $(install_builder)
    244         + $(touch_builder)
    245271
    246272# -------------------------------------------------------------------------
     
    839865
    840866# -------------------------------------------------------------------------
    841 #  OBJECTS
    842 # -------------------------------------------------------------------------
    843 
    844 objects_flags = \
    845         --enable-shared \
    846         $(common_flags)
    847 
    848 objects: $(objects)/timestamp
    849 
    850 clean-objects:
    851         $(clean_objects)
    852 fetch-objects:
    853         $(fetch_objects)
    854 configure-objects:
    855         $(configure_objects)
    856 build-objects:
    857         $(build_objects)
    858 install-objects:
    859         $(install_objects)
    860 touch-objects:
    861         $(touch_objects)
    862 force-objects:
    863         + $(clean_objects)
    864         + $(fetch_objects)
    865         + $(configure_objects)
    866         + $(build_objects)
    867         + $(install_objects)
    868         + $(touch_objects)
    869 
    870 define clean_objects
    871         $(MAKE) -C $(objects) clean
    872 endef
    873 define fetch_objects
    874 endef
    875 define configure_objects
    876 endef
    877 define build_objects
    878         $(MAKE) -C $(objects) all
    879 endef
    880 define install_objects
    881         $(MAKE) -C $(objects) install
    882 endef
    883 define touch_objects
    884         touch $(objects)/timestamp
    885 endef
    886 
    887 $(objects)/timestamp: $(lib)/timestamp $(itcl)/timestamp
    888         + $(clean_objects)
    889         + $(fetch_objects)
    890         + $(configure_objects)
    891         + $(build_objects)
    892         + $(install_objects)
    893         + $(touch_objects)
    894 
    895 
    896 
    897 # -------------------------------------------------------------------------
    898867#  OPTIMIZER
    899868# -------------------------------------------------------------------------
     
    934903define configure_optimizer
    935904        $(MKDIR_P) $(optimizer)
    936         cd $(optimizer); $(srcdir)/packages/$(optimizer)/configure $(optimizer_flags)
     905        cd $(optimizer); $(srcdir)/pkgs/$(optimizer)/configure $(optimizer_flags)
    937906endef
    938907define build_optimizer
     
    954923        + $(touch_optimizer)
    955924
    956 # -------------------------------------------------------------------------
    957 #  RUNNER
    958 # -------------------------------------------------------------------------
    959 
    960 runner_flags =  \
    961         --enable-shared \
    962         $(common_flags)
    963 
    964 runner: $(runner)/timestamp
    965 
    966 clean-runner:
    967         $(clean_runner)
    968 fetch-runner:
    969         $(fetch_runner)
    970 configure-runner:
    971         $(configure_runner)
    972 build-runner:
    973         $(build_runner)
    974 install-runner:
    975         $(install_runner)
    976 touch-runner:
    977         $(touch_runner)
    978 force-runner:
    979         + $(clean_runner)
    980         + $(fetch_runner)
    981         + $(configure_runner)
    982         + $(build_runner)
    983         + $(install_runner)
    984         + $(touch_runner)
    985 
    986 define clean_runner
    987         $(MAKE) -C $(runner) clean
    988 endef
    989 define fetch_runner
    990 endef
    991 define configure_runner
    992 endef
    993 define build_runner
    994         $(MAKE) -C $(runner) all
    995 endef
    996 define install_runner
    997         $(MAKE) -C $(runner) install
    998 endef
    999 define touch_runner
    1000         touch $(runner)/timestamp
    1001 endef
    1002 
    1003 $(runner)/timestamp: $(lib)/timestamp $(itcl)/timestamp $(gui)/timestamp
    1004         + $(clean_runner)
    1005         + $(fetch_runner)
    1006         + $(configure_runner)
    1007         + $(build_runner)
    1008         + $(install_runner)
    1009         + $(touch_runner)
     925
     926# -------------------------------------------------------------------------
     927#  PACKAGES
     928# -------------------------------------------------------------------------
     929
     930packages_flags =        \
     931        --enable-shared \
     932        $(common_flags)
     933
     934packages: $(packages)/timestamp
     935
     936clean-packages:
     937        $(clean_packages)
     938fetch-packages:
     939        $(fetch_packages)
     940configure-packages:
     941        $(configure_packages)
     942build-packages:
     943        $(build_packages)
     944install-packages:
     945        $(install_packages)
     946touch-packages:
     947        $(touch_packages)
     948force-packages: $(gui)/timestamp
     949        + $(clean_packages)
     950        + $(fetch_packages)
     951        + $(configure_packages)
     952        + $(build_packages)
     953        + $(install_packages)
     954        + $(touch_packages)
     955
     956define clean_packages
     957        $(MAKE) -C $(packages) clean
     958endef
     959define fetch_packages
     960endef
     961define configure_packages
     962endef
     963define build_packages
     964        $(MAKE) -C $(packages) all
     965endef
     966define install_packages
     967        $(MAKE) -C $(packages) install
     968endef
     969define touch_packages
     970        touch $(packages)/timestamp
     971endef
     972
     973$(packages)/timestamp: $(gui)/timestamp
     974        + $(clean_packages)
     975        + $(fetch_packages)
     976        + $(configure_packages)
     977        + $(build_packages)
     978        + $(install_packages)
     979        + $(touch_packages)
    1010980
    1011981
     
    13091279
    13101280# -------------------------------------------------------------------------
    1311 #  TESTER
    1312 # -------------------------------------------------------------------------
    1313 
    1314 tester_flags =  \
    1315         --with-tclsh="$(bindir)/tclsh8.4" \
    1316         --enable-shared \
    1317         $(common_flags)
    1318 
    1319 tester: $(tester)/timestamp
    1320 
    1321 clean-tester:
    1322         $(clean_tester)
    1323 fetch-tester:
    1324         $(fetch_tester)
    1325 configure-tester:
    1326         $(configure_tester)
    1327 build-tester:
    1328         $(build_tester)
    1329 install-tester:
    1330         $(install_tester)
    1331 touch-tester:
    1332         $(touch_tester)
    1333 force-tester: $(gui)/timestamp
    1334         + $(clean_tester)
    1335         + $(fetch_tester)
    1336         + $(configure_tester)
    1337         + $(build_tester)
    1338         + $(install_tester)
    1339         + $(touch_tester)
    1340 
    1341 define clean_tester
    1342         $(MAKE) -C $(tester) clean
    1343 endef
    1344 define fetch_tester
    1345 endef
    1346 define configure_tester
    1347 endef
    1348 define build_tester
    1349         $(MAKE) -C $(tester) all
    1350 endef
    1351 define install_tester
    1352         $(MAKE) -C $(tester) install
    1353 endef
    1354 define touch_tester
    1355         touch $(tester)/timestamp
    1356 endef
    1357 
    1358 $(tester)/timestamp: $(gui)/timestamp
    1359         + $(clean_tester)
    1360         + $(fetch_tester)
    1361         + $(configure_tester)
    1362         + $(build_tester)
    1363         + $(install_tester)
    1364         + $(touch_tester)
    1365 
    1366 # -------------------------------------------------------------------------
    13671281#  TK
    13681282# -------------------------------------------------------------------------
     
    15791493define configure_video
    15801494        $(MKDIR_P) $(video)
    1581         cd $(video); $(srcdir)/packages/$(video)/configure $(video_flags)
     1495        cd $(video); $(srcdir)/pkgs/$(video)/configure $(video_flags)
    15821496endef
    15831497define build_video
     
    17181632        + $(touch_zlib)
    17191633
     1634
     1635TRASH = \
     1636        ./bin/dtplite \
     1637        ./bin/flowvis-test \
     1638        ./bin/mapviewer-test \
     1639        ./bin/nanovis-test \
     1640        ./bin/nns \
     1641        ./bin/nnsd \
     1642        ./bin/nnslog \
     1643        ./bin/page \
     1644        ./bin/tcldocstrip \
     1645        ./bin/vtkglyphs-test \
     1646        ./bin/vtkheightmap-test \
     1647        ./bin/vtkisosurface-test \
     1648        ./bin/vtkstreamlines-test \
     1649        ./bin/vtkviewer-test \
     1650        ./bin/vtkvolume-test \
     1651        ./bin/bltsh30 \
     1652        ./bin/bltwish30 \
     1653        ./lib/bltConfig.sh \
     1654        ./lib/itclConfig.sh \
     1655        ./lib/jpegtclConfig.sh \
     1656        ./lib/libBltTcl30.so \
     1657        ./lib/libBltTk30.so \
     1658        ./lib/pngtclConfig.sh \
     1659        ./lib/tdomConfig.sh \
     1660        ./lib/tifftclConfig.sh \
     1661        ./lib/tkConfig.sh \
     1662        ./lib/tkimgConfig.sh \
     1663        ./lib/zlibtclConfig.sh \
     1664        ./man \
     1665        ./share
     1666
     1667installdir =    rappture_install
     1668tmpdir =        /tmp/$(installdir)
     1669arch =          $(shell uname -m)
     1670package:
     1671        $(RM) -r $(tmpdir)
     1672        $(MKDIR_P) $(tmpdir)
     1673        tar -C $(DESTDIR)$(exec_prefix) -clf - . | tar -C $(tmpdir) -xpf -
     1674        for i in $(TRASH); do \
     1675           $(RM) -r $(tmpdir)/$$i ; \
     1676        done
     1677        $(bindir)/bltsh30 fixrunpaths.tcl $(tmpdir)
     1678        tar -C /tmp -zclf rappture$(version)-linux-$(arch).tar.gz $(installdir)
     1679        $(RM) -r $(tmpdir)
     1680
Note: See TracChangeset for help on using the changeset viewer.