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

$(dcf_root)/import/libsqlite/%: root := $(libsqlite_root)

ifeq ($(libsqlite_type),archive)

$(dcf_root)/import/libsqlite/sqlite.l: $(libsqlite_root)/.libs/libsqlite3.a
	@echo $< >$@
else

$(dcf_root)/import/libsqlite/sqlite.l: $(libsqlite_root)/.libs/libsqlite3.so
	@echo $< >$@
	@echo rpath:$(root)/.libs >>$@
endif

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

ifndef %foreign%

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

endif