1.1 --- a/src/demo/Makefile.am Wed Apr 13 06:49:42 2005 +0000
1.2 +++ b/src/demo/Makefile.am Thu Apr 14 12:02:14 2005 +0000
1.3 @@ -1,23 +1,31 @@
1.4 AM_CPPFLAGS = -I$(top_srcdir)/src
1.5 LDADD = $(top_builddir)/src/lemon/libemon.la
1.6 +
1.7 EXTRA_DIST = sub_graph_wrapper_demo.dim
1.8
1.9 -noinst_PROGRAMS = dim_to_dot \
1.10 - sub_graph_wrapper_demo \
1.11 - graph_to_eps_demo \
1.12 - lp_demo \
1.13 - dim_to_lgf \
1.14 - min_route
1.15 +noinst_PROGRAMS = \
1.16 + dim_to_dot \
1.17 + dim_to_lgf \
1.18 + graph_to_eps_demo \
1.19 + min_route \
1.20 + sub_graph_wrapper_demo
1.21 +
1.22 +if HAVE_GLPK
1.23 +noinst_PROGRAMS += lp_demo
1.24 +endif
1.25
1.26 dim_to_dot_SOURCES = dim_to_dot.cc
1.27 -min_route_SOURCES = min_route.cc
1.28
1.29 -sub_graph_wrapper_demo_SOURCES = sub_graph_wrapper_demo.cc \
1.30 - tight_edge_filter_map.h
1.31 +dim_to_lgf_SOURCES = dim_to_lgf.cc
1.32
1.33 graph_to_eps_demo_SOURCES = graph_to_eps_demo.cc
1.34
1.35 -lp_demo_LDADD = $(top_builddir)/src/lemon/libemon.la -lglpk
1.36 +min_route_SOURCES = min_route.cc
1.37 +
1.38 +sub_graph_wrapper_demo_SOURCES = \
1.39 + sub_graph_wrapper_demo.cc \
1.40 + tight_edge_filter_map.h
1.41 +
1.42 lp_demo_SOURCES = lp_demo.cc
1.43 -
1.44 -dim_to_lgf_SOURCES = dim_to_lgf.cc
1.45 \ No newline at end of file
1.46 +lp_demo_CXXFLAGS = $(GLPK_CFLAGS)
1.47 +lp_demo_LDFLAGS = $(GLPK_LIBS)