source: branches/devel/Bonmin/src/IpoptInterface/Makefile.am @ 44

Last change on this file since 44 was 44, checked in by pbonami, 13 years ago

Can add linear cut to nonlinear formulation in Ipopt

  • Property svn:eol-style set to native
  • Property svn:keywords set to Authors Date Id Revision
File size: 3.8 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 44 2006-09-21 15:29:23Z pbonami $
6
7# Author:  Andreas Waechter           IBM    2006-04-13
8
9AUTOMAKE_OPTIONS = foreign
10
11########################################################################
12#                          libipoptinterface                           #
13########################################################################
14
15# Name of the library in this directory
16noinst_LTLIBRARIES = libipoptinterface.la
17# List all source files, including headers
18libipoptinterface_la_SOURCES = \
19        IpCbcBoundsReader.cpp IpCbcBoundsReader.hpp \
20        IpCbcColReader.cpp IpCbcColReader.hpp \
21        IpCbcStartPointReader.cpp IpCbcStartPointReader.hpp \
22        IpoptIntegerBias.hpp \
23        IpoptInterface.cpp IpoptInterface.hpp \
24        IpoptInteriorWarmStarter.cpp IpoptInteriorWarmStarter.hpp \
25        IpoptWarmStart.cpp IpoptWarmStart.hpp \
26        TMINLP2TNLP.cpp TMINLP2TNLP.hpp \
27        TMINLP.cpp TMINLP.hpp \
28        TNLP2FPNLP.cpp TNLP2FPNLP.hpp
29
30# This is for libtool (on Windows)
31libipoptinterface_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
35AM_CPPFLAGS = \
36        -I`$(CYGPATH_W) $(IPOPTOBJDIR)/inc` \
37        -I`$(CYGPATH_W) $(IPOPTSRCDIR)/src/Common` \
38        -I`$(CYGPATH_W) $(IPOPTSRCDIR)/src/LinAlg` \
39        -I`$(CYGPATH_W) $(IPOPTSRCDIR)/src/Algorithm` \
40        -I`$(CYGPATH_W) $(IPOPTSRCDIR)/src/Interfaces` \
41        -I`$(CYGPATH_W) $(IPOPTSRCDIR)/src/Apps/AmplSolver` \
42        -I`$(CYGPATH_W) $(COINUTILSSRCDIR)/src` \
43        -I`$(CYGPATH_W) $(COINUTILSOBJDIR)/inc` \
44        -I`$(CYGPATH_W) $(OSISRCDIR)/src` \
45        -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiClp` \
46        -I`$(CYGPATH_W) $(CLPOBJDIR)/inc` \
47        -I`$(CYGPATH_W) $(CLPSRCDIR)/src`
48
49# This line is necessary to allow VPATH compilation with MS compilers
50# on Cygwin
51DEFAULT_INCLUDES = -I. -I`$(CYGPATH_W) $(srcdir)` -I$(top_builddir)/inc
52
53########################################################################
54#                Headers that need to be installed                     #
55########################################################################
56
57include_HEADERS = \
58        IpoptInterface.hpp \
59        IpoptInteriorWarmStarter.hpp \
60        TMINLP2TNLP.hpp \
61        TMINLP.hpp \
62        TNLP2FPNLP.hpp
63
64#############################################################################
65# Create the Config.h file that always defines HAVE_CONFIG_H and install it #
66#############################################################################
67
68# You only need to adapt the following line
69ConfigHeader = BonminConfig.h
70
71install-exec-local:
72        echo "#ifndef HAVE_CONFIG_H" >bla
73        echo "#define HAVE_CONFIG_H" >>bla
74        echo "#endif" >> bla
75        cat $(srcdir)/$(ConfigHeader) >> bla
76        $(install_sh_DATA) bla $(DESTDIR)$(includedir)/$(ConfigHeader)
77        rm -f bla
78
79uninstall-local:
80        rm -f $(DESTDIR)$(includedir)/$(ConfigHeader)
81
82########################################################################
83#                            Astyle stuff                              #
84########################################################################
85
86# Here repeat all source files, with "bak" appended
87ASTYLE_FILES = \
88        IpCbcBoundsReader.cppbak IpCbcBoundsReader.hppbak \
89        IpCbcColReader.cppbak IpCbcColReader.hppbak \
90        IpCbcStartPointReader.cppbak IpCbcStartPointReader.hppbak \
91        IpoptIntegerBias.hppbak \
92        IpoptInterface.cppbak IpoptInterface.hppbak \
93        IpoptInteriorWarmStarter.cppbak IpoptInteriorWarmStarter.hppbak \
94        IpoptWarmStart.cppbak IpoptWarmStart.hppbak \
95        TMINLP2TNLP.cppbak TMINLP2TNLP.hppbak \
96        TMINLP.hppbak TMINLP.hppbak \
97        TNLP2FPNLP.cppbak TNLP2FPNLP.hppbak
98
99ASTYLE = @ASTYLE@
100ASTYLEFLAGS = @ASTYLEFLAGS@
101
102CLEANFILES = $(ASTYLE_FILES)
103
104SUFFIXES = .cppbak .hppbak
105
106astyle: $(ASTYLE_FILES)
107
108.hpp.hppbak:
109        mv $< $@
110        $(ASTYLE) $(ASTYLEFLAGS) < $@ > $<
111        touch $@
112
113.cpp.cppbak:
114        mv $< $@
115        $(ASTYLE) $(ASTYLEFLAGS) < $@ > $<
116        touch $@
Note: See TracBrowser for help on using the repository browser.