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

Last change on this file since 1664 was 1664, checked in by pbonami, 10 years ago

Merge with 1.3

  • Property svn:eol-style set to native
  • Property svn:keywords set to Authors Date Id Revision
File size: 4.1 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 1664 2010-05-19 11:10:16Z 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) $(CLPSRCDIR)/src` \
84        -I`$(CYGPATH_W) $(CBCOBJDIR)/inc` \
85        -I`$(CYGPATH_W) $(CBCSRCDIR)/examples`
86
87if COIN_HAS_CPX
88  AM_CPPFLAGS += \
89        -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiCpx` \
90        -I`$(CYGPATH_W) $(CPXINCDIR)`
91endif
92
93# This line is necessary to allow VPATH compilation with MS compilers
94# on Cygwin
95DEFAULT_INCLUDES = -I. -I`$(CYGPATH_W) $(srcdir)` -I$(top_builddir)/inc
96
97########################################################################
98#                              nodeSolver                              #
99########################################################################
100
101 BonNodeSolver_SOURCES = BonNodeSolver.cpp
102 
103 BonNodeSolver_LDADD = \
104        ../CbcBonmin/libbonminampl.la \
105        ../CbcBonmin/libbonmin.la \
106        $(IPOPTOBJDIR)/src/Apps/AmplSolver/libamplinterface.la \
107        $(IPOPTLIBS) \
108        $(COINLIBS) \
109        $(ASLLIB) \
110        $(ADDLIBS)
111 
112 # Finally, the -rpath flag is used by libtool to make sure that the shared
113 # library is found (in the lib install directory) when we are using dynamic
114 # libraries.
115 BonNodeSolver_LDFLAGS = -rpath $(libdir)
116
117
118########################################################################
119#                            Astyle stuff                              #
120########################################################################
121
122# Here repeat all source files, with "bak" appended
123ASTYLE_FILES = \
124             BonMin.cppbak \
125             BonNodeSolver.cppbak
126
127CLEANFILES = $(ASTYLE_FILES)
128
129DISTCLEANFILES =
130
131SUFFIXES = .cppbak .hppbak
132
133astyle: $(ASTYLE_FILES)
134
135.hpp.hppbak:
136        mv $< $@
137        $(ASTYLE) $(ASTYLEFLAGS) < $@ > $<
138        touch $@
139
140.cpp.cppbak:
141        mv $< $@
142        $(ASTYLE) $(ASTYLEFLAGS) < $@ > $<
143        touch $@
Note: See TracBrowser for help on using the repository browser.