Debian Codegraph @

Bonmin/src/CbcBonmin/Makefile.am

raw
1 # Copyright (C) 2006, 2007 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 SUBDIRS = Heuristics
12
13 # Name of the library in this directory
14 lib_LTLIBRARIES = libbonmin.la
15 if COIN_HAS_ASL
16 lib_LTLIBRARIES += libbonminampl.la
17 endif
18
19 ########################################################################
20 # bonmin library #
21 ########################################################################
22
23 # List all source files, including headers
24 libbonmin_la_SOURCES = \
25 BonCbc.cpp BonCbc.hpp \
26 BonCbcNlpStrategy.cpp BonCbcNlpStrategy.hpp \
27 BonCbcNode.cpp BonCbcNode.hpp \
28 BonBabInfos.cpp BonBabInfos.hpp \
29 BonGuessHeuristic.cpp BonGuessHeuristic.hpp \
30 BonDiver.cpp BonDiver.hpp
31
32 libbonmin_la_LIBADD = $(libbonmin_la_DEPENDENCIES)
33 if DEPENDENCY_LINKING
34 libbonmin_la_LIBADD += $(BONMINLIB_LIBS)
35 endif
36
37 libbonmin_la_DEPENDENCIES = \
38 ../Algorithms/libbonalgorithms.la \
39 ../Interfaces/libbonmininterfaces.la \
40 Heuristics/libbonheuristics.la
41
42 # This is for libtool
43 libbonmin_la_LDFLAGS = $(LT_LDFLAGS)
44
45 ########################################################################
46 # amplbonmin library #
47 ########################################################################
48
49 # List all source files, including headers
50 libbonminampl_la_SOURCES =
51
52 # Dummy C++ source to cause C++ linking
53 nodist_EXTRA_libbonminampl_la_SOURCES = dummy.cpp
54
55 # List all additionally required libraries
56 libbonminampl_la_LIBADD = $(libbonminampl_la_DEPENDENCIES)
57 if DEPENDENCY_LINKING
58 libbonminampl_la_LIBADD += $(BONMINLIB_LIBS) \
59 $(BONMINAMPLINTERFACELIB_LIBS)
60 endif
61
62 # List all dependency libraries
63 libbonminampl_la_DEPENDENCIES = \
64 ../Algorithms/Ampl/libbonamplsetup.la \
65 ../Interfaces/Ampl/libbonamplinterface.la
66 if DEPENDENCY_LINKING
67 libbonminampl_la_DEPENDENCIES += libbonmin.la
68 endif
69
70 # This is for libtool
71 libbonminampl_la_LDFLAGS = $(LT_LDFLAGS)
72
73 # Here list all include flags, relative to this "srcdir" directory. This
74 # "cygpath" stuff is necessary to compile with native compilers on Windows
75 AM_CPPFLAGS = \
76 -I`$(CYGPATH_W) $(srcdir)/../Algorithms` \
77 -I`$(CYGPATH_W) $(srcdir)/../Algorithms/OaGenerators` \
78 -I`$(CYGPATH_W) $(srcdir)/../Algorithms/Branching` \
79 -I`$(CYGPATH_W) $(srcdir)/../Algorithms/QuadCuts` \
80 -I`$(CYGPATH_W) $(srcdir)/../Interfaces` \
81 -I`$(CYGPATH_W) $(srcdir)/../Interfaces/Ipopt` \
82 -I`$(CYGPATH_W) $(srcdir)/../Interfaces/Ampl` \
83 -I`$(CYGPATH_W) $(srcdir)/../Interfaces/Filter` \
84 $(BONMINLIB_CFLAGS)
85
86 # This line is necessary to allow VPATH compilation
87 DEFAULT_INCLUDES = -I. -I`$(CYGPATH_W) $(srcdir)` -I$(top_builddir)/src/Interfaces
88
89 ########################################################################
90 # Headers that need to be installed #
91 ########################################################################
92
93 # Here list all the header files that are required by a user of the library,
94 # and that therefore should be installed in 'include/coin'
95 includecoindir = $(includedir)/coin
96 includecoin_HEADERS = \
97 BonCbcNlpStrategy.hpp \
98 BonCbc.hpp \
99 BonBabInfos.hpp \
100 BonCbcNode.hpp \
101 BonDiver.hpp \
102 BonGuessHeuristic.hpp
103
104 ########################################################################
105 # Astyle stuff #
106 ########################################################################
107
108 # Here repeat all source files, with "bak" appended
109 ASTYLE_FILES = \
110 BonCbc.cppbak BonCbc.hppbak \
111 BonCbcNlpStrategy.cppbak BonCbcNlpStrategy.hppbak \
112 BonCbcNode.cppbak BonCbcNode.hppbak \
113 BonBabInfos.cppbak BonBabInfos.hppbak \
114 BonGuessHeuristic.cppbak BonGuessHeuristic.hppbak \
115 BonDiver.cppbak BonDiver.hppbak
116
117 ASTYLE = @ASTYLE@
118 ASTYLEFLAGS = @ASTYLEFLAGS@
119
120 CLEANFILES = $(ASTYLE_FILES)
121
122 DISTCLEANFILES = \
123 CbcCompareUser.cpp CbcBranchUser.cpp
124
125 SUFFIXES = .cppbak .hppbak
126
127 astyle: $(ASTYLE_FILES)
128
129 .hpp.hppbak:
130 mv $< $@
131 $(ASTYLE) $(ASTYLEFLAGS) < $@ > $<
132 touch $@
133
134 .cpp.cppbak:
135 mv $< $@
136 $(ASTYLE) $(ASTYLEFLAGS) < $@ > $<
137 touch $@