source: trunk/Bonmin/experimental/FP/Makefile.am @ 1

Last change on this file since 1 was 1, checked in by andreasw, 13 years ago

imported initial code

  • Property svn:eol-style set to native
  • Property svn:keywords set to Authors Date Id Revision
File size: 3.7 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 1 2006-07-11 14:59:53Z andreasw $
6
7# Author:  Andreas Waechter           IBM    2006-04-13
8
9AUTOMAKE_OPTIONS = foreign
10
11# What is done in this directory:
12
13
14if COIN_HAS_CPX
15  bin_PROGRAMS = oa_fp
16endif
17
18
19COINLIBS = \
20        $(CBCOBJDIR)/src/libCbc.la \
21        $(CGLOBJDIR)/src/libCgl.la \
22        $(OSIOBJDIR)/src/OsiClp/libOsiClp.la \
23        $(OSIOBJDIR)/src/libOsi.la \
24        $(CLPOBJDIR)/src/libClp.la \
25        $(COINUTILSOBJDIR)/src/libCoinUtils.la
26
27if COIN_HAS_CPX
28  COINLIBS += \
29        $(OSIOBJDIR)/src/OsiCpx/libOsiCpx.la \
30        $(COINUTILSOBJDIR)/src/libCoinUtils.la \
31        $(CPXLIB)
32endif
33
34IPOPTLIBS = \
35        $(IPOPTOBJDIR)/src/Interfaces/libipopt.la
36
37LIBS += `cat $(IPOPTOBJDIR)/src/Interfaces/ipopt_addlibs_cpp.txt`
38
39
40# Here list all include flags, relative to this "srcdir" directory.  This
41# "cygpath" stuff is necessary to compile with native compilers on Windows
42AM_CPPFLAGS = \
43        -I`$(CYGPATH_W) $(srcdir)/../../src/OaInterface` \
44        -I`$(CYGPATH_W) $(srcdir)/../../src/IpoptInterface` \
45        -I`$(CYGPATH_W) $(srcdir)/../../src/BonminAmplInterface` \
46        -I`$(CYGPATH_W) $(srcdir)/../../src/CbcBonmin` \
47        -I`$(CYGPATH_W) $(IPOPTOBJDIR)/inc` \
48        -I`$(CYGPATH_W) $(IPOPTSRCDIR)/src/Common` \
49        -I`$(CYGPATH_W) $(IPOPTSRCDIR)/src/Interfaces` \
50        -I`$(CYGPATH_W) $(IPOPTSRCDIR)/src/LinAlg` \
51        -I`$(CYGPATH_W) $(IPOPTSRCDIR)/src/Apps/AmplSolver` \
52        -I`$(CYGPATH_W) $(OSISRCDIR)/src` \
53        -I`$(CYGPATH_W) $(CBCSRCDIR)/src` \
54        -I`$(CYGPATH_W) $(CBCSRCDIR)/examples` \
55        -I`$(CYGPATH_W) $(COINUTILSSRCDIR)/src` \
56        -I`$(CYGPATH_W) $(COINUTILSOBJDIR)/inc` \
57        -I`$(CYGPATH_W) $(CLPOBJDIR)/inc` \
58        -I`$(CYGPATH_W) $(CLPSRCDIR)/src` \
59        -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiClp` \
60        -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiCbc`\
61        -I`$(CYGPATH_W) $(CGLSRCDIR)/src` \
62        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglGomory` \
63        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglProbing` \
64        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglOddHole` \
65        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglClique` \
66        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglFlowCover` \
67        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglMixedIntegerRounding` \
68        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglTwomir` \
69        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglKnapsackCover` \
70        -I`$(CYGPATH_W) $(CGLSRCDIR)/src/CglPreProcess` \
71        -I`$(CYGPATH_W) $(CGLSRCDIR)/src`
72
73if COIN_HAS_CPX
74  AM_CPPFLAGS += \
75        -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiCpx` \
76        -I`$(CYGPATH_W) $(CPXINCDIR)`
77endif
78
79# The following is a trick to get the source code of Cbc/Samples correctly in
80# here, and also to get a link to libCbc into this directory (so that it
81# is made)
82CbcCompareUser.cpp: $(CBCSRCDIR)/examples/CbcCompareUser.cpp
83        rm -f $@
84        $(LN_S) $< $@
85
86CbcBranchUser.cpp: $(CBCSRCDIR)/examples//CbcBranchUser.cpp
87        rm -f $@
88        $(LN_S) $< $@
89
90########################################################################
91#                                 oa_fp                                #
92########################################################################
93
94oa_fp_SOURCES = OAFeasibilityPump.cpp FP.cpp FP.hpp
95
96oa_fp_LDADD = \
97        ../../src/Apps/libbonmin.la \
98        ../../src/BonminAmplInterface/libamplinterface.la\
99        $(IPOPTOBJDIR)/src/Apps/AmplSolver/libamplinterface.la \
100        $(IPOPTLIBS) \
101        $(ASLLIB) \
102        $(LIBCBCCOPY) \
103        $(COINLIBS)
104
105
106# Finally, the -rpath flag is used by libtool to make sure that the shared
107# library is found (in the lib install directory) when we are using dynamic
108# libraries.
109oa_fp_LDFLAGS = -rpath $(libdir)
110
111########################################################################
112#                         make distclean stuff                         #
113########################################################################
114
115CLEANFILES = $(LIBCBCCOPY)
116
117DISTCLEANFILES = \
118        CbcCompareUser.cpp CbcBranchUser.cpp
119
Note: See TracBrowser for help on using the repository browser.