COIN-OR::LEMON - Graph Library

Changeset 564:eda12d8ac953 in lemon-main


Ignore:
Timestamp:
04/01/09 15:18:35 (16 years ago)
Author:
Akos Ladanyi <ladanyi@…>
Branch:
default
Children:
565:7ab97e2a0c33, 572:be6646ac5d89
Phase:
public
Message:

Add 'demo' make target for building the demo programs

Files:
7 edited

Legend:

Unmodified
Added
Removed
  • INSTALL

    r504 r564  
    2828
    2929      This command compiles the non-template part of LEMON into libemon.a
    30       file. It also compiles the programs in the tools and demo subdirectories
    31       when enabled.
     30      file. It also compiles the programs in the tools subdirectory by
     31      default.
    3232
    3333   4. `make check'
     
    7575
    7676  Set the installation prefix to PREFIX. By default it is /usr/local.
    77 
    78 --enable-demo
    79 
    80    Build the examples in the demo subdirectory.
    81 
    82 --disable-demo
    83 
    84    Do not build the examples in the demo subdirectory (default).
    8577
    8678--enable-tools
  • Makefile.am

    r481 r564  
    4040include test/Makefile.am
    4141include doc/Makefile.am
    42 include demo/Makefile.am
    4342include tools/Makefile.am
     43
     44DIST_SUBDIRS = demo
     45
     46demo:
     47        $(MAKE) $(AM_MAKEFLAGS) -C demo
    4448
    4549MRPROPERFILES = \
     
    6973        bzip2 --best -c > $(PACKAGE)-$(VERSION).tar.bz2
    7074
    71 .PHONY: mrproper dist-bz2 distcheck-bz2
     75.PHONY: demo mrproper dist-bz2 distcheck-bz2
  • configure.ac

    r517 r564  
    6565AM_CONDITIONAL([HAVE_MIP], [test x"$lx_mip_found" = x"yes"])
    6666
    67 dnl Disable/enable building the demo programs.
    68 AC_ARG_ENABLE([demo],
    69 AS_HELP_STRING([--enable-demo], [build the demo programs])
    70 AS_HELP_STRING([--disable-demo], [do not build the demo programs @<:@default@:>@]),
    71               [], [enable_demo=no])
    72 AC_MSG_CHECKING([whether to build the demo programs])
    73 if test x"$enable_demo" != x"no"; then
    74   AC_MSG_RESULT([yes])
    75 else
    76   AC_MSG_RESULT([no])
    77 fi
    78 AM_CONDITIONAL([WANT_DEMO], [test x"$enable_demo" != x"no"])
    79 
    8067dnl Disable/enable building the binary tools.
    8168AC_ARG_ENABLE([tools],
     
    11198AC_CONFIG_FILES([
    11299Makefile
     100demo/Makefile
    113101cmake/version.cmake
    114102doc/Doxyfile
     
    133121echo CLP support................... : $lx_clp_found
    134122echo
    135 echo Build demo programs........... : $enable_demo
    136123echo Build additional tools........ : $enable_tools
    137124echo
  • demo/Makefile.am

    r400 r564  
    1 EXTRA_DIST += \
    2         demo/CMakeLists.txt \
    3         demo/digraph.lgf
     1AM_CXXFLAGS = $(WARNINGCXXFLAGS)
    42
    5 if WANT_DEMO
     3AM_CPPFLAGS = -I$(top_srcdir) -I$(top_builddir)
     4LDADD = $(top_builddir)/lemon/libemon.la
    65
    7 noinst_PROGRAMS += \
    8         demo/arg_parser_demo \
    9         demo/graph_to_eps_demo \
    10         demo/lgf_demo
     6EXTRA_DIST = \
     7        CMakeLists.txt \
     8        digraph.lgf
    119
    12 endif WANT_DEMO
     10noinst_PROGRAMS = \
     11        arg_parser_demo \
     12        graph_to_eps_demo \
     13        lgf_demo
    1314
    14 demo_arg_parser_demo_SOURCES = demo/arg_parser_demo.cc
    15 demo_graph_to_eps_demo_SOURCES = demo/graph_to_eps_demo.cc
    16 demo_lgf_demo_SOURCES = demo/lgf_demo.cc
     15arg_parser_demo_SOURCES = arg_parser_demo.cc
     16graph_to_eps_demo_SOURCES = graph_to_eps_demo.cc
     17lgf_demo_SOURCES = lgf_demo.cc
  • doc/groups.dox

    r559 r564  
    672672the \c demo subdirectory of the source tree.
    673673
    674 It order to compile them, use <tt>--enable-demo</tt> configure option when
    675 build the library.
     674In order to compile them, use the <tt>make demo</tt> or the
     675<tt>make check</tt> commands.
    676676*/
    677677
  • scripts/mk-release.sh

    r508 r564  
    1515
    1616autoreconf -vif
    17 ./configure --enable-demo
     17./configure
    1818
    1919make
  • test/Makefile.am

    r543 r564  
    3737        test/time_measure_test \
    3838        test/unionfind_test
     39
     40test_test_tools_pass_DEPENDENCIES = demo
    3941
    4042if HAVE_LP
Note: See TracChangeset for help on using the changeset viewer.