source: trunk/Couenne/src/main/Makefile.am @ 191

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

fixed some zero down/up estimate setting. A little speedup in CouenneProblem::tightenBounds(). Added specific check for stdint.h in configure.ac. added libbonbranching as explicit dependence.

File size: 4.6 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 105 2006-11-03 19:31:19Z pbonami $
6
7# Author: Pietro Belotti, on a template by Pierre Bonami
8
9AUTOMAKE_OPTIONS = foreign
10
11# what is built at this level
12
13if COIN_HAS_ASL
14  bin_PROGRAMS = couenne
15endif
16
17lib_LTLIBRARIES = libBonCouenne.la
18
19libBonCouenne_la_SOURCES = \
20        BonCouenneSetup.cpp \
21        BonCouenneInterface.cpp \
22        BonNlpHeuristic.cpp \
23        BonInitHeuristic.cpp \
24        CouenneOSInterface.cpp
25
26COINLIBS = \
27        $(CBCOBJDIR)/src/libCbc.la \
28        $(CGLOBJDIR)/src/libCgl.la \
29        $(OSIOBJDIR)/src/OsiClp/libOsiClp.la \
30        $(BONMINOBJDIR)/src/CbcBonmin/libbonmin.la \
31        $(BONMINOBJDIR)/src/Algorithms/Branching/libbonbranching.la \
32        $(BONMINOBJDIR)/src/Interfaces/libbonmininterfaces.la \
33        $(IPOPTOBJDIR)/src/Interfaces/libipopt.la \
34        $(IPOPTOBJDIR)/src/LinAlg/liblinalg.la
35
36if COIN_HAS_CPX
37     COINLIBS += $(OSIOBJDIR)/src/OsiCpx/libOsiCpx.la
38endif
39
40COINLIBS += \
41     $(OSIOBJDIR)/src/libOsi.la \
42     $(CLPOBJDIR)/src/libClp.la \
43     $(COINUTILSOBJDIR)/src/libCoinUtils.la
44
45IPOPTLIBS = \
46        $(IPOPTOBJDIR)/src/Interfaces/libipopt.la \
47        $(IPOPTOBJDIR)/src/LinAlg/liblinalg.la
48
49couenne_LDADD        = \
50        libBonCouenne.la \
51        ../readnl/libCouenneReadnl.la \
52        ../libCouenne.la
53
54couenne_DEPENDENCIES = \
55        libBonCouenne.la \
56        ../readnl/libCouenneReadnl.la \
57        ../libCouenne.la
58
59couenne_SOURCES = \
60        BonCouenne.cpp
61
62#       ../readnl/readnl.cpp
63
64couenne_LDADD += \
65        $(LIBCBCCOPY) \
66        $(COINLIBS) \
67        $(ADDLIBS) \
68        $(ASLLIB) \
69        `cat $(IPOPTOBJDIR)/src/Interfaces/ipopt_addlibs_cpp.txt` \
70        `cat $(COINUTILSOBJDIR)/coinutils_addlibs.txt`
71
72
73# Finally, the -rpath flag is used by libtool to make sure that the shared
74# library is found (in the lib install directory) when we are using dynamic
75# libraries.
76couenne_LDFLAGS = -rpath $(libdir)
77
78# Here list all include flags, relative to this "srcdir" directory.  This
79# "cygpath" stuff is necessary to compile with native compilers on Windows
80AM_CPPFLAGS = \
81        -I`$(CYGPATH_W) $(BONMINOBJDIR)/inc` \
82        -I`$(CYGPATH_W) $(BONMINSRCDIR)/src/Algorithms` \
83        -I`$(CYGPATH_W) $(BONMINSRCDIR)/src/Algorithms/Branching` \
84        -I`$(CYGPATH_W) $(BONMINSRCDIR)/src/Algorithms/OaGenerators` \
85        -I`$(CYGPATH_W) $(BONMINSRCDIR)/src/Algorithms/Ampl` \
86        -I`$(CYGPATH_W) $(BONMINSRCDIR)/src/Interfaces` \
87        -I`$(CYGPATH_W) $(BONMINSRCDIR)/src/Interfaces/Ipopt` \
88        -I`$(CYGPATH_W) $(BONMINSRCDIR)/src/Interfaces/Ampl` \
89        -I`$(CYGPATH_W) $(BONMINSRCDIR)/src/CbcBonmin` \
90        -I`$(CYGPATH_W) $(IPOPTOBJDIR)/inc` \
91        -I`$(CYGPATH_W) $(IPOPTSRCDIR)/src/Common` \
92        -I`$(CYGPATH_W) $(IPOPTSRCDIR)/src/Interfaces` \
93        -I`$(CYGPATH_W) $(IPOPTSRCDIR)/src/LinAlg` \
94        -I`$(CYGPATH_W) $(IPOPTSRCDIR)/src/Apps/AmplSolver` \
95        -I`$(CYGPATH_W) $(OSISRCDIR)/src` \
96        -I`$(CYGPATH_W) $(CBCSRCDIR)/src` \
97        -I`$(CYGPATH_W) $(CBCOBJDIR)/inc` \
98        -I`$(CYGPATH_W) $(CBCSRCDIR)/examples` \
99        -I`$(CYGPATH_W) $(COINUTILSSRCDIR)/src` \
100        -I`$(CYGPATH_W) $(COINUTILSOBJDIR)/inc` \
101        -I`$(CYGPATH_W) $(CLPOBJDIR)/inc` \
102        -I`$(CYGPATH_W) $(CLPSRCDIR)/src` \
103        -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiClp` \
104        -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiCbc`\
105        -I`$(CYGPATH_W) $(CGLSRCDIR)/src` \
106        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglMixedIntegerRounding2` \
107        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglLandP` \
108        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglRedSplit` \
109        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglGomory` \
110        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglProbing` \
111        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglOddHole` \
112        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglClique` \
113        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglFlowCover` \
114        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglMixedIntegerRounding` \
115        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglTwomir` \
116        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglKnapsackCover` \
117        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglPreProcess` \
118        -I`$(CYGPATH_W) $(CGLOBJDIR)/inc`
119
120if COIN_HAS_CPX
121  AM_CPPFLAGS += \
122        -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiCpx` \
123        -I`$(CYGPATH_W) $(CPXINCDIR)`
124endif
125
126AM_CPPFLAGS += $(ASL_CPPFLAGS)
127
128#if COIN_HAS_FILTERSQP
129#  AM_CPPFLAGS += -I`$(CYGPATH_W) $(BONMINSRCDIR)/src/Interfaces/Filter`
130#endif
131
132AM_CPPFLAGS += \
133        -I`$(CYGPATH_W) $(COUENNESRCDIR)/src/convex` \
134        -I`$(CYGPATH_W) $(COUENNESRCDIR)/src/expression` \
135        -I`$(CYGPATH_W) $(COUENNESRCDIR)/src/expression/operators` \
136        -I`$(CYGPATH_W) $(COUENNESRCDIR)/src/disjunctive` \
137        -I`$(CYGPATH_W) $(COUENNESRCDIR)/src/main` \
138        -I`$(CYGPATH_W) $(COUENNESRCDIR)/src/problem` \
139        -I`$(CYGPATH_W) $(COUENNESRCDIR)/src/branch`
140
141# This line is necessary to allow VPATH compilation with MS compilers
142# on Cygwin
143DEFAULT_INCLUDES = -I. -I`$(CYGPATH_W) $(srcdir)` -I$(top_builddir)/inc
Note: See TracBrowser for help on using the repository browser.