src/demo/Makefile.am
author ladanyi
Sun, 24 Apr 2005 22:26:37 +0000
changeset 1385 49d1ca28ebd8
parent 1362 b4330c52caeb
child 1387 37d1b20cd9ef
permissions -rw-r--r--
Don't set {GLPK,CPLEX}_{CFLAGS,LIBS} if the check fails.
     1 AM_CPPFLAGS = -I$(top_srcdir)/src
     2 LDADD = $(top_builddir)/src/lemon/libemon.la
     3 
     4 if HAVE_GLPK
     5 LP_CFLAGS = $(GLPK_CFLAGS) -DHAVE_GLPK
     6 LP_LIBS = $(GLPK_LIBS)
     7 else !HAVE_GLPK
     8 if HAVE_CPLEX
     9 LP_CFLAGS = $(CPLEX_CFLAGS) -DHAVE_CPLEX
    10 LP_LIBS = $(CPLEX_LIBS)
    11 endif HAVE_CPLEX
    12 endif !HAVE_GLPK
    13 
    14 
    15 EXTRA_DIST = sub_graph_wrapper_demo.dim
    16 
    17 noinst_PROGRAMS = \
    18 	dim_to_dot \
    19 	dim_to_lgf \
    20 	graph_to_eps_demo \
    21 	min_route \
    22 	sub_graph_wrapper_demo
    23 
    24 if HAVE_GLPK
    25 noinst_PROGRAMS += lp_demo lp_maxflow_demo
    26 else !HAVE_GLPK
    27 if HAVE_CPLEX
    28 noinst_PROGRAMS += lp_demo lp_maxflow_demo
    29 endif HAVE_CPLEX
    30 endif !HAVE_GLPK
    31 
    32 
    33 dim_to_dot_SOURCES = dim_to_dot.cc
    34 
    35 dim_to_lgf_SOURCES = dim_to_lgf.cc
    36 
    37 graph_to_eps_demo_SOURCES = graph_to_eps_demo.cc
    38 
    39 min_route_SOURCES = min_route.cc
    40 
    41 sub_graph_wrapper_demo_SOURCES = \
    42 	sub_graph_wrapper_demo.cc \
    43 	tight_edge_filter_map.h
    44 
    45 lp_demo_SOURCES = lp_demo.cc
    46 lp_demo_CXXFLAGS = $(LP_CFLAGS)
    47 lp_demo_LDFLAGS = $(LP_LIBS)
    48 
    49 lp_maxflow_demo_SOURCES = lp_maxflow_demo.cc
    50 lp_maxflow_demo_CXXFLAGS = $(LP_CFLAGS)
    51 lp_maxflow_demo_LDFLAGS = $(LP_LIBS)