src/demo/Makefile.am
changeset 1383 79b68a337f9f
parent 1362 b4330c52caeb
child 1387 37d1b20cd9ef
equal deleted inserted replaced
8:667d16079bb9 9:f94d4cb7c9c8
     1 AM_CPPFLAGS = -I$(top_srcdir)/src
     1 AM_CPPFLAGS = -I$(top_srcdir)/src
     2 LDADD = $(top_builddir)/src/lemon/libemon.la
     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 
     3 
    14 
     4 EXTRA_DIST = sub_graph_wrapper_demo.dim
    15 EXTRA_DIST = sub_graph_wrapper_demo.dim
     5 
    16 
     6 noinst_PROGRAMS = \
    17 noinst_PROGRAMS = \
     7 	dim_to_dot \
    18 	dim_to_dot \
    10 	min_route \
    21 	min_route \
    11 	sub_graph_wrapper_demo
    22 	sub_graph_wrapper_demo
    12 
    23 
    13 if HAVE_GLPK
    24 if HAVE_GLPK
    14 noinst_PROGRAMS += lp_demo lp_maxflow_demo
    25 noinst_PROGRAMS += lp_demo lp_maxflow_demo
    15 endif
    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 
    16 
    32 
    17 dim_to_dot_SOURCES = dim_to_dot.cc
    33 dim_to_dot_SOURCES = dim_to_dot.cc
    18 
    34 
    19 dim_to_lgf_SOURCES = dim_to_lgf.cc
    35 dim_to_lgf_SOURCES = dim_to_lgf.cc
    20 
    36 
    25 sub_graph_wrapper_demo_SOURCES = \
    41 sub_graph_wrapper_demo_SOURCES = \
    26 	sub_graph_wrapper_demo.cc \
    42 	sub_graph_wrapper_demo.cc \
    27 	tight_edge_filter_map.h
    43 	tight_edge_filter_map.h
    28 
    44 
    29 lp_demo_SOURCES = lp_demo.cc
    45 lp_demo_SOURCES = lp_demo.cc
    30 lp_demo_CXXFLAGS = $(GLPK_CFLAGS)
    46 lp_demo_CXXFLAGS = $(LP_CFLAGS)
    31 lp_demo_LDFLAGS = $(GLPK_LIBS)
    47 lp_demo_LDFLAGS = $(LP_LIBS)
    32 
    48 
    33 lp_maxflow_demo_SOURCES = lp_maxflow_demo.cc
    49 lp_maxflow_demo_SOURCES = lp_maxflow_demo.cc
    34 lp_maxflow_demo_CXXFLAGS = $(GLPK_CFLAGS)
    50 lp_maxflow_demo_CXXFLAGS = $(LP_CFLAGS)
    35 lp_maxflow_demo_LDFLAGS = $(GLPK_LIBS)
    51 lp_maxflow_demo_LDFLAGS = $(LP_LIBS)