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

Last change on this file since 94 was 94, checked in by stefan, 11 years ago

try to reorder libraries to resolve dependencies... but fail (still broken with debug)

File size: 5.2 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        ./readnl/libCouenneReadnl.la \
24        ./expression/libCouenneExpression.la \
25        ./branch/libCouenneBranch.la \
26        ./convex/libCouenneConvex.la \
27        ./util/libCouenneUtil.la \
28        ./standardize/libCouenneStandardize.la \
29        ./bound_tightening/libCouenneBoundTightening.la \
30        ./disjunctive/libCouenneDisjunctive.la \
31        ../../Bonmin/src/Interfaces/Ampl/BonAmplInterface.lo \
32        ../../Bonmin/src/Interfaces/Ampl/BonAmplTMINLP.lo \
33        ../../Bonmin/src/Interfaces/Ampl/sos_kludge.lo \
34        ../../Bonmin/src/Algorithms/Ampl/BonAmplSetup.lo \
35        $(IPOPTOBJDIR)/src/Apps/AmplSolver/libamplinterface.la
36
37libCouenne_la_DEPENDENCIES = $(libCouenne_la_LIBADD)
38
39# This is for libtool (on Windows)
40libCouenne_la_LDFLAGS = $(LT_LDFLAGS)
41
42########################################################################
43#                            Additional flags                          #
44########################################################################
45
46# Here list all include flags, relative to this "srcdir" directory.  This
47# "cygpath" stuff is necessary to compile with native compilers on Windows.
48AM_CPPFLAGS =
49
50# If we have the Ampl solver library, we need to add additional things
51if COIN_HAS_ASL
52AM_CPPFLAGS += $(ASL_CPPFLAGS)
53endif
54
55# This line is necessary to allow VPATH compilation with MS compilers
56# on Cygwin
57DEFAULT_INCLUDES = -I. -I`$(CYGPATH_W) $(srcdir)` -I$(top_builddir)/inc
58
59########################################################################
60#                Headers that need to be installed                     #
61########################################################################
62
63# Here list all the header files that are required by a user of the library,
64# and that therefore should be installed in 'install/coin'
65includecoindir = $(includedir)/coin
66includecoin_HEADERS = \
67        ../inc/config_couenne.h \
68        util/rootQ.hpp \
69        util/funtriplets.hpp \
70        main/BonCouenneInfo.hpp \
71        main/BonCouenneSetup.hpp \
72        main/BonCouenneInterface.hpp \
73        main/BonNlpHeuristic.hpp \
74        main/BonInitHeuristic.hpp \
75        branch/CouenneObject.hpp \
76        branch/CouenneVarObject.hpp \
77        branch/CouenneVTObject.hpp \
78        branch/CouenneThreeWayBranchObj.hpp \
79        branch/CouenneBranchingObject.hpp \
80        branch/CouenneChooseVariable.hpp \
81        branch/CouenneChooseStrong.hpp \
82        branch/CouenneComplObject.hpp \
83        branch/CouenneComplBranchingObject.hpp \
84        branch/CouenneSOSObject.hpp \
85        branch/projections.hpp \
86        standardize/lqelems.hpp \
87        expression/domain.hpp \
88        expression/operators/exprAbs.hpp \
89        expression/operators/exprExp.hpp \
90        expression/operators/exprInv.hpp \
91        expression/operators/exprMul.hpp \
92        expression/operators/exprOpp.hpp \
93        expression/operators/exprLog.hpp \
94        expression/operators/exprDiv.hpp \
95        expression/operators/exprMin.hpp \
96        expression/operators/exprSum.hpp \
97        expression/operators/exprMax.hpp \
98        expression/operators/exprPow.hpp \
99        expression/operators/exprSin.hpp \
100        expression/operators/exprCos.hpp \
101        expression/operators/exprSub.hpp \
102        expression/operators/exprGroup.hpp \
103        expression/operators/exprQuad.hpp \
104        expression/operators/exprIf.hpp \
105        expression/operators/exprNorm.hpp \
106        expression/operators/exprPWLinear.hpp \
107        expression/operators/bounds/exprBMul.hpp \
108        expression/operators/bounds/exprBDiv.hpp \
109        expression/operators/bounds/exprBSin.hpp \
110        expression/operators/bounds/exprBCos.hpp \
111        expression/exprConst.hpp \
112        expression/exprIVar.hpp \
113        expression/exprVar.hpp \
114        expression/exprAux.hpp \
115        expression/exprUnary.hpp \
116        expression/expression.hpp \
117        expression/exprClone.hpp \
118        expression/exprBound.hpp \
119        expression/exprCopy.hpp \
120        expression/exprStore.hpp \
121        expression/exprOp.hpp \
122        expression/CouennePrecisions.hpp \
123        problem/depGraph/depGraph.hpp \
124        problem/CouenneProblemElem.hpp \
125        problem/CouenneProblem.hpp \
126        problem/CouenneSolverInterface.hpp \
127        problem/CouenneJournalist.hpp \
128        expression/CouenneTypes.hpp \
129        disjunctive/CouenneDisjCuts.hpp \
130        convex/CouenneCutGenerator.hpp
131
132#############################################################################
133# Create the Config.h file that always defines HAVE_CONFIG_H and install it #
134#############################################################################
135
136# You only need to adapt the following line
137ConfigHeader = CouenneConfig.h
138
139if COIN_HAS_ASL
140install-asl:
141        $(install_sh_DATA) ../../ThirdParty/ASL/amplsolv* $(DESTDIR)$(libdir)
142else
143install-asl:
144
145endif
146
147install-exec-local: install-asl
148        echo "#ifndef HAVE_CONFIG_H" >bla
149        echo "#define HAVE_CONFIG_H" >>bla
150        echo "#endif" >> bla
151        cat $(srcdir)/$(ConfigHeader) >> bla
152        $(install_sh_DATA) bla $(DESTDIR)$(includecoindir)/$(ConfigHeader)
153        rm -f bla
154
155uninstall-local:
156        rm -f $(DESTDIR)$(includecoindir)/$(ConfigHeader)
Note: See TracBrowser for help on using the repository browser.