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

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

auxiliary variables have now an independent copy in CouenneProblem?; packed conv-expr{Sin,Cos}.cpp

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