source: branches/devel/Bonmin/src/Interfaces/Ipopt/Makefile.am @ 104

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

Add new makefiles

File size: 2.9 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 83 2006-10-23 16:53:13Z 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
18# List all source files, including headers
19libipoptinterface_la_SOURCES = \
20        BonIpoptInteriorWarmStarter.cpp  BonIpoptSolver.cpp \
21        BonIpoptWarmStart.cpp \
22        BonIpoptInteriorWarmStarter.hpp  BonIpoptSolver.hpp \
23        BonIpoptWarmStart.hpp
24
25# This is for libtool (on Windows)
26libipoptinterface_la_LDFLAGS = $(LT_LDFLAGS)
27
28# Here list all include flags, relative to this "srcdir" directory.  This
29# "cygpath" stuff is necessary to compile with native compilers on Windows
30AM_CPPFLAGS = \
31        -I`$(CYGPATH_W) $(IPOPTOBJDIR)/inc` \
32        -I`$(CYGPATH_W) $(IPOPTSRCDIR)/src/Common` \
33        -I`$(CYGPATH_W) $(IPOPTSRCDIR)/src/LinAlg` \
34        -I`$(CYGPATH_W) $(IPOPTSRCDIR)/src/Algorithm` \
35        -I`$(CYGPATH_W) $(IPOPTSRCDIR)/src/Interfaces` \
36        -I`$(CYGPATH_W) $(IPOPTSRCDIR)/src/Apps/AmplSolver` \
37        -I`$(CYGPATH_W) $(COINUTILSSRCDIR)/src` \
38        -I`$(CYGPATH_W) $(COINUTILSOBJDIR)/inc` \
39        -I`$(CYGPATH_W) $(OSISRCDIR)/src` \
40        -I`$(CYGPATH_W) $(OSISRCDIR)/src/OsiClp` \
41        -I`$(CYGPATH_W) $(CLPOBJDIR)/inc` \
42        -I`$(CYGPATH_W) $(CLPSRCDIR)/src` \
43        -I`$(CYGPATH_W) $(srcdir)/..`
44
45AM_CPPFLAGS += $(ASL_CPPFLAGS)
46
47
48# This line is necessary to allow VPATH compilation with MS compilers
49# on Cygwin
50DEFAULT_INCLUDES = -I. -I`$(CYGPATH_W) $(srcdir)` -I$(top_builddir)/inc
51
52########################################################################
53#                Headers that need to be installed                     #
54########################################################################
55
56include_HEADERS = BonIpoptInteriorWarmStarter.hpp \
57                  BonIpoptSolver.hpp \
58                  BonIpoptWarmStart.hpp
59
60########################################################################
61#                            Astyle stuff                              #
62########################################################################
63
64# Here repeat all source files, with "bak" appended
65ASTYLE_FILES = \
66         BonIpoptInteriorWarmStarter.cppbak \
67         BonIpoptSolver.cppbak \
68         BonIpoptWarmStart.cppbak \
69         BonIpoptInteriorWarmStarter.hppbak \
70         BonIpoptSolver.hppbak \
71         BonIpoptWarmStart.hpp
72
73ASTYLE = @ASTYLE@
74ASTYLEFLAGS = @ASTYLEFLAGS@
75
76CLEANFILES = $(ASTYLE_FILES)
77
78SUFFIXES = .cppbak .hppbak
79
80astyle: $(ASTYLE_FILES)
81
82.hpp.hppbak:
83        mv $< $@
84        $(ASTYLE) $(ASTYLEFLAGS) < $@ > $<
85        touch $@
86
87.cpp.cppbak:
88        mv $< $@
89        $(ASTYLE) $(ASTYLEFLAGS) < $@ > $<
90        touch $@
Note: See TracBrowser for help on using the repository browser.