File: Makefile.am

package info (click to toggle)
coinor-cbc 2.9.9+repack1-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 7,848 kB
  • ctags: 5,787
  • sloc: cpp: 104,337; sh: 8,921; xml: 2,950; makefile: 520; ansic: 491; awk: 197
file content (161 lines) | stat: -rw-r--r-- 4,556 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
# Copyright (C) 2006 International Business Machines and others.
# All Rights Reserved.
# This file is distributed under the Eclipse Public License.

## $Id: Makefile.am 2132 2015-02-07 19:56:19Z tkr $

# Author:  Andreas Waechter           IBM    2006-04-13

AUTOMAKE_OPTIONS = foreign

########################################################################
#                          Subdirectories                              #
########################################################################

SUBDIRS = src

# Don't do src/OsiCbc recursively, since src/OsiCbc/libOsiCbc depends on src/libCbc
SUBDIRS += src/OsiCbc

# We don't want to compile the test subdirectory, unless the test target is
# specified.  But we need to list it as subdirectory to make sure that it is
# included in the tarball

if ALWAYS_FALSE
  SUBDIRS += test
endif

########################################################################
#             Additional files to be included in tarball               #
########################################################################

# Here we need include all files that are not mentioned in other Makefiles

EXTRA_DIST = \
	doc/authors.xml \
	doc/cbcexe.xml \
	doc/cbcmodelclass.xml \
	doc/cbcuserguide.xml \
	doc/doxygen.xml \
	doc/faqcontent.xml \
	doc/faq.xml \
	doc/intro.xml \
	doc/legal.xml \
	doc/messages.xml \
	doc/moresamples.xml \
	doc/osibuild.xml \
	doc/otherclasses.xml \
	doc/revhist.xml \
	examples/CbcBranchFollow2.cpp \
	examples/CbcBranchFollow2.hpp \
	examples/CbcBranchLink.cpp \
	examples/CbcBranchLink.hpp \
	examples/CbcBranchUser.cpp \
	examples/CbcBranchUser.hpp \
	examples/CbcCompareUser.cpp \
	examples/CbcCompareUser.hpp \
	examples/CbcSolver2.cpp \
	examples/CbcSolver2.hpp \
	examples/CbcSolver3.cpp \
	examples/CbcSolver3.hpp \
	examples/CbcSolverLongThin.cpp \
	examples/CbcSolverLongThin.hpp \
	examples/CbcSolverLink.hpp \
	examples/CbcSolverLink.cpp \
	examples/ClpQuadInterface.cpp \
	examples/ClpQuadInterface.hpp \
	examples/OsiBranchLink.cpp \
	examples/OsiBranchLink.hpp \
	examples/OsiSolverLink.hpp \
	examples/OsiSolverLink.cpp \
	examples/crew.cpp \
	examples/driver2.cpp \
	examples/driver.cpp \
	examples/fast0507b.cpp \
	examples/fast0507.cpp \
	examples/gear.cpp \
	examples/hotstart.cpp \
	examples/link.cpp \
	examples/longthin.cpp \
	examples/lotsize.cpp \
	examples/Makefile.in \
	examples/minimum.cpp \
	examples/nway.cpp \
	examples/qmip.cpp \
	examples/quad2.mps \
	examples/quad.mps \
	examples/repeat.cpp \
	examples/sample1.cpp \
	examples/sample2.cpp \
	examples/sample3.cpp \
	examples/sample4.cpp \
	examples/sample5.cpp \
	examples/sos.cpp \
	examples/sudoku.cpp \
	examples/sudoku_sample.csv

########################################################################
#                           Extra Targets                              #
########################################################################

test: all
	cd test; $(MAKE) test

unitTest: test

# Doxygen documentation

doxydoc:
	doxygen doxydoc/doxygen.conf

clean-doxydoc:
	( cd doxydoc ; rm -rf html *.log *.tag )


clean-local: clean-doxydoc
	if test -r test/Makefile; then cd test; $(MAKE) clean; fi

distclean-local:
	if test -r test/Makefile; then cd test; $(MAKE) distclean; fi

install-exec-local: install-doc

uninstall-local: uninstall-doc

.PHONY: test unitTest doxydoc

########################################################################
#                  Installation of the addlibs file                    #
########################################################################

pkgconfiglibdir = $(libdir)/pkgconfig
pkgconfiglib_DATA = cbc.pc osi-cbc.pc

addlibsdir = $(DESTDIR)$(datadir)/coin/doc/Cbc

install-data-hook:
	@$(mkdir_p) "$(addlibsdir)"
if COIN_HAS_PKGCONFIG
	PKG_CONFIG_PATH=@COIN_PKG_CONFIG_PATH@:$(DESTDIR)$(pkgconfiglibdir) \
	$(PKG_CONFIG) --libs cbc > $(addlibsdir)/cbc_addlibs.txt
else
if COIN_CXX_IS_CL
	echo "-libpath:`$(CYGPATH_W) @abs_lib_dir@` libCbc.lib @CBCLIB_LIBS_INSTALLED@" > $(addlibsdir)/cbc_addlibs.txt
else
	echo -L@abs_lib_dir@ -lCbcSolver -lCbc @CBCLIB_LIBS_INSTALLED@ > $(addlibsdir)/cbc_addlibs.txt
endif
endif

uninstall-hook:
	rm -f $(addlibsdir)/cbc_addlibs.txt

########################################################################
#                         Maintainer Stuff                             #
########################################################################

CLEANFILES =

# Files that are generated and should be cleaned with make distclean
DISTCLEANFILES =

include BuildTools/Makemain.inc