source: branches/devel/Bonmin/src/Apps/Makefile.am @ 40

Last change on this file since 40 was 40, checked in by pbonami, 13 years ago

Update Makefile

  • Property svn:eol-style set to native
  • Property svn:keywords set to Authors Date Id Revision
File size: 4.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 40 2006-09-13 22:53:32Z pbonami $
6
7# Author:  Andreas Waechter           IBM    2006-04-13
8
9AUTOMAKE_OPTIONS = foreign
10
11# What is done in this directory:
12
13bin_PROGRAMS = bonmin nodeSolver
14
15
16lib_LTLIBRARIES = libbonmin.la
17
18########################################################################
19#                          bonmin library                              #
20########################################################################
21
22libbonmin_la_SOURCES =
23
24nodist_libbonmin_la_SOURCES = CbcCompareUser.cpp CbcBranchUser.cpp
25
26libbonmin_la_LIBADD = \
27        ../CbcBonmin/libbonminbb.la \
28        ../OaInterface/liboainterface.la \
29        ../IpoptInterface/libipoptinterface.la
30
31libbonmin_la_LDFLAGS = $(LT_LDFLAGS)
32
33COINLIBS = \
34        $(CBCOBJDIR)/src/libCbc.la \
35        $(CGLOBJDIR)/src/libCgl.la \
36        $(OSIOBJDIR)/src/OsiClp/libOsiClp.la \
37        $(OSIOBJDIR)/src/libOsi.la \
38        $(CLPOBJDIR)/src/libClp.la \
39        $(COINUTILSOBJDIR)/src/libCoinUtils.la
40
41if COIN_HAS_CPX
42  COINLIBS += \
43        $(OSIOBJDIR)/src/OsiCpx/libOsiCpx.la \
44        $(COINUTILSOBJDIR)/src/libCoinUtils.la \
45        $(CPXLIB)
46endif
47
48IPOPTLIBS = \
49        $(IPOPTOBJDIR)/src/Interfaces/libipopt.la
50
51LIBS += `cat $(IPOPTOBJDIR)/src/Interfaces/ipopt_addlibs_cpp.txt`
52
53########################################################################
54#                                bonmin                                #
55########################################################################
56
57bonmin_SOURCES = bonmin.cpp
58
59bonmin_LDADD = \
60        libbonmin.la \
61        ../BonminAmplInterface/libamplinterface.la\
62        $(IPOPTOBJDIR)/src/Apps/AmplSolver/libamplinterface.la \
63        $(IPOPTLIBS) \
64        $(ASLLIB) \
65        $(LIBCBCCOPY) \
66        $(COINLIBS) \
67        $(ADDLIBS)
68
69# Finally, the -rpath flag is used by libtool to make sure that the shared
70# library is found (in the lib install directory) when we are using dynamic
71# libraries.
72bonmin_LDFLAGS = -rpath $(libdir)
73
74# Here list all include flags, relative to this "srcdir" directory.  This
75# "cygpath" stuff is necessary to compile with native compilers on Windows
76AM_CPPFLAGS = \
77        -I`$(CYGPATH_W) $(srcdir)/../OaInterface` \
78        -I`$(CYGPATH_W) $(srcdir)/../IpoptInterface` \
79        -I`$(CYGPATH_W) $(srcdir)/../BonminAmplInterface` \
80        -I`$(CYGPATH_W) $(srcdir)/../CbcBonmin` \
81        -I`$(CYGPATH_W) $(IPOPTOBJDIR)/inc` \
82        -I`$(CYGPATH_W) $(IPOPTSRCDIR)/src/Common` \
83        -I`$(CYGPATH_W) $(IPOPTSRCDIR)/src/Interfaces` \
84        -I`$(CYGPATH_W) $(IPOPTSRCDIR)/src/LinAlg` \
85        -I`$(CYGPATH_W) $(COINUTILSSRCDIR)/src` \
86        -I`$(CYGPATH_W) $(COINUTILSOBJDIR)/inc` \
87        -I`$(CYGPATH_W) $(OSISRCDIR)/src` \
88        -I`$(CYGPATH_W) $(CBCSRCDIR)/src` \
89        -I`$(CYGPATH_W) $(CBCSRCDIR)/examples`
90
91if COIN_HAS_CPX
92  AM_CPPFLAGS += \
93        -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiCpx` \
94        -I`$(CYGPATH_W) $(CPXINCDIR)`
95endif
96
97# This line is necessary to allow VPATH compilation with MS compilers
98# on Cygwin
99DEFAULT_INCLUDES = -I. -I`$(CYGPATH_W) $(srcdir)` -I$(top_builddir)/inc
100
101# The following is a trick to get the source code of Cbc/Samples correctly in
102# here, and also to get a link to libCbc into this directory (so that it
103# is made)
104CbcCompareUser.cpp: $(CBCSRCDIR)/examples/CbcCompareUser.cpp
105        rm -f $@
106        $(LN_S) $? $@
107
108CbcBranchUser.cpp: $(CBCSRCDIR)/examples//CbcBranchUser.cpp
109        rm -f $@
110        $(LN_S) $? $@
111
112########################################################################
113#                              nodeSolver                              #
114########################################################################
115
116nodeSolver_SOURCES = nodeSolver.cpp
117
118nodeSolver_LDADD = \
119        libbonmin.la \
120        ../BonminAmplInterface/libamplinterface.la \
121        $(IPOPTOBJDIR)/src/Apps/AmplSolver/libamplinterface.la \
122        $(IPOPTLIBS) \
123        $(ASLLIB) \
124        $(LIBCBCCOPY) \
125        $(COINLIBS)
126
127# Finally, the -rpath flag is used by libtool to make sure that the shared
128# library is found (in the lib install directory) when we are using dynamic
129# libraries.
130nodeSolver_LDFLAGS = -rpath $(libdir)
131
132
133########################################################################
134#                         make distclean stuff                         #
135########################################################################
136
137CLEANFILES = $(LIBCBCCOPY)
138
139DISTCLEANFILES = \
140        CbcCompareUser.cpp CbcBranchUser.cpp
141
Note: See TracBrowser for help on using the repository browser.