Debian Codegraph @

Bonmin/src/Interfaces/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$
6
7 # Author: Andreas Waechter IBM 2006-04-13
8
9 AUTOMAKE_OPTIONS = foreign
10
11 #We need to do autothings in the subdirectories for the different interfaces
12 SUBDIRS = Ipopt
13 if COIN_HAS_ASL
14 SUBDIRS += Ampl
15 endif
16 if COIN_HAS_FILTERSQP
17 SUBDIRS += Filter
18 endif
19
20 ########################################################################
21 # libipoptinterface #
22 ########################################################################
23
24 # Name of the library in this directory
25 noinst_LTLIBRARIES = libbonmininterfaces.la
26 # List all source files, including headers
27 libbonmininterfaces_la_SOURCES = \
28 BonAuxInfos.cpp BonAuxInfos.hpp \
29 BonBoundsReader.cpp BonBoundsReader.hpp \
30 BonColReader.cpp BonColReader.hpp \
31 BonCutStrengthener.cpp BonCutStrengthener.hpp \
32 BonStartPointReader.cpp BonStartPointReader.hpp \
33 BonOsiTMINLPInterface.cpp BonOsiTMINLPInterface.hpp \
34 BonTMINLP2TNLP.cpp BonTMINLP2TNLP.hpp \
35 BonTMINLP2OsiLP.cpp BonTMINLP2OsiLP.hpp \
36 BonTMINLP.cpp BonTMINLP.hpp \
37 BonTNLPSolver.hpp BonTNLPSolver.cpp \
38 BonTNLP2FPNLP.cpp BonTNLP2FPNLP.hpp \
39 BonBranchingTQP.cpp BonBranchingTQP.hpp \
40 BonStrongBranchingSolver.cpp BonStrongBranchingSolver.hpp \
41 BonRegisteredOption.hpp BonRegisteredOptions.cpp
42
43 #sublibraries for various installed solvers
44 libbonmininterfaces_la_LIBADD = Ipopt/libipoptinterface.la
45
46 if COIN_HAS_FILTERSQP
47 libbonmininterfaces_la_LIBADD += Filter/libfilterinterface.la
48 endif
49
50 libbonmininterfaces_la_DEPENDENCIES = $(libbonmininterfaces_la_LIBADD)
51
52 # This is for libtool (on Windows)
53 libbonmininterfaces_la_LDFLAGS = $(LT_LDFLAGS)
54
55 # Here list all include flags, relative to this "srcdir" directory. This
56 # "cygpath" stuff is necessary to compile with native compilers on Windows
57 AM_CPPFLAGS = \
58 -I`$(CYGPATH_W) $(srcdir)/../Algorithms` \
59 -I`$(CYGPATH_W) $(srcdir)/../Algorithms/OaGenerators` \
60 -I`$(CYGPATH_W) $(srcdir)/../Algorithms/Branching` \
61 -I`$(CYGPATH_W) $(srcdir)/../CbcBonmin` \
62 $(BONMINLIB_CFLAGS)
63
64 # This line is necessary to allow VPATH compilation
65 DEFAULT_INCLUDES = -I. -I`$(CYGPATH_W) $(srcdir)`
66
67 ########################################################################
68 # Headers that need to be installed #
69 ########################################################################
70
71 # Here list all the header files that are required by a user of the library,
72 # and that therefore should be installed in 'include/coin'
73 includecoindir = $(includedir)/coin
74 includecoin_HEADERS = \
75 BonOsiTMINLPInterface.hpp \
76 BonTMINLP2TNLP.hpp \
77 BonAuxInfos.hpp \
78 BonTMINLP.hpp \
79 BonTNLP2FPNLP.hpp \
80 BonCutStrengthener.hpp \
81 BonTNLPSolver.hpp \
82 BonBranchingTQP.hpp \
83 BonStrongBranchingSolver.hpp \
84 BonTMINLP2OsiLP.hpp \
85 BonTypes.hpp \
86 BonRegisteredOptions.hpp \
87 BonExitCodes.hpp
88
89 install-exec-local:
90 $(install_sh_DATA) config_bonmin.h $(DESTDIR)$(includecoindir)/BonminConfig.h
91
92 uninstall-local:
93 rm -f $(DESTDIR)$(includecoindir)/BonminConfig.h
94
95 ########################################################################
96 # Astyle stuff #
97 ########################################################################
98
99 # Here repeat all source files, with "bak" appended
100 ASTYLE_FILES = \
101 BonAuxInfos.cppbak \
102 BonAuxInfos.hppbak \
103 BonBoundsReader.cppbak \
104 BonBoundsReader.hppbak \
105 BonBranchingTQP.cppbak \
106 BonBranchingTQP.hppbak \
107 BonColReader.cppbak \
108 BonColReader.hppbak \
109 BonCurvatureEstimator.cppbak \
110 BonCurvatureEstimator.hppbak \
111 BonCutStrengthener.cppbak \
112 BonCutStrengthener.hppbak \
113 BonExitCodes.hppbak \
114 BonOsiTMINLPInterface.cppbak \
115 BonOsiTMINLPInterface.hppbak \
116 BonRegisteredOptions.cppbak \
117 BonRegisteredOptions.hppbak \
118 BonStartPointReader.cppbak \
119 BonStartPointReader.hppbak \
120 BonStrongBranchingSolver.cppbak \
121 BonStrongBranchingSolver.hppbak \
122 BonTMINLP2TNLP.cppbak \
123 BonTMINLP2TNLP.hppbak \
124 BonTMINLP.cppbak \
125 BonTMINLP.hppbak \
126 BonTNLP2FPNLP.cppbak \
127 BonTNLP2FPNLP.hppbak \
128 BonTNLPSolver.cppbak \
129 BonTNLPSolver.hppbak \
130 BonTypes.hppbak
131
132
133 ASTYLE = @ASTYLE@
134 ASTYLEFLAGS = @ASTYLEFLAGS@
135
136 CLEANFILES = $(ASTYLE_FILES)
137
138 SUFFIXES = .cppbak .hppbak
139
140 astyle: $(ASTYLE_FILES)
141
142 .hpp.hppbak:
143 mv $< $@
144 $(ASTYLE) $(ASTYLEFLAGS) < $@ > $<
145 touch $@
146
147 .cpp.cppbak:
148 mv $< $@
149 $(ASTYLE) $(ASTYLEFLAGS) < $@ > $<
150 touch $@