source: trunk/Bonmin/src/Apps/Makefile.am @ 1230

Last change on this file since 1230 was 1230, checked in by pbonami, 11 years ago

Revive node solver

  • Property svn:eol-style set to native
  • Property svn:keywords set to Authors Date Id Revision
File size: 4.0 KB
Line 
1# Copyright (C) 2006, 2007 International Business Machines and others.
2# All Rights Reserved.
3# This file is distributed under the Common Public License.
4
5## $Id: Makefile.am 1230 2008-07-07 20:25:52Z pbonami $
6
7# Author:  Andreas Waechter           IBM    2006-04-13
8
9AUTOMAKE_OPTIONS = foreign
10
11# What is done in this directory:
12
13if COIN_HAS_ASL
14  bin_PROGRAMS = bonmin
15  bin_PROGRAMS += BonNodeSolver
16endif
17
18
19COINLIBS = \
20        $(CBCOBJDIR)/src/libCbc.la \
21        $(CGLOBJDIR)/src/libCgl.la \
22        $(OSIOBJDIR)/src/OsiClp/libOsiClp.la
23
24if COIN_HAS_CPX
25  COINLIBS += \
26        $(OSIOBJDIR)/src/OsiCpx/libOsiCpx.la \
27        $(CPXLIB)
28endif
29
30
31COINLIBS += \
32        $(OSIOBJDIR)/src/libOsi.la \
33        $(CLPOBJDIR)/src/libClp.la \
34        $(COINUTILSOBJDIR)/src/libCoinUtils.la
35
36IPOPTLIBS = \
37        $(IPOPTOBJDIR)/src/Interfaces/libipopt.la
38
39LIBS += `cat $(IPOPTOBJDIR)/src/Interfaces/ipopt_addlibs_cpp.txt`
40LIBS += `cat $(COINUTILSOBJDIR)/coinutils_addlibs.txt`
41
42########################################################################
43#                                bonmin                                #
44########################################################################
45
46bonmin_SOURCES = BonMin.cpp
47
48bonmin_LDADD = \
49        ../CbcBonmin/libbonminampl.la \
50        ../CbcBonmin/libbonmin.la \
51        $(IPOPTOBJDIR)/src/Apps/AmplSolver/libamplinterface.la \
52        $(IPOPTLIBS) \
53        $(COINLIBS) \
54        $(ASLLIB) \
55        $(ADDLIBS)
56
57# Finally, the -rpath flag is used by libtool to make sure that the shared
58# library is found (in the lib install directory) when we are using dynamic
59# libraries.
60bonmin_LDFLAGS = -rpath $(libdir)
61
62# Here list all include flags, relative to this "srcdir" directory.  This
63# "cygpath" stuff is necessary to compile with native compilers on Windows
64AM_CPPFLAGS = \
65        -I`$(CYGPATH_W) $(srcdir)/../Algorithms` \
66        -I`$(CYGPATH_W) $(srcdir)/../Algorithms/Branching` \
67        -I`$(CYGPATH_W) $(srcdir)/../Algorithms/OaGenerators` \
68        -I`$(CYGPATH_W) $(srcdir)/../Algorithms/Ampl` \
69        -I`$(CYGPATH_W) $(srcdir)/../Interfaces` \
70        -I`$(CYGPATH_W) $(srcdir)/../Interfaces/Ipopt` \
71        -I`$(CYGPATH_W) $(srcdir)/../Interfaces/Ampl` \
72        -I`$(CYGPATH_W) $(srcdir)/../CbcBonmin` \
73        -I`$(CYGPATH_W) $(IPOPTOBJDIR)/inc` \
74        -I`$(CYGPATH_W) $(IPOPTSRCDIR)/src/contrib/CGPenalty` \
75        -I`$(CYGPATH_W) $(IPOPTSRCDIR)/src/Common` \
76        -I`$(CYGPATH_W) $(IPOPTSRCDIR)/src/Interfaces` \
77        -I`$(CYGPATH_W) $(IPOPTSRCDIR)/src/LinAlg` \
78        -I`$(CYGPATH_W) $(COINUTILSSRCDIR)/src` \
79        -I`$(CYGPATH_W) $(COINUTILSOBJDIR)/inc` \
80        -I`$(CYGPATH_W) $(OSISRCDIR)/src` \
81        -I`$(CYGPATH_W) $(CGLSRCDIR)/src` \
82        -I`$(CYGPATH_W) $(CBCSRCDIR)/src` \
83        -I`$(CYGPATH_W) $(CBCOBJDIR)/inc` \
84        -I`$(CYGPATH_W) $(CBCSRCDIR)/examples`
85
86if COIN_HAS_CPX
87  AM_CPPFLAGS += \
88        -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiCpx` \
89        -I`$(CYGPATH_W) $(CPXINCDIR)`
90endif
91
92# This line is necessary to allow VPATH compilation with MS compilers
93# on Cygwin
94DEFAULT_INCLUDES = -I. -I`$(CYGPATH_W) $(srcdir)` -I$(top_builddir)/inc
95
96########################################################################
97#                              nodeSolver                              #
98########################################################################
99
100 BonNodeSolver_SOURCES = BonNodeSolver.cpp
101 
102 BonNodeSolver_LDADD = \
103        ../CbcBonmin/libbonminampl.la \
104        ../CbcBonmin/libbonmin.la \
105        $(IPOPTOBJDIR)/src/Apps/AmplSolver/libamplinterface.la \
106        $(IPOPTLIBS) \
107        $(COINLIBS) \
108        $(ASLLIB) \
109        $(ADDLIBS)
110 
111 # Finally, the -rpath flag is used by libtool to make sure that the shared
112 # library is found (in the lib install directory) when we are using dynamic
113 # libraries.
114 BonNodeSolver_LDFLAGS = -rpath $(libdir)
115
116
117########################################################################
118#                            Astyle stuff                              #
119########################################################################
120
121# Here repeat all source files, with "bak" appended
122ASTYLE_FILES = \
123             BonMin.cpp \
124             BonNodeSolver.cpp
125
126CLEANFILES = $(ASTYLE_FILES)
127
128DISTCLEANFILES =
129
130SUFFIXES = .cppbak .hppbak
131
132astyle: $(ASTYLE_FILES)
133
134.hpp.hppbak:
135        mv $< $@
136        $(ASTYLE) $(ASTYLEFLAGS) < $@ > $<
137        touch $@
138
139.cpp.cppbak:
140        mv $< $@
141        $(ASTYLE) $(ASTYLEFLAGS) < $@ > $<
142        touch $@
Note: See TracBrowser for help on using the repository browser.