source: branches/Couenne/Couenne/src/Makefile.am @ 523

Last change on this file since 523 was 523, checked in by pbelotti, 13 years ago

keep coefficients low in powers with big coefficients

File size: 6.8 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#                               libCbc                                 #
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
19# List all source files for this library, including headers
20libCouenne_la_SOURCES = \
21        branch/CouenneBranchingObject.cpp \
22        branch/CouenneObject.cpp \
23        branch/CouenneChooseVariable.cpp \
24        branch/getFixVarBinFun.cpp \
25        expression/operators/exprAbs.cpp \
26        expression/operators/exprDiv.cpp \
27        expression/operators/exprExp.cpp \
28        expression/operators/exprInv.cpp \
29        expression/operators/exprLog.cpp \
30        expression/operators/exprMul.cpp \
31        expression/operators/exprOpp.cpp \
32        expression/operators/exprPow.cpp \
33        expression/operators/exprSin.cpp \
34        expression/operators/exprCos.cpp \
35        expression/operators/exprSub.cpp \
36        expression/operators/exprSum.cpp \
37        expression/operators/exprMinMax.cpp \
38        expression/operators/exprGroup.cpp \
39        expression/operators/impliedBounds-exprSum.cpp \
40        expression/operators/impliedBounds-exprDiv.cpp \
41        expression/operators/impliedBounds-exprMul.cpp \
42        expression/exprOp.cpp \
43        expression/exprUnary.cpp \
44        expression/exprVar.cpp \
45        expression/exprAux.cpp \
46        expression/expression.cpp \
47        simplify/simplifiers.cpp \
48        simplify/simplify.cpp \
49        convex/checkNLP.cpp \
50        convex/addEnvelope.cpp \
51        convex/createCuts.cpp \
52        convex/operators/conv-exprAbs.cpp \
53        convex/operators/conv-exprDiv.cpp \
54        convex/operators/conv-exprMul.cpp \
55        convex/operators/conv-exprMul-genCuts.cpp \
56        convex/operators/conv-exprOpp.cpp \
57        convex/operators/conv-exprPow.cpp \
58        convex/operators/conv-exprPow-getBounds.cpp \
59        convex/operators/conv-exprPow-envelope.cpp \
60        convex/operators/powNewton.cpp \
61        convex/operators/conv-exprSub.cpp \
62        convex/operators/conv-exprSum.cpp \
63        convex/operators/linearize.cpp \
64        convex/operators/conv-exprInv.cpp \
65        convex/operators/conv-exprSinCos.cpp \
66        convex/operators/conv-exprExp.cpp \
67        convex/operators/conv-exprLog.cpp \
68        convex/operators/conv-exprGroup.cpp \
69        convex/operators/trigNewton.cpp \
70        convex/CouenneCutGenerator.cpp \
71        convex/generateCuts.cpp \
72        convex/genColCuts.cpp \
73        problem/problem.cpp \
74        problem/problemIO.cpp \
75        problem/constraint.cpp \
76        problem/tightenBounds.cpp \
77        problem/impliedBounds.cpp \
78        problem/readASLfg.cpp \
79        util/drawCuts.cpp \
80        util/rootQ.c
81
82COINLIBS = \
83        $(OSIOBJDIR)/src/libOsi.la \
84        $(OSIOBJDIR)/src/OsiClp/libOsiClp.la \
85        $(CGLOBJDIR)/src/libCgl.la \
86        $(CLPOBJDIR)/src/libClp.la \
87        $(COINUTILSOBJDIR)/src/libCoinUtils.la
88
89# This is for libtool (on Windows)
90libCouenne_la_LDFLAGS = $(LT_LDFLAGS)
91
92# If we have the Ampl solver library, we need to add additional things
93if COIN_HAS_ASL
94libCouenne_la_SOURCES += readnl/readnl.cpp \
95                         readnl/nl2e.cpp \
96                         readnl/invmap.c
97endif
98
99########################################################################
100#                            Additional flags                          #
101########################################################################
102
103# Here list all include flags, relative to this "srcdir" directory.  This
104# "cygpath" stuff is necessary to compile with native compilers on Windows.
105AM_CPPFLAGS = -I`$(CYGPATH_W) $(COUENNESRCDIR)/src/include` \
106        -I`$(CYGPATH_W) $(COUENNESRCDIR)/src/include/operators` \
107        -I`$(CYGPATH_W) $(COUENNESRCDIR)/src/branch` \
108        -I`$(CYGPATH_W) $(OSISRCDIR)/src` \
109        -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiClp` \
110        -I`$(CYGPATH_W) $(OSIOBJDIR)/inc` \
111        -I`$(CYGPATH_W) $(CBCSRCDIR)/src` \
112        -I`$(CYGPATH_W) $(CBCSRCDIR)/inc` \
113        -I`$(CYGPATH_W) $(IPOPTSRCDIR)/src/Common` \
114        -I`$(CYGPATH_W) $(IPOPTSRCDIR)/src/LinAlg` \
115        -I`$(CYGPATH_W) $(IPOPTSRCDIR)/src/Interfaces` \
116        -I`$(CYGPATH_W) $(IPOPTOBJDIR)/inc` \
117        -I`$(CYGPATH_W) $(CGLSRCDIR)/src` \
118        -I`$(CYGPATH_W) $(CGLOBJDIR)/inc` \
119        -I`$(CYGPATH_W) $(CLPSRCDIR)/src` \
120        -I`$(CYGPATH_W) $(CLPOBJDIR)/inc` \
121        -I`$(CYGPATH_W) $(BONMINSRCDIR)/src/Algorithms` \
122        -I`$(CYGPATH_W) $(BONMINSRCDIR)/src/Algorithms/OaGenerators` \
123        -I`$(CYGPATH_W) $(BONMINSRCDIR)/src/Algorithms/Branching` \
124        -I`$(CYGPATH_W) $(BONMINSRCDIR)/src/Interfaces` \
125        -I`$(CYGPATH_W) $(BONMINSRCDIR)/src/CbcBonmin` \
126        -I`$(CYGPATH_W) $(objdir)/inc` \
127        -I`$(CYGPATH_W) $(COINUTILSSRCDIR)/src` \
128        -I`$(CYGPATH_W) $(COINUTILSOBJDIR)/inc`
129
130# If we have the Ampl solver library, we need to add additional things
131if COIN_HAS_ASL
132AM_CPPFLAGS += $(ASL_CPPFLAGS)
133endif
134
135# This line is necessary to allow VPATH compilation with MS compilers
136# on Cygwin
137DEFAULT_INCLUDES = -I. -I`$(CYGPATH_W) $(srcdir)` -I$(top_builddir)/inc
138
139########################################################################
140#                Headers that need to be installed                     #
141########################################################################
142
143# Here list all the header files that are required by a user of the library,
144# and that therefore should be installed in 'install'
145include_HEADERS = \
146        ../inc/config_couenne.h \
147        branch/CouenneObject.hpp \
148        branch/CouenneBranchingObject.hpp \
149        branch/CouenneChooseVariable.hpp \
150        include/operators/exprAbs.h \
151        include/operators/exprExp.h \
152        include/operators/exprInv.h \
153        include/operators/exprMul.h \
154        include/operators/exprOpp.h \
155        include/operators/exprBMul.h \
156        include/operators/exprLog.h \
157        include/operators/exprDiv.h \
158        include/operators/exprMin.h \
159        include/operators/exprBDiv.h \
160        include/operators/exprSum.h \
161        include/operators/exprMax.h \
162        include/operators/exprPow.h \
163        include/operators/exprSin.h \
164        include/operators/exprCos.h \
165        include/operators/exprBSin.h \
166        include/operators/exprBCos.h \
167        include/operators/exprSub.h \
168        include/operators/exprGroup.h \
169        include/exprConst.h \
170        include/exprIVar.h \
171        include/exprVar.h \
172        include/exprAux.h \
173        include/exprUnary.h \
174        include/expression.h \
175        include/exprClone.h \
176        include/exprBound.h \
177        include/exprCopy.h \
178        include/exprOp.h \
179        include/CouennePrecisions.h \
180        include/CouenneProblemElem.h \
181        include/CouenneProblem.h \
182        include/CouenneTypes.h \
183        include/rootQ.h \
184        include/CouenneCutGenerator.h
185
186#############################################################################
187# Create the Config.h file that always defines HAVE_CONFIG_H and install it #
188#############################################################################
189
190# You only need to adapt the following line
191ConfigHeader = CouenneConfig.h
192
193install-exec-local:
194        echo "#ifndef HAVE_CONFIG_H" >bla
195        echo "#define HAVE_CONFIG_H" >>bla
196        echo "#endif" >> bla
197        cat $(srcdir)/$(ConfigHeader) >> bla
198        $(install_sh_DATA) bla $(DESTDIR)$(includedir)/$(ConfigHeader)
199        rm -f bla
200
201uninstall-local:
202        rm -f $(DESTDIR)$(includedir)/$(ConfigHeader)
Note: See TracBrowser for help on using the repository browser.