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

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