Debian Codegraph @

Bonmin/src/Interfaces/Ipopt/Makefile.am

raw
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 AUTOMAKE_OPTIONS = foreign
10
11 ########################################################################
12 # libipoptinterface #
13 ########################################################################
14
15 # Name of the library in this directory
16 noinst_LTLIBRARIES = libipoptinterface.la
17
18 # List all source files, including headers
19 libipoptinterface_la_SOURCES = \
20 BonIpoptInteriorWarmStarter.cpp BonIpoptSolver.cpp \
21 BonIpoptWarmStart.cpp \
22 BonIpoptInteriorWarmStarter.hpp BonIpoptSolver.hpp \
23 BonIpoptWarmStart.hpp
24
25 # This is for libtool
26 libipoptinterface_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
30 AM_CPPFLAGS = -I`$(CYGPATH_W) $(srcdir)/..` $(BONMINLIB_CFLAGS)
31
32 # This line is necessary to allow VPATH compilation
33 DEFAULT_INCLUDES = -I. -I`$(CYGPATH_W) $(srcdir)` -I..
34
35 ########################################################################
36 # Headers that need to be installed #
37 ########################################################################
38
39 # Here list all the header files that are required by a user of the library,
40 # and that therefore should be installed in 'include/coin'
41 includecoindir = $(includedir)/coin
42 includecoin_HEADERS = \
43 BonIpoptInteriorWarmStarter.hpp \
44 BonIpoptSolver.hpp \
45 BonIpoptWarmStart.hpp
46
47 ########################################################################
48 # Astyle stuff #
49 ########################################################################
50
51 # Here repeat all source files, with "bak" appended
52 ASTYLE_FILES = \
53 BonIpoptInteriorWarmStarter.cppbak \
54 BonIpoptSolver.cppbak \
55 BonIpoptWarmStart.cppbak \
56 BonIpoptInteriorWarmStarter.hppbak \
57 BonIpoptSolver.hppbak \
58 BonIpoptWarmStart.hppbak
59
60 ASTYLE = @ASTYLE@
61 ASTYLEFLAGS = @ASTYLEFLAGS@
62
63 CLEANFILES = $(ASTYLE_FILES)
64
65 SUFFIXES = .cppbak .hppbak
66
67 astyle: $(ASTYLE_FILES)
68
69 .hpp.hppbak:
70 mv $< $@
71 $(ASTYLE) $(ASTYLEFLAGS) < $@ > $<
72 touch $@
73
74 .cpp.cppbak:
75 mv $< $@
76 $(ASTYLE) $(ASTYLEFLAGS) < $@ > $<
77 touch $@