source: trunk/Couenne/src/main/Makefile.am @ 96

Last change on this file since 96 was 96, checked in by stefan, 11 years ago

resolve some circular dependencies by moving more into libCouenneExpression; separate libCouenneReadnl from libCouenne; put BonCouenne? into libCouenne; install only libCouenne, libBonCouenne, and libCouenneReadnl; debug build still broken because CouenneProblem? depends on readnl and vice versa

File size: 4.4 KB
Line 
1# Copyright (C) 2006 International Business Machines and others.
2# All Rights Reserved.
3# This file is distributed under the Common Public License.
4
5## $Id: Makefile.am 105 2006-11-03 19:31:19Z pbonami $
6
7# Author: Pietro Belotti, on a template by Pierre Bonami
8
9AUTOMAKE_OPTIONS = foreign
10
11# what is built at this level
12
13if COIN_HAS_ASL
14  bin_PROGRAMS = couenne
15endif
16
17lib_LTLIBRARIES = libBonCouenne.la
18
19libBonCouenne_la_SOURCES = \
20        BonCouenneSetup.cpp \
21        BonCouenneInterface.cpp \
22        BonNlpHeuristic.cpp \
23        BonCouenneInfo.cpp \
24        BonInitHeuristic.cpp
25
26COINLIBS = \
27        $(CBCOBJDIR)/src/libCbc.la \
28        $(CGLOBJDIR)/src/libCgl.la \
29        $(OSIOBJDIR)/src/OsiClp/libOsiClp.la \
30        $(BONMINOBJDIR)/src/CbcBonmin/libbonmin.la \
31        $(BONMINOBJDIR)/src/Interfaces/libbonmininterfaces.la \
32        $(IPOPTOBJDIR)/src/Interfaces/libipopt.la \
33        $(IPOPTOBJDIR)/src/LinAlg/liblinalg.la
34
35if COIN_HAS_CPX
36     COINLIBS += $(OSIOBJDIR)/src/OsiCpx/libOsiCpx.la
37endif
38
39COINLIBS += \
40     $(OSIOBJDIR)/src/libOsi.la \
41     $(CLPOBJDIR)/src/libClp.la \
42     $(COINUTILSOBJDIR)/src/libCoinUtils.la
43
44IPOPTLIBS = \
45        $(IPOPTOBJDIR)/src/Interfaces/libipopt.la \
46        $(IPOPTOBJDIR)/src/LinAlg/liblinalg.la
47
48LIBS += `cat $(IPOPTOBJDIR)/src/Interfaces/ipopt_addlibs_cpp.txt`
49LIBS += `cat $(COINUTILSOBJDIR)/coinutils_addlibs.txt`
50
51couenne_LDADD        = \
52        libBonCouenne.la \
53        ../readnl/libCouenneReadnl.la \
54        ../libCouenne.la
55
56couenne_DEPENDENCIES = \
57        libBonCouenne.la \
58        ../readnl/libCouenneReadnl.la \
59        ../libCouenne.la
60
61couenne_SOURCES = BonCouenne.cpp
62
63couenne_LDADD += \
64        $(LIBCBCCOPY) \
65        $(COINLIBS) \
66        $(ADDLIBS) \
67        $(ASLLIB)
68
69
70# Finally, the -rpath flag is used by libtool to make sure that the shared
71# library is found (in the lib install directory) when we are using dynamic
72# libraries.
73couenne_LDFLAGS = -rpath $(libdir)
74
75# Here list all include flags, relative to this "srcdir" directory.  This
76# "cygpath" stuff is necessary to compile with native compilers on Windows
77AM_CPPFLAGS = \
78        -I`$(CYGPATH_W) $(BONMINOBJDIR)/inc` \
79        -I`$(CYGPATH_W) $(BONMINSRCDIR)/src/Algorithms` \
80        -I`$(CYGPATH_W) $(BONMINSRCDIR)/src/Algorithms/Branching` \
81        -I`$(CYGPATH_W) $(BONMINSRCDIR)/src/Algorithms/OaGenerators` \
82        -I`$(CYGPATH_W) $(BONMINSRCDIR)/src/Algorithms/Ampl` \
83        -I`$(CYGPATH_W) $(BONMINSRCDIR)/src/Interfaces` \
84        -I`$(CYGPATH_W) $(BONMINSRCDIR)/src/Interfaces/Ipopt` \
85        -I`$(CYGPATH_W) $(BONMINSRCDIR)/src/Interfaces/Ampl` \
86        -I`$(CYGPATH_W) $(BONMINSRCDIR)/src/CbcBonmin` \
87        -I`$(CYGPATH_W) $(IPOPTOBJDIR)/inc` \
88        -I`$(CYGPATH_W) $(IPOPTSRCDIR)/src/Common` \
89        -I`$(CYGPATH_W) $(IPOPTSRCDIR)/src/Interfaces` \
90        -I`$(CYGPATH_W) $(IPOPTSRCDIR)/src/LinAlg` \
91        -I`$(CYGPATH_W) $(IPOPTSRCDIR)/src/Apps/AmplSolver` \
92        -I`$(CYGPATH_W) $(OSISRCDIR)/src` \
93        -I`$(CYGPATH_W) $(CBCSRCDIR)/src` \
94        -I`$(CYGPATH_W) $(CBCOBJDIR)/inc` \
95        -I`$(CYGPATH_W) $(CBCSRCDIR)/examples` \
96        -I`$(CYGPATH_W) $(COINUTILSSRCDIR)/src` \
97        -I`$(CYGPATH_W) $(COINUTILSOBJDIR)/inc` \
98        -I`$(CYGPATH_W) $(CLPOBJDIR)/inc` \
99        -I`$(CYGPATH_W) $(CLPSRCDIR)/src` \
100        -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiClp` \
101        -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiCbc`\
102        -I`$(CYGPATH_W) $(CGLSRCDIR)/src` \
103        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglMixedIntegerRounding2` \
104        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglLandP` \
105        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglRedSplit` \
106        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglGomory` \
107        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglProbing` \
108        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglOddHole` \
109        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglClique` \
110        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglFlowCover` \
111        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglMixedIntegerRounding` \
112        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglTwomir` \
113        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglKnapsackCover` \
114        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglPreProcess`
115
116if COIN_HAS_CPX
117  AM_CPPFLAGS += \
118        -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiCpx` \
119        -I`$(CYGPATH_W) $(CPXINCDIR)`
120endif
121
122AM_CPPFLAGS += $(ASL_CPPFLAGS)
123
124#if COIN_HAS_FILTERSQP
125#  AM_CPPFLAGS += -I`$(CYGPATH_W) $(BONMINSRCDIR)/src/Interfaces/Filter`
126#endif
127
128AM_CPPFLAGS += \
129        -I`$(CYGPATH_W) $(COUENNESRCDIR)/src/convex` \
130        -I`$(CYGPATH_W) $(COUENNESRCDIR)/src/expression` \
131        -I`$(CYGPATH_W) $(COUENNESRCDIR)/src/expression/operators` \
132        -I`$(CYGPATH_W) $(COUENNESRCDIR)/src/disjunctive` \
133        -I`$(CYGPATH_W) $(COUENNESRCDIR)/src/main` \
134        -I`$(CYGPATH_W) $(COUENNESRCDIR)/src/problem` \
135        -I`$(CYGPATH_W) $(COUENNESRCDIR)/src/branch`
136
137# This line is necessary to allow VPATH compilation with MS compilers
138# on Cygwin
139DEFAULT_INCLUDES = -I. -I`$(CYGPATH_W) $(srcdir)` -I$(top_builddir)/inc
Note: See TracBrowser for help on using the repository browser.