source: trunk/Makefile.Cbc @ 277

Last change on this file since 277 was 277, checked in by lou, 14 years ago

Revise cbc build process for better control of solvers included in build
(COIN_USE_XXX -> CBC_USE_XXX). Add CbcEventHandler? for independence from
clp.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.4 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
7#OptLevel := -O1
8OptLevel := -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
56ifeq ($(OptLevel),-g)
57#   CXXFLAGS += -DCBC_DEBUG
58#   CXXFLAGS += -DCBC_DEBUG=2
59#   CXXFLAGS += -DFULL_DEBUG
60#   CXXFLAGS += -DCHECK_NODE
61#   CXXFLAGS += -DCHECK_CUT_COUNTS
62#   CXXFLAGS += -DCHECK_NODE_FULL
63#   CXXFLAGS += -lefence
64endif
65
66# $(warning CXXFLAGS is $(CXXFLAGS))
67
68export ExtraIncDir  := ${CoinIncDir} ${zlibIncDir} ${bzlibIncDir}
69export ExtraLibDir  := ${CoinLibDir} ${zlibLibDir} ${bzlibLibDir}
70export ExtraLibName := ${CoinLibName} ${zlibLibName} ${bzlibLibName}
71export ExtraDefine  := ${CoinDefine} ${zlibDefine} ${bzlibDefine}
72
73export LibType OptLevel LIBNAME LIBSRC
74
75###############################################################################
76
77.DELETE_ON_ERROR:
78
79.PHONY: default install library
80
81default: install
82
83install library:
84        $(MAKE) -f ${MakefileDir}/Makefile.lib $@
Note: See TracBrowser for help on using the repository browser.