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

$(dcf_root)/import/libmysqlclient_r/%: root := $(libmysqlclient_r_root)

ifeq ($(libmysqlclient_r_type),archive)

$(dcf_root)/import/libmysqlclient_r/mysqlclient_r.l: $(libmysqlclient_r_root)/libmysql/.libs/libmysqlclient_r.a
	@echo $< >$@
else

$(dcf_root)/import/libmysqlclient_r/mysqlclient_r.l: $(libmysqlclient_r_root)/libmysql/.libs/libmysqlclient_r.so
	@echo $< >$@
	@echo rpath:$(root)/libmysql/.libs >>$@
endif

$(dcf_root)/import/libmysqlclient_r/mysqlclient_r.l.cpp-options:
	@ln -s $(root)/include $(dcf_root)/import/libmysqlclient_r/mysql
	@echo include: -I$(dcf_root)/import/libmysqlclient_r >$@

ifndef %foreign%

disfigure::
	$(call message,rm $(dcf_root)/import/libmysqlclient_r/mysqlclient_r.l,\
rm -f $(dcf_root)/import/libmysqlclient_r/mysqlclient_r.l)
	$(call message,,rm -f $(dcf_root)/import/libmysqlclient_r/mysql)
	$(call message,,rm -f $(dcf_root)/import/libmysqlclient_r/mysqlclient_r.l.cpp-options)

endif