blob: 7850f64f7fc19f9ce7b25b37f01f282ec822815c (
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
|
lib_LTLIBRARIES = libtzplatform-config-@LIBTZPLATFORM_CONFIG_VERSION@.la
lib_LIBRARIES = libtzplatform-config-static.a
bin_PROGRAMS = tzplatform-get
wrappersrcdir=$(shell pkg-config --variable=datadir tizen-platform-wrapper)
SRC_FROMWRAPPER_STATIC= \
static-api.c
SRC_FROMWRAPPER_SHARED= \
buffer.h \
buffer.c \
foreign.h \
foreign.c \
heap.h \
heap.c \
parser.h \
parser.c \
passwd.h \
passwd.c \
scratch.h \
scratch.c \
context.c \
context.h \
hashing.c \
hashing.h \
init.c \
init.h \
shared-api.c \
shared-api.h \
tzplatform_config.sym \
tzplatform_config.h
SRC_FROMWRAPPER=$(SRC_FROMWRAPPER_SHARED) $(SRC_FROMWRAPPER_STATIC)
SRC_FROMTOOL= \
tzplatform_variables.h \
signup.inc \
hash.inc
CFLAGS += -fPIC
BUILT_SOURCES=$(SRC_FROMWRAPPER) $(SRC_FROMTOOL)
CLEANFILES=$(SRC_FROMWRAPPER) $(SRC_FROMTOOL)
libtzplatform_config_static_a_SOURCES = $(SRC_FROMWRAPPER_STATIC)
libtzplatform_config_@LIBTZPLATFORM_CONFIG_VERSION@_la_SOURCES = \
$(SRC_FROMWRAPPER_SHARED) \
$(SRC_FROMTOOL)
tizen-platform.conf: ../tizen-platform.meta
tzplatform-tool pretty $< >$@
$(SRC_FROMWRAPPER) tzplatform_get.c:
cp $(wrappersrcdir)/tizen-platform-wrapper/$@ .
tzplatform_variables.h: tizen-platform.conf
tzplatform-tool h $< >$@
hash.inc: tizen-platform.conf
tzplatform-tool c $< >$@
signup.inc: tizen-platform.conf
tzplatform-tool signup $< >$@
libtzplatform_config_@LIBTZPLATFORM_CONFIG_VERSION@_la_LDFLAGS = -version-info $(LIBTZPLATFORM_CONFIG_SO_VERSION)
libtzplatform_config_@LIBTZPLATFORM_CONFIG_VERSION@_la_LDFLAGS += -Wl,--version-script=tzplatform_config.sym
libtzplatform_config_@LIBTZPLATFORM_CONFIG_VERSION@_la_LDFLAGS += -Wl,-O3
libtzplatform_config_@LIBTZPLATFORM_CONFIG_VERSION@_la_LDFLAGS += -lpthread
libtzplatform_config_includedir = $(includedir)/
nobase_libtzplatform_config_include_HEADERS = tzplatform_variables.h tzplatform_config.h
dist_sysconf_DATA=tizen-platform.conf
macros.tizen-platform: tizen-platform.conf
tzplatform-tool rpm $< | grep -v TZ_USER_ | sed -r \
-e "s|(\s)/usr/share/man|\1%{_mandir}|g" \
-e "s|(\s)/usr/share/info|\1%{_infodir}|g" \
-e "s|(\s)/usr/share|\1%{_datadir}|g" \
-e "s|(\s)/usr/bin|\1%{_bindir}|g" \
-e "s|(\s)/usr/sbin|\1%{_sbindir}|g" \
-e "s|(\s)/usr/include|\1%{_includedir}|g" \
-e "s|(\s)/usr/lib|\1%{_libdir}|g" \
-e "s|(\s)/usr|\1%{_prefix}|g" \
-e "s|(\s)/etc|\1%{_sysconfdir}|g" \
-e "s|(\s)/var|\1%{_var}|g" \
>$@
tzplatform_config_sysconfdir= $(sysconfdir)/rpm
dist_tzplatform_config_sysconf_DATA=macros.tizen-platform
tzplatform_get_SOURCES = tzplatform_get.c
tzplatform_get_LDADD = libtzplatform-config-static.a libtzplatform-config-@LIBTZPLATFORM_CONFIG_VERSION@.la
|