| 1 |
# Copyright (C) 2006 International Business Machines and others. |
| 2 |
# All Rights Reserved. |
| 3 |
# This file is distributed under the Eclipse Public License. |
| 4 |
|
| 5 |
## $Id: Makefile.am 204 2006-12-28 18:57:46Z pbonami $ |
| 6 |
|
| 7 |
# Author: Andreas Waechter IBM 2006-04-13 |
| 8 |
|
| 9 |
AUTOMAKE_OPTIONS = foreign |
| 10 |
|
| 11 |
######################################################################## |
| 12 |
# liboainterface # |
| 13 |
######################################################################## |
| 14 |
|
| 15 |
# Name of the library in this directory |
| 16 |
noinst_LTLIBRARIES = libbonoagenerators.la |
| 17 |
|
| 18 |
# List all source files, including headers |
| 19 |
libbonoagenerators_la_SOURCES = \ |
| 20 |
BonDummyHeuristic.cpp BonDummyHeuristic.hpp \ |
| 21 |
BonOaNlpOptim.cpp BonOaNlpOptim.hpp \ |
| 22 |
BonOACutGenerator2.cpp BonOACutGenerator2.hpp \ |
| 23 |
BonOaFeasChecker.cpp BonOaFeasChecker.hpp \ |
| 24 |
BonOaDecBase.cpp BonOaDecBase.hpp \ |
| 25 |
BonEcpCuts.cpp BonEcpCuts.hpp \ |
| 26 |
BonFpForMinlp.cpp BonFpForMinlp.hpp \ |
| 27 |
BonOAMessages.cpp BonOAMessages.hpp |
| 28 |
|
| 29 |
# This is for libtool |
| 30 |
libbonoagenerators_la_LDFLAGS = $(LT_LDFLAGS) |
| 31 |
|
| 32 |
# Here list all include flags, relative to this "srcdir" directory. This |
| 33 |
# "cygpath" stuff is necessary to compile with native compilers on Windows |
| 34 |
AM_CPPFLAGS = \ |
| 35 |
-I`$(CYGPATH_W) $(srcdir)/../../Interfaces` \ |
| 36 |
-I`$(CYGPATH_W) $(srcdir)/../../CbcBonmin` \ |
| 37 |
-I`$(CYGPATH_W) $(srcdir)/..` \ |
| 38 |
$(BONMINLIB_CFLAGS) |
| 39 |
|
| 40 |
# BonOaDecBase.cpp needs to include cplex.h |
| 41 |
if COIN_HAS_CPX |
| 42 |
AM_CPPFLAGS += -I`$(CYGPATH_W) $(CPXINCDIR)` |
| 43 |
endif |
| 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 |
# Headers that need to be installed # |
| 50 |
######################################################################## |
| 51 |
|
| 52 |
# Here list all the header files that are required by a user of the library, |
| 53 |
# and that therefore should be installed in 'include/coin' |
| 54 |
includecoindir = $(includedir)/coin |
| 55 |
includecoin_HEADERS = \ |
| 56 |
BonDummyHeuristic.hpp \ |
| 57 |
BonOaNlpOptim.hpp \ |
| 58 |
BonOACutGenerator2.hpp \ |
| 59 |
BonOaFeasChecker.hpp \ |
| 60 |
BonOaDecBase.hpp \ |
| 61 |
BonEcpCuts.hpp \ |
| 62 |
BonOAMessages.hpp |
| 63 |
|
| 64 |
######################################################################## |
| 65 |
# Astyle stuff # |
| 66 |
######################################################################## |
| 67 |
|
| 68 |
# Here repeat all source files, with "bak" appended |
| 69 |
ASTYLE_FILES = \ |
| 70 |
BonDummyHeuristic.cppbak BonDummyHeuristic.hppbak \ |
| 71 |
BonOaNlpOptim.cppbak BonOaNlpOptim.hppbak \ |
| 72 |
BonOACutGenerator2.cppbak BonOACutGenerator2.hppbak \ |
| 73 |
BonOaFeasChecker.cppbak BonOaFeasChecker.hppbak \ |
| 74 |
BonOaDecBase.cppbak BonOaDecBase.hppbak \ |
| 75 |
BonEcpCuts.cppbak BonEcpCuts.hppbak \ |
| 76 |
BonOAMessages.cppbak BonOAMessages.hppbak |
| 77 |
|
| 78 |
ASTYLE = @ASTYLE@ |
| 79 |
ASTYLEFLAGS = @ASTYLEFLAGS@ |
| 80 |
|
| 81 |
CLEANFILES = $(ASTYLE_FILES) |
| 82 |
|
| 83 |
SUFFIXES = .cppbak .hppbak |
| 84 |
|
| 85 |
astyle: $(ASTYLE_FILES) |
| 86 |
|
| 87 |
.hpp.hppbak: |
| 88 |
mv $< $@ |
| 89 |
$(ASTYLE) $(ASTYLEFLAGS) < $@ > $< |
| 90 |
touch $@ |
| 91 |
|
| 92 |
.cpp.cppbak: |
| 93 |
mv $< $@ |
| 94 |
$(ASTYLE) $(ASTYLEFLAGS) < $@ > $< |
| 95 |
touch $@ |