summaryrefslogtreecommitdiff
path: root/build/import/libz/rules.make
blob: 5720a5ecfb6699a7463e8412f17c722c156d0944 (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
# file      : build/import/libz/rules.make
# license   : GNU GPL v2; see accompanying LICENSE file

$(dcf_root)/import/libz/%: root := $(libz_root)

ifeq ($(libz_type),archive)

$(dcf_root)/import/libz/z.l: $(libz_root)/libz.a
	@echo $< >$@
else

$(dcf_root)/import/libz/z.l: $(libz_root)/libz.so
	@echo $< >$@
	@echo rpath:$(root) >>$@
endif

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

ifndef %foreign%

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

endif