source: trunk/Makefile.Cbc @ 302

Last change on this file since 302 was 302, checked in by lou, 13 years ago

FULL_DEBUG -> CBC_CHECK_BASIS, warning -> info

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.7 KB
Line 
1# Static or shared libraries should be built (STATIC or SHARED)?
2LibType := SHARED
3
4# Select optimization (-O or -g). -O will be automatically bumped up to the
5# highest level of optimization the compiler supports. If want something in
6# between then specify the exact level you want, e.g., -O1 or -O2
7OptLevel := -O1
8#OptLevel := -g
9
10
11LIBNAME := Cbc
12LIBSRC :=
13LIBSRC += CbcModel.cpp
14LIBSRC += CbcNode.cpp
15LIBSRC += CbcTree.cpp
16LIBSRC += CbcTreeLocal.cpp
17LIBSRC += CbcCountRowCut.cpp
18LIBSRC += CbcMessage.cpp
19LIBSRC += CbcEventHandler.cpp
20LIBSRC += CbcHeuristic.cpp
21LIBSRC += CbcHeuristicLocal.cpp
22LIBSRC += CbcHeuristicFPump.cpp
23LIBSRC += CbcHeuristicGreedy.cpp
24LIBSRC += CbcBranchBase.cpp
25LIBSRC += CbcBranchActual.cpp
26LIBSRC += CbcBranchDynamic.cpp
27LIBSRC += CbcBranchLotsize.cpp
28LIBSRC += CbcBranchCut.cpp
29LIBSRC += CbcFathom.cpp
30LIBSRC += CbcStrategy.cpp
31LIBSRC += CbcStatistics.cpp
32LIBSRC += CbcFathomDynamicProgramming.cpp
33LIBSRC += CbcCompareActual.cpp
34LIBSRC += CbcCutGenerator.cpp
35
36# Clp is deeply wired into the C interface. Just say Clp is required to use
37# it.
38
39ifneq ($(filter CBC_USE_CLP, $(CBC_DEFINES)),)
40  LIBSRC += Cbc_C_Interface.cpp
41endif
42
43##############################################################################
44# You should not need to edit below this line.
45##############################################################################
46# The location of the customized Makefiles. Unclear we need this again, but
47# it can't hurt. As noted in Makefile, Makefile.coin will pull in
48# Makefile.<O/S> and Makefile.location.
49
50include ${MakefileDir}/Makefile.coin
51
52CXXFLAGS += $(addprefix -D,$(CBC_DEFINES))
53
54# Defines to enable debugging code.
55# CBC_DEBUG: general debugging assertions and printing
56# CBC_DEBUG>1: cuts are printed in their entirety
57# CBC_CHECK_BASIS: print basis information
58# CHECK_NODE: node construction, pop/push in search tree, destruction
59# CHECK_NODE_FULL: search tree integrity check
60# CHECK_CUT_COUNTS: verify cut reference counts
61
62ifeq ($(OptLevel),-g)
63#   CXXFLAGS += -DCBC_DEBUG=1
64#   CXXFLAGS += -DCBC_DEBUG=2
65#   CXXFLAGS += -DCBC_CHECK_BASIS
66#   CXXFLAGS += -DCHECK_NODE
67#   CXXFLAGS += -DCHECK_CUT_COUNTS
68#   CXXFLAGS += -DCHECK_NODE_FULL
69#   CXXFLAGS += -lefence
70endif
71
72# $(info CXXFLAGS is $(CXXFLAGS))
73
74export ExtraIncDir  := ${CoinIncDir} ${zlibIncDir} ${bzlibIncDir}
75export ExtraLibDir  := ${CoinLibDir} ${zlibLibDir} ${bzlibLibDir}
76export ExtraLibName := ${CoinLibName} ${zlibLibName} ${bzlibLibName}
77export ExtraDefine  := ${CoinDefine} ${zlibDefine} ${bzlibDefine}
78
79export LibType OptLevel LIBNAME LIBSRC
80
81###############################################################################
82
83.DELETE_ON_ERROR:
84
85.PHONY: default install library
86
87default: install
88
89install library:
90        $(MAKE) -f ${MakefileDir}/Makefile.lib $@
Note: See TracBrowser for help on using the repository browser.