blob: 5c17ea3bf9ef507cc6db70792bcda61a2b0f4187 (
plain)
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
|
# file : Config.rules
# author : Boris Kolpackov <boris@dre.vanderbilt.edu>
# cvs-id : $Id$
# You may provide correct values for your configuration here.
#
# Set either BOOST_ROOT or BOOST_LIB & BOOST_INCLUDE. In case
# only BOOST_ROOT is set then BOOST_LIB=$(BOOST_ROOT)/lib and
# BOOST_INCLUDE=$(BOOST_ROOT)
#
BOOST_ROOT ?=
BOOST_LIB ?=
BOOST_INCLUDE ?=
UTILITY_ROOT ?=
UTILITY_INCLUDE ?=
UTILITY_BUILD_RULES ?=
# You normally would not want to edit anything below.
#
# Boost
#
ifneq ($(strip $(BOOST_ROOT)),)
ifeq ($(strip $(BOOST_LIB)),)
BOOST_LIB := $(BOOST_ROOT)/lib
endif
ifeq ($(strip $(BOOST_INCLUDE)),)
BOOST_INCLUDE := $(BOOST_ROOT)
endif
endif
#$(warning "boost lib : $(BOOST_LIB)")
#$(warning "boost inc$ : $(BOOST_INCLUDE)")
ifneq ($(strip $(BOOST_LIB)),)
BOOST_LD_FLAGS := -L$(BOOST_LIB)
endif
ifneq ($(strip $(BOOST_INCLUDE)),)
BOOST_CPP_FLAGS := -I$(BOOST_INCLUDE)
endif
# Utility
#
ifneq ($(strip $(UTILITY_ROOT)),)
ifeq ($(strip $(UTILITY_INCLUDE)),)
UTILITY_INCLUDE := $(UTILITY_ROOT)
endif
ifeq ($(strip $(UTILITY_BUILD_RULES)),)
UTILITY_BUILD_RULES := $(UTILITY_ROOT)/BuildRules
endif
endif
ifeq ($(strip $(UTILITY_BUILD_RULES)),)
UTILITY_BUILD_RULES :=/usr/share/libutility-dev/BuildRules
endif
# $(warning "utility inc : $(UTILITY_INCLUDE)")
# $(warning "utility bld : $(UTILITY_BUILD_RULES)")
ifneq ($(strip $(UTILITY_INCLUDE)),)
UTILITY_CPP_FLAGS := -I$(UTILITY_INCLUDE)
endif
CPPFLAGS += $(BOOST_CPP_FLAGS) $(UTILITY_CPP_FLAGS)
LD_FLAGS += $(BOOST_LD_FLAGS)
|