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

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

fixed dynamic_cast on wrong pointer, and made all other dynamic_cast's safe. Included readnl.cpp in Couenne executable to make it build in debug as well.

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