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

Last change on this file since 349 was 349, checked in by pbelotti, 10 years ago

Added Couenne namespace. Committed old code for Feas Pump. Added code for ellipsoid cuts. Added (empty) CouenneMINLPInterface that might replace AMPL interface to Ipopt. Fixed a few warnings. Solved a few namespace problems due to ambiguity in Bonmin and AMPL. Added (empty) code for sdp cuts.

File size: 5.6 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 couenne2
15endif
16
17lib_LTLIBRARIES = libBonCouenne.la
18
19libBonCouenne_la_SOURCES = \
20        BonCouenneSetup.cpp \
21        SmartAslDestr.cpp
22
23COINLIBS = \
24        $(CBCOBJDIR)/src/libCbc.la \
25        $(CGLOBJDIR)/src/libCgl.la \
26        $(OSIOBJDIR)/src/OsiClp/libOsiClp.la \
27        $(BONMINOBJDIR)/src/CbcBonmin/libbonmin.la \
28        $(BONMINOBJDIR)/src/Algorithms/Branching/libbonbranching.la \
29        $(IPOPTOBJDIR)/src/LinAlg/liblinalg.la
30
31if COIN_HAS_CPX
32     COINLIBS += $(OSIOBJDIR)/src/OsiCpx/libOsiCpx.la
33endif
34
35if COIN_HAS_NTY
36     COINLIBS += $(NTYLIB)
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
48couenne_LDADD         = libBonCouenne.la
49couenne_DEPENDENCIES  = libBonCouenne.la
50
51if COIN_HAS_ASL
52couenne_LDADD        += ../readnl/libCouenneReadnl.la
53couenne_DEPENDENCIES += ../readnl/libCouenneReadnl.la
54COINLIBS             += \
55        $(BONMINOBJDIR)/src/Interfaces/Ampl/libbonamplinterface.la \
56        $(IPOPTOBJDIR)/src/Apps/AmplSolver/libamplinterface.la
57endif
58
59
60COINLIBS += \
61        $(IPOPTOBJDIR)/src/Interfaces/libipopt.la \
62        $(BONMINOBJDIR)/src/Interfaces/libbonmininterfaces.la
63
64couenne_LDADD        += ../libCouenne.la
65couenne_DEPENDENCIES += ../libCouenne.la
66
67couenne_SOURCES = \
68        BonCouenne.cpp
69
70couenne2_LDADD         = libBonCouenne.la
71couenne2_DEPENDENCIES  = libBonCouenne.la
72
73if COIN_HAS_ASL
74couenne2_LDADD        += ../readnl/libCouenneReadnl.la
75couenne2_DEPENDENCIES += ../readnl/libCouenneReadnl.la
76endif
77
78couenne2_LDADD        += ../libCouenne.la
79couenne2_DEPENDENCIES += ../libCouenne.la
80
81couenne2_SOURCES = \
82        Couenne.cpp \
83        CouenneOSInterface.cpp
84
85#       ../readnl/readnl.cpp
86
87couenne_LDADD += \
88        $(LIBCBCCOPY) \
89        $(COINLIBS) \
90        $(ADDLIBS) \
91        $(ASLLIB) \
92        `cat $(IPOPTOBJDIR)/src/Interfaces/ipopt_addlibs_cpp.txt` \
93        `cat $(COINUTILSOBJDIR)/coinutils_addlibs.txt`
94
95couenne2_LDADD += \
96        $(LIBCBCCOPY) \
97        $(COINLIBS) \
98        $(ADDLIBS) \
99        $(ASLLIB) \
100        `cat $(IPOPTOBJDIR)/src/Interfaces/ipopt_addlibs_cpp.txt` \
101        `cat $(COINUTILSOBJDIR)/coinutils_addlibs.txt`
102
103# Finally, the -rpath flag is used by libtool to make sure that the shared
104# library is found (in the lib install directory) when we are using dynamic
105# libraries.
106couenne_LDFLAGS = -rpath $(libdir)
107couenne2_LDFLAGS = -rpath $(libdir)
108
109# Here list all include flags, relative to this "srcdir" directory.  This
110# "cygpath" stuff is necessary to compile with native compilers on Windows
111AM_CPPFLAGS = \
112        -I`$(CYGPATH_W) $(BONMINOBJDIR)/inc` \
113        -I`$(CYGPATH_W) $(BONMINSRCDIR)/src/Algorithms` \
114        -I`$(CYGPATH_W) $(BONMINSRCDIR)/src/Algorithms/Branching` \
115        -I`$(CYGPATH_W) $(BONMINSRCDIR)/src/Algorithms/OaGenerators` \
116        -I`$(CYGPATH_W) $(BONMINSRCDIR)/src/Algorithms/Ampl` \
117        -I`$(CYGPATH_W) $(BONMINSRCDIR)/src/Interfaces` \
118        -I`$(CYGPATH_W) $(BONMINSRCDIR)/src/Interfaces/Ipopt` \
119        -I`$(CYGPATH_W) $(BONMINSRCDIR)/src/Interfaces/Ampl` \
120        -I`$(CYGPATH_W) $(BONMINSRCDIR)/src/CbcBonmin` \
121        -I`$(CYGPATH_W) $(IPOPTOBJDIR)/inc` \
122        -I`$(CYGPATH_W) $(IPOPTSRCDIR)/src/Common` \
123        -I`$(CYGPATH_W) $(IPOPTSRCDIR)/src/Interfaces` \
124        -I`$(CYGPATH_W) $(IPOPTSRCDIR)/src/LinAlg` \
125        -I`$(CYGPATH_W) $(IPOPTSRCDIR)/src/Apps/AmplSolver` \
126        -I`$(CYGPATH_W) $(OSISRCDIR)/src` \
127        -I`$(CYGPATH_W) $(CBCSRCDIR)/src` \
128        -I`$(CYGPATH_W) $(CBCOBJDIR)/inc` \
129        -I`$(CYGPATH_W) $(CBCSRCDIR)/examples` \
130        -I`$(CYGPATH_W) $(COINUTILSSRCDIR)/src` \
131        -I`$(CYGPATH_W) $(COINUTILSOBJDIR)/inc` \
132        -I`$(CYGPATH_W) $(CLPOBJDIR)/inc` \
133        -I`$(CYGPATH_W) $(CLPSRCDIR)/src` \
134        -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiClp` \
135        -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiCbc`\
136        -I`$(CYGPATH_W) $(CGLSRCDIR)/src` \
137        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglMixedIntegerRounding2` \
138        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglLandP` \
139        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglRedSplit` \
140        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglGomory` \
141        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglProbing` \
142        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglOddHole` \
143        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglClique` \
144        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglFlowCover` \
145        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglMixedIntegerRounding` \
146        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglTwomir` \
147        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglKnapsackCover` \
148        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglPreProcess` \
149        -I`$(CYGPATH_W) $(CGLOBJDIR)/inc`
150
151if COIN_HAS_CPX
152  AM_CPPFLAGS += \
153        -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiCpx` \
154        -I`$(CYGPATH_W) $(CPXINCDIR)`
155endif
156
157AM_CPPFLAGS += $(ASL_CPPFLAGS)
158
159#if COIN_HAS_FILTERSQP
160#  AM_CPPFLAGS += -I`$(CYGPATH_W) $(BONMINSRCDIR)/src/Interfaces/Filter`
161#endif
162
163AM_CPPFLAGS += \
164        -I`$(CYGPATH_W) $(COUENNESRCDIR)/src` \
165        -I`$(CYGPATH_W) $(COUENNESRCDIR)/src/interfaces` \
166        -I`$(CYGPATH_W) $(COUENNESRCDIR)/src/heuristics` \
167        -I`$(CYGPATH_W) $(COUENNESRCDIR)/src/convex` \
168        -I`$(CYGPATH_W) $(COUENNESRCDIR)/src/expression` \
169        -I`$(CYGPATH_W) $(COUENNESRCDIR)/src/expression/operators` \
170        -I`$(CYGPATH_W) $(COUENNESRCDIR)/src/disjunctive` \
171        -I`$(CYGPATH_W) $(COUENNESRCDIR)/src/main` \
172        -I`$(CYGPATH_W) $(COUENNESRCDIR)/src/problem` \
173        -I`$(CYGPATH_W) $(COUENNESRCDIR)/src/branch` \
174        -I`$(CYGPATH_W) $(COUENNESRCDIR)/src/readnl`
175
176# This line is necessary to allow VPATH compilation with MS compilers
177# on Cygwin
178DEFAULT_INCLUDES = -I. -I`$(CYGPATH_W) $(srcdir)` -I$(top_builddir)/inc
179
180
181
182if COIN_HAS_NTY
183  AM_CPPFLAGS += \
184        -I`$(CYGPATH_W) $(NTYINCDIR)`
185endif
Note: See TracBrowser for help on using the repository browser.