| 1 |
# Copyright (C) 2006, 2007 International Business Machines and others. |
| 2 |
# All Rights Reserved. |
| 3 |
# This file is distributed under the Eclipse Public License. |
| 4 |
|
| 5 |
## $Id: Makefile.am 433 2007-03-28 05:01:22Z andreasw $ |
| 6 |
|
| 7 |
# Author: Andreas Waechter IBM 2006-04-13 |
| 8 |
|
| 9 |
AUTOMAKE_OPTIONS = foreign |
| 10 |
|
| 11 |
# Name of the library in this directory |
| 12 |
noinst_LTLIBRARIES = libbonbranching.la |
| 13 |
|
| 14 |
######################################################################## |
| 15 |
# bonmin library # |
| 16 |
######################################################################## |
| 17 |
|
| 18 |
# List all source files, including headers |
| 19 |
libbonbranching_la_SOURCES = \ |
| 20 |
BonChooseVariable.cpp BonChooseVariable.hpp \ |
| 21 |
BonRandomChoice.cpp BonRandomChoice.hpp \ |
| 22 |
BonPseudoCosts.cpp BonPseudoCosts.hpp \ |
| 23 |
BonLpBranchingSolver.cpp BonLpBranchingSolver.hpp \ |
| 24 |
BonQpBranchingSolver.cpp BonQpBranchingSolver.hpp |
| 25 |
|
| 26 |
# This is for libtool |
| 27 |
libbonbranching_la_LDFLAGS = $(LT_LDFLAGS) |
| 28 |
|
| 29 |
# Here list all include flags, relative to this "srcdir" directory. This |
| 30 |
# "cygpath" stuff is necessary to compile with native compilers on Windows |
| 31 |
AM_CPPFLAGS = \ |
| 32 |
-I`$(CYGPATH_W) $(srcdir)/../OaGenerators` \ |
| 33 |
-I`$(CYGPATH_W) $(srcdir)/..` \ |
| 34 |
-I`$(CYGPATH_W) $(srcdir)/../../CbcBonmin` \ |
| 35 |
-I`$(CYGPATH_W) $(srcdir)/../../Interfaces` \ |
| 36 |
-I`$(CYGPATH_W) $(srcdir)/../../Interfaces/Ipopt` \ |
| 37 |
-I`$(CYGPATH_W) $(srcdir)/../../Interfaces/Filter` \ |
| 38 |
$(BONMINLIB_CFLAGS) |
| 39 |
|
| 40 |
# Currently, the following has to be included for BonChooseVariable.hpp, but |
| 41 |
# we should try to unmangle the connection to Cbc |
| 42 |
|
| 43 |
#AM_CPPFLAGS += -I`$(CYGPATH_W) $(srcdir)/../../CbcBonmin` |
| 44 |
|
| 45 |
# This line is necessary to allow VPATH compilation |
| 46 |
DEFAULT_INCLUDES = -I. -I`$(CYGPATH_W) $(srcdir)` -I$(top_builddir)/src/Interfaces |
| 47 |
|
| 48 |
|
| 49 |
######################################################################## |
| 50 |
# Headers that need to be installed # |
| 51 |
######################################################################## |
| 52 |
|
| 53 |
# Here list all the header files that are required by a user of the library, |
| 54 |
# and that therefore should be installed in 'include/coin' |
| 55 |
includecoindir = $(includedir)/coin |
| 56 |
includecoin_HEADERS = \ |
| 57 |
BonChooseVariable.hpp \ |
| 58 |
BonPseudoCosts.hpp \ |
| 59 |
BonCurvBranchingSolver.hpp \ |
| 60 |
BonLpBranchingSolver.hpp |
| 61 |
|
| 62 |
######################################################################## |
| 63 |
# Astyle stuff # |
| 64 |
######################################################################## |
| 65 |
|
| 66 |
# Here repeat all source files, with "bak" appended |
| 67 |
ASTYLE_FILES = \ |
| 68 |
BonChooseVariable.cppbak BonChooseVariable.hppbak \ |
| 69 |
BonPseudoCosts.cppbak BonPseudoCosts.hppbak \ |
| 70 |
BonQpBranchingSolver.cppbak BonQpBranchingSolver.hppbak \ |
| 71 |
BonCurvBranchingSolver.cppbak BonCurvBranchingSolver.hppbak \ |
| 72 |
BonLpBranchingSolver.hppbak BonLpBranchingSolver.cppbak |
| 73 |
|
| 74 |
ASTYLE = @ASTYLE@ |
| 75 |
ASTYLEFLAGS = @ASTYLEFLAGS@ |
| 76 |
|
| 77 |
CLEANFILES = $(ASTYLE_FILES) |
| 78 |
|
| 79 |
SUFFIXES = .cppbak .hppbak |
| 80 |
|
| 81 |
astyle: $(ASTYLE_FILES) |
| 82 |
|
| 83 |
.hpp.hppbak: |
| 84 |
mv $< $@ |
| 85 |
$(ASTYLE) $(ASTYLEFLAGS) < $@ > $< |
| 86 |
touch $@ |
| 87 |
|
| 88 |
.cpp.cppbak: |
| 89 |
mv $< $@ |
| 90 |
$(ASTYLE) $(ASTYLEFLAGS) < $@ > $< |
| 91 |
touch $@ |