summaryrefslogtreecommitdiff
path: root/build/import/libboost/regex/rules.make
blob: 10303be55ed4f6d38044d5302641d7ad93caad6f (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
# file      : build/import/libboost/regex/rules.make
# author    : Boris Kolpackov <boris@kolpackov.net>
# copyright : Copyright (c) 2005-2009 Boris Kolpackov
# license   : GNU GPL v2; see accompanying LICENSE file

$(dcf_root)/import/libboost/%: root := $(libboost_root)

$(dcf_root)/import/libboost/regex/regex.l: \
  | $(dcf_root)/import/libboost/regex/.

ifeq ($(libboost_type),archive)

$(dcf_root)/import/libboost/regex/regex.l: \
  $(libboost_root)/stage/lib/libboost_regex-gcc$(libboost_toolset)-$(libboost_version).a
	@echo $< >$@

else

$(dcf_root)/import/libboost/regex/regex.l: \
  $(libboost_root)/stage/lib/libboost_regex-gcc$(libboost_toolset)-$(libboost_version).so
	@echo $< >$@
	@echo rpath:$(root)/stage/lib >>$@

endif


$(dcf_root)/import/libboost/regex/regex.l.cpp-options: \
  | $(dcf_root)/import/libboost/regex/.
	@echo include: -I$(root) >$@

ifndef %foreign%

disfigure::
	$(call message,rm $(dcf_root)/import/libboost/regex/regex.l,\
rm -f $(dcf_root)/import/libboost/regex/regex.l)
	$(call message,,rm -f $(dcf_root)/import/libboost/regex/regex.l.cpp-options)

endif