source: trunk/Couenne/src/Makefile.am @ 95

Last change on this file since 95 was 95, checked in by pbelotti, 11 years ago

added BonCouenne? code to libCouenne for OS

File size: 7.7 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 405 2006-07-10 18:52:52Z andreasw $
6
7# Author:  Andreas Waechter           IBM    2006-04-13
8
9AUTOMAKE_OPTIONS = foreign
10
11########################################################################
12#                               libCouenne                             #
13########################################################################
14
15# Name of the library compiled in this directory.  We want it to be installed
16# in the 'lib' directory
17lib_LTLIBRARIES = libCouenne.la
18
19libCouenne_la_SOURCES = \
20        main/BonCouenneSetup.cpp \
21        main/BonCouenneInterface.cpp \
22        main/BonNlpHeuristic.cpp \
23        main/BonCouenneInfo.cpp \
24        main/BonInitHeuristic.cpp
25
26libCouenne_la_LIBADD = \
27        ./problem/libCouenneProblem.la \
28        ./readnl/libCouenneReadnl.la \
29        ./expression/libCouenneExpression.la \
30        ./branch/libCouenneBranch.la \
31        ./convex/libCouenneConvex.la \
32        ./util/libCouenneUtil.la \
33        ./standardize/libCouenneStandardize.la \
34        ./bound_tightening/libCouenneBoundTightening.la \
35        ./disjunctive/libCouenneDisjunctive.la \
36        ../../Bonmin/src/Interfaces/Ampl/BonAmplInterface.lo \
37        ../../Bonmin/src/Interfaces/Ampl/BonAmplTMINLP.lo \
38        ../../Bonmin/src/Interfaces/Ampl/sos_kludge.lo \
39        ../../Bonmin/src/Algorithms/Ampl/BonAmplSetup.lo \
40        $(IPOPTOBJDIR)/src/Apps/AmplSolver/libamplinterface.la
41
42libCouenne_la_DEPENDENCIES = $(libCouenne_la_LIBADD)
43
44# This is for libtool (on Windows)
45libCouenne_la_LDFLAGS = $(LT_LDFLAGS)
46
47########################################################################
48#                            Additional flags                          #
49########################################################################
50
51# Here list all include flags, relative to this "srcdir" directory.  This
52# "cygpath" stuff is necessary to compile with native compilers on Windows.
53AM_CPPFLAGS = \
54        -I`$(CYGPATH_W) $(BONMINOBJDIR)/inc` \
55        -I`$(CYGPATH_W) $(BONMINSRCDIR)/src/Algorithms` \
56        -I`$(CYGPATH_W) $(BONMINSRCDIR)/src/Algorithms/Branching` \
57        -I`$(CYGPATH_W) $(BONMINSRCDIR)/src/Algorithms/OaGenerators` \
58        -I`$(CYGPATH_W) $(BONMINSRCDIR)/src/Algorithms/Ampl` \
59        -I`$(CYGPATH_W) $(BONMINSRCDIR)/src/Interfaces` \
60        -I`$(CYGPATH_W) $(BONMINSRCDIR)/src/Interfaces/Ipopt` \
61        -I`$(CYGPATH_W) $(BONMINSRCDIR)/src/Interfaces/Ampl` \
62        -I`$(CYGPATH_W) $(BONMINSRCDIR)/src/CbcBonmin` \
63        -I`$(CYGPATH_W) $(IPOPTOBJDIR)/inc` \
64        -I`$(CYGPATH_W) $(IPOPTSRCDIR)/src/Common` \
65        -I`$(CYGPATH_W) $(IPOPTSRCDIR)/src/Interfaces` \
66        -I`$(CYGPATH_W) $(IPOPTSRCDIR)/src/LinAlg` \
67        -I`$(CYGPATH_W) $(IPOPTSRCDIR)/src/Apps/AmplSolver` \
68        -I`$(CYGPATH_W) $(OSISRCDIR)/src` \
69        -I`$(CYGPATH_W) $(CBCSRCDIR)/src` \
70        -I`$(CYGPATH_W) $(CBCOBJDIR)/inc` \
71        -I`$(CYGPATH_W) $(CBCSRCDIR)/examples` \
72        -I`$(CYGPATH_W) $(COINUTILSSRCDIR)/src` \
73        -I`$(CYGPATH_W) $(COINUTILSOBJDIR)/inc` \
74        -I`$(CYGPATH_W) $(CLPOBJDIR)/inc` \
75        -I`$(CYGPATH_W) $(CLPSRCDIR)/src` \
76        -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiClp` \
77        -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiCbc`\
78        -I`$(CYGPATH_W) $(CGLSRCDIR)/src` \
79        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglMixedIntegerRounding2` \
80        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglLandP` \
81        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglRedSplit` \
82        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglGomory` \
83        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglProbing` \
84        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglOddHole` \
85        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglClique` \
86        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglFlowCover` \
87        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglMixedIntegerRounding` \
88        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglTwomir` \
89        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglKnapsackCover` \
90        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglPreProcess`
91
92# If we have the Ampl solver library, we need to add additional things
93if COIN_HAS_ASL
94AM_CPPFLAGS += $(ASL_CPPFLAGS)
95endif
96
97if COIN_HAS_CPX
98  AM_CPPFLAGS += \
99        -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiCpx` \
100        -I`$(CYGPATH_W) $(CPXINCDIR)`
101endif
102
103AM_CPPFLAGS += $(ASL_CPPFLAGS)
104
105#if COIN_HAS_FILTERSQP
106#  AM_CPPFLAGS += -I`$(CYGPATH_W) $(BONMINSRCDIR)/src/Interfaces/Filter`
107#endif
108
109AM_CPPFLAGS += \
110        -I`$(CYGPATH_W) $(COUENNESRCDIR)/src/convex` \
111        -I`$(CYGPATH_W) $(COUENNESRCDIR)/src/expression` \
112        -I`$(CYGPATH_W) $(COUENNESRCDIR)/src/expression/operators` \
113        -I`$(CYGPATH_W) $(COUENNESRCDIR)/src/disjunctive` \
114        -I`$(CYGPATH_W) $(COUENNESRCDIR)/src/main` \
115        -I`$(CYGPATH_W) $(COUENNESRCDIR)/src/problem` \
116        -I`$(CYGPATH_W) $(COUENNESRCDIR)/src/branch`
117
118# This line is necessary to allow VPATH compilation with MS compilers
119# on Cygwin
120DEFAULT_INCLUDES = -I. -I`$(CYGPATH_W) $(srcdir)` -I$(top_builddir)/inc
121
122########################################################################
123#                Headers that need to be installed                     #
124########################################################################
125
126# Here list all the header files that are required by a user of the library,
127# and that therefore should be installed in 'install/coin'
128includecoindir = $(includedir)/coin
129includecoin_HEADERS = \
130        ../inc/config_couenne.h \
131        util/rootQ.hpp \
132        util/funtriplets.hpp \
133        main/BonCouenneInfo.hpp \
134        main/BonCouenneSetup.hpp \
135        main/BonCouenneInterface.hpp \
136        main/BonNlpHeuristic.hpp \
137        main/BonInitHeuristic.hpp \
138        branch/CouenneObject.hpp \
139        branch/CouenneVarObject.hpp \
140        branch/CouenneVTObject.hpp \
141        branch/CouenneThreeWayBranchObj.hpp \
142        branch/CouenneBranchingObject.hpp \
143        branch/CouenneChooseVariable.hpp \
144        branch/CouenneChooseStrong.hpp \
145        branch/CouenneComplObject.hpp \
146        branch/CouenneComplBranchingObject.hpp \
147        branch/CouenneSOSObject.hpp \
148        branch/projections.hpp \
149        standardize/lqelems.hpp \
150        expression/domain.hpp \
151        expression/operators/exprAbs.hpp \
152        expression/operators/exprExp.hpp \
153        expression/operators/exprInv.hpp \
154        expression/operators/exprMul.hpp \
155        expression/operators/exprOpp.hpp \
156        expression/operators/exprLog.hpp \
157        expression/operators/exprDiv.hpp \
158        expression/operators/exprMin.hpp \
159        expression/operators/exprSum.hpp \
160        expression/operators/exprMax.hpp \
161        expression/operators/exprPow.hpp \
162        expression/operators/exprSin.hpp \
163        expression/operators/exprCos.hpp \
164        expression/operators/exprSub.hpp \
165        expression/operators/exprGroup.hpp \
166        expression/operators/exprQuad.hpp \
167        expression/operators/exprIf.hpp \
168        expression/operators/exprNorm.hpp \
169        expression/operators/exprPWLinear.hpp \
170        expression/operators/bounds/exprBMul.hpp \
171        expression/operators/bounds/exprBDiv.hpp \
172        expression/operators/bounds/exprBSin.hpp \
173        expression/operators/bounds/exprBCos.hpp \
174        expression/exprConst.hpp \
175        expression/exprIVar.hpp \
176        expression/exprVar.hpp \
177        expression/exprAux.hpp \
178        expression/exprUnary.hpp \
179        expression/expression.hpp \
180        expression/exprClone.hpp \
181        expression/exprBound.hpp \
182        expression/exprCopy.hpp \
183        expression/exprStore.hpp \
184        expression/exprOp.hpp \
185        expression/CouennePrecisions.hpp \
186        problem/depGraph/depGraph.hpp \
187        problem/CouenneProblemElem.hpp \
188        problem/CouenneProblem.hpp \
189        problem/CouenneSolverInterface.hpp \
190        problem/CouenneJournalist.hpp \
191        expression/CouenneTypes.hpp \
192        disjunctive/CouenneDisjCuts.hpp \
193        convex/CouenneCutGenerator.hpp
194
195#############################################################################
196# Create the Config.h file that always defines HAVE_CONFIG_H and install it #
197#############################################################################
198
199# You only need to adapt the following line
200ConfigHeader = CouenneConfig.h
201
202if COIN_HAS_ASL
203install-asl:
204        $(install_sh_DATA) ../../ThirdParty/ASL/amplsolv* $(DESTDIR)$(libdir)
205else
206install-asl:
207
208endif
209
210install-exec-local: install-asl
211        echo "#ifndef HAVE_CONFIG_H" >bla
212        echo "#define HAVE_CONFIG_H" >>bla
213        echo "#endif" >> bla
214        cat $(srcdir)/$(ConfigHeader) >> bla
215        $(install_sh_DATA) bla $(DESTDIR)$(includecoindir)/$(ConfigHeader)
216        rm -f bla
217
218uninstall-local:
219        rm -f $(DESTDIR)$(includecoindir)/$(ConfigHeader)
Note: See TracBrowser for help on using the repository browser.