| 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 83 2006-10-23 16:53:13Z pbonami $ |
| 6 |
|
| 7 |
# Author: Andreas Waechter IBM 2006-04-13 |
| 8 |
|
| 9 |
|
| 10 |
# Source: Bonmin/src/IpoptInterface/Makefile.am |
| 11 |
# Modified for filterInterface |
| 12 |
# P. Bonami IBM 2006-10-02 |
| 13 |
|
| 14 |
AUTOMAKE_OPTIONS = foreign |
| 15 |
|
| 16 |
######################################################################## |
| 17 |
# libipoptinterface # |
| 18 |
######################################################################## |
| 19 |
|
| 20 |
# Name of the library in this directory |
| 21 |
noinst_LTLIBRARIES = libfilterinterface.la |
| 22 |
|
| 23 |
# List all source files, including headers |
| 24 |
libfilterinterface_la_SOURCES = \ |
| 25 |
BonBqpdSolver.cpp BonBqpdSolver.hpp \ |
| 26 |
BonBqpdWarmStart.cpp BonBqpdWarmStart.hpp \ |
| 27 |
BonFilterSolver.cpp BonFilterSolver.hpp \ |
| 28 |
BonFilterWarmStart.cpp BonFilterWarmStart.hpp |
| 29 |
|
| 30 |
# This is for libtool |
| 31 |
libfilterinterface_la_LDFLAGS = $(LT_LDFLAGS) |
| 32 |
|
| 33 |
# Here list all include flags, relative to this "srcdir" directory. This |
| 34 |
# "cygpath" stuff is necessary to compile with native compilers on Windows |
| 35 |
AM_CPPFLAGS = -I`$(CYGPATH_W) $(srcdir)/..` $(BONMINLIB_CFLAGS) |
| 36 |
|
| 37 |
# This line is necessary to allow VPATH compilation |
| 38 |
DEFAULT_INCLUDES = -I. -I`$(CYGPATH_W) $(srcdir)` -I.. |
| 39 |
|
| 40 |
######################################################################## |
| 41 |
# Headers that need to be installed # |
| 42 |
######################################################################## |
| 43 |
|
| 44 |
# Here list all the header files that are required by a user of the library, |
| 45 |
# and that therefore should be installed in 'include/coin' |
| 46 |
includecoindir = $(includedir)/coin |
| 47 |
includecoin_HEADERS = \ |
| 48 |
BonFilterSolver.hpp \ |
| 49 |
BonBqpdSolver.hpp \ |
| 50 |
BonFilterWarmStart.hpp |
| 51 |
|
| 52 |
######################################################################## |
| 53 |
# Astyle stuff # |
| 54 |
######################################################################## |
| 55 |
|
| 56 |
# Here repeat all source files, with "bak" appended |
| 57 |
ASTYLE_FILES = \ |
| 58 |
BonFilterSolver.cppbak \ |
| 59 |
BonFilterSolver.hppbak \ |
| 60 |
BonFilterWarmStart.cppbak \ |
| 61 |
BonFilterWarmStart.hppbak \ |
| 62 |
BonBqpdSolver.hppbak \ |
| 63 |
BonBqpdSolver.cppbak \ |
| 64 |
BonBqpdWarmStart.hppbak \ |
| 65 |
BonBqpdWarmStart.cppbak |
| 66 |
|
| 67 |
ASTYLE = @ASTYLE@ |
| 68 |
ASTYLEFLAGS = @ASTYLEFLAGS@ |
| 69 |
|
| 70 |
CLEANFILES = $(ASTYLE_FILES) |
| 71 |
|
| 72 |
SUFFIXES = .cppbak .hppbak |
| 73 |
|
| 74 |
astyle: $(ASTYLE_FILES) |
| 75 |
|
| 76 |
.hpp.hppbak: |
| 77 |
mv $< $@ |
| 78 |
$(ASTYLE) $(ASTYLEFLAGS) < $@ > $< |
| 79 |
touch $@ |
| 80 |
|
| 81 |
.cpp.cppbak: |
| 82 |
mv $< $@ |
| 83 |
$(ASTYLE) $(ASTYLEFLAGS) < $@ > $< |
| 84 |
touch $@ |