summaryrefslogtreecommitdiff
path: root/libxerces-c/rules.make
blob: 575f49e27152ae0392d2b4a808719710c67afcf4 (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
# file      : build/import/libxerces-c/rules.make
# author    : Boris Kolpackov <boris@codesynthesis.com>
# copyright : Copyright (c) 2005-2011 Boris Kolpackov
# license   : GNU GPL v2; see accompanying LICENSE file

$(dcf_root)/import/libxerces-c/%: root := $(libxerces_c_root)

ifneq ($(filter 3.%,$(libxerces_c_version)),)

# 3.x.y
#
ifeq ($(libxerces_c_type),archive)

$(dcf_root)/import/libxerces-c/xerces-c.l: $(libxerces_c_root)/src/.libs/libxerces-c.a
	@echo $< >$@
else

$(dcf_root)/import/libxerces-c/xerces-c.l: $(libxerces_c_root)/src/.libs/libxerces-c.so
	@echo $< >$@
	@echo rpath:$(root)/src/.libs >>$@
endif

$(dcf_root)/import/libxerces-c/xerces-c.l.cpp-options:
	@echo include: -I$(root)/src >$@
else

#  2.x.y
#
ifeq ($(libxerces_c_type),archive)

$(dcf_root)/import/libxerces-c/xerces-c.l: $(libxerces_c_root)/lib/libxerces-c.a
	@echo $< >$@
else

$(dcf_root)/import/libxerces-c/xerces-c.l: $(libxerces_c_root)/lib/libxerces-c.so
	@echo $< >$@
	@echo rpath:$(root)/lib >>$@
endif

$(dcf_root)/import/libxerces-c/xerces-c.l.cpp-options:
	@echo include: -I$(root)/include >$@
endif


ifndef %foreign%

disfigure::
	$(call message,rm $(dcf_root)/import/libxerces-c/xerces-c.l,\
rm -f $(dcf_root)/import/libxerces-c/xerces-c.l)
	$(call message,,rm -f $(dcf_root)/import/libxerces-c/xerces-c.l.cpp-options)

endif