summaryrefslogtreecommitdiff
path: root/libace/rules.make
blob: d4453727b9d833b0a2f32f63b1ad398bf1a6dea5 (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
# file      : build/import/libace/rules.make
# copyright : Copyright (c) 2005-2011 Boris Kolpackov
# license   : GNU GPL v2; see accompanying LICENSE file

$(dcf_root)/import/libace/%: root := $(libace_root)

ifeq ($(libace_type),archive)

$(dcf_root)/import/libace/ace.l: $(libace_root)/lib/libACE.a
	@echo $< >$@
else

$(dcf_root)/import/libace/ace.l: $(libace_root)/lib/libACE.so
	@echo $< >$@
	@echo rpath:$(root)/lib >>$@
endif

$(dcf_root)/import/libace/ace.l.cpp-options:
	@echo include: -I$(root) >$@

ifndef %foreign%

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

endif