| 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 |
|
| 13 |
SUBDIRS = \ |
| 14 |
OaGenerators \ |
| 15 |
Branching \ |
| 16 |
QuadCuts |
| 17 |
|
| 18 |
if COIN_HAS_ASL |
| 19 |
SUBDIRS += Ampl |
| 20 |
endif |
| 21 |
|
| 22 |
noinst_LTLIBRARIES = libbonalgorithms.la |
| 23 |
|
| 24 |
######################################################################## |
| 25 |
# bonmin library # |
| 26 |
######################################################################## |
| 27 |
|
| 28 |
# List all source files, including headers |
| 29 |
libbonalgorithms_la_SOURCES = \ |
| 30 |
BonBabSetupBase.cpp BonBabSetupBase.hpp \ |
| 31 |
BonBonminSetup.cpp BonBonminSetup.hpp \ |
| 32 |
BonSubMipSolver.cpp BonSubMipSolver.hpp \ |
| 33 |
BonCbcLpStrategy.cpp BonCbcLpStrategy.hpp \ |
| 34 |
BonSolverHelp.cpp BonSolverHelp.hpp |
| 35 |
|
| 36 |
libbonalgorithms_la_LIBADD = Branching/libbonbranching.la |
| 37 |
libbonalgorithms_la_LIBADD += OaGenerators/libbonoagenerators.la |
| 38 |
libbonalgorithms_la_LIBADD += QuadCuts/libbonquadcuts.la |
| 39 |
|
| 40 |
libbonalgorithms_la_DEPENDENCIES = $(libbonalgorithms_la_LIBADD) |
| 41 |
|
| 42 |
# This is for libtool |
| 43 |
libbonalgorithms_la_LDFLAGS = $(LT_LDFLAGS) |
| 44 |
|
| 45 |
# Here list all include flags, relative to this "srcdir" directory. This |
| 46 |
# "cygpath" stuff is necessary to compile with native compilers on Windows |
| 47 |
AM_CPPFLAGS = \ |
| 48 |
-I`$(CYGPATH_W) $(srcdir)/Branching` \ |
| 49 |
-I`$(CYGPATH_W) $(srcdir)/QuadCuts` \ |
| 50 |
-I`$(CYGPATH_W) $(srcdir)/OaGenerators` \ |
| 51 |
-I`$(CYGPATH_W) $(srcdir)/../CbcBonmin` \ |
| 52 |
-I`$(CYGPATH_W) $(srcdir)/../CbcBonmin/Heuristics` \ |
| 53 |
-I`$(CYGPATH_W) $(srcdir)/../Interfaces` \ |
| 54 |
-I`$(CYGPATH_W) $(srcdir)/../Interfaces/Ipopt` \ |
| 55 |
-I`$(CYGPATH_W) $(srcdir)/../Interfaces/Filter` \ |
| 56 |
$(BONMINLIB_CFLAGS) |
| 57 |
|
| 58 |
# BonSubMipSolver.cpp needs to include cplex.h |
| 59 |
if COIN_HAS_CPX |
| 60 |
AM_CPPFLAGS += -I`$(CYGPATH_W) $(CPXINCDIR)` |
| 61 |
endif |
| 62 |
|
| 63 |
# This line is necessary to allow VPATH compilation |
| 64 |
DEFAULT_INCLUDES = -I. -I`$(CYGPATH_W) $(srcdir)` -I$(top_builddir)/src/Interfaces |
| 65 |
|
| 66 |
|
| 67 |
######################################################################## |
| 68 |
# Headers that need to be installed # |
| 69 |
######################################################################## |
| 70 |
|
| 71 |
# Here list all the header files that are required by a user of the library, |
| 72 |
# and that therefore should be installed in 'include/coin' |
| 73 |
includecoindir = $(includedir)/coin |
| 74 |
includecoin_HEADERS = \ |
| 75 |
BonBabSetupBase.hpp \ |
| 76 |
BonSubMipSolver.hpp \ |
| 77 |
BonCbcLpStrategy.hpp \ |
| 78 |
BonBonminSetup.hpp |
| 79 |
|
| 80 |
######################################################################## |
| 81 |
# Astyle stuff # |
| 82 |
######################################################################## |
| 83 |
|
| 84 |
# Here repeat all source files, with "bak" appended |
| 85 |
ASTYLE_FILES = \ |
| 86 |
BonBabSetupBase.cppbak \ |
| 87 |
BonBabSetupBase.hppbak \ |
| 88 |
BonBonminSetup.cppbak \ |
| 89 |
BonCbcLpStrategy.cppbak BonCbcLpStrategy.hppbak \ |
| 90 |
BonBonminSetup.hppbak |
| 91 |
|
| 92 |
ASTYLE = @ASTYLE@ |
| 93 |
ASTYLEFLAGS = @ASTYLEFLAGS@ |
| 94 |
|
| 95 |
CLEANFILES = $(ASTYLE_FILES) |
| 96 |
|
| 97 |
SUFFIXES = .cppbak .hppbak |
| 98 |
|
| 99 |
astyle: $(ASTYLE_FILES) |
| 100 |
|
| 101 |
.hpp.hppbak: |
| 102 |
mv $< $@ |
| 103 |
$(ASTYLE) $(ASTYLEFLAGS) < $@ > $< |
| 104 |
touch $@ |
| 105 |
|
| 106 |
.cpp.cppbak: |
| 107 |
mv $< $@ |
| 108 |
$(ASTYLE) $(ASTYLEFLAGS) < $@ > $< |
| 109 |
touch $@ |