Fix coding rule violation
[platform/core/system/tizen-platform-config.git] / src / Makefile.am
1 lib_LTLIBRARIES = libtzplatform-config-@LIBTZPLATFORM_CONFIG_VERSION@.la
2
3 bin_PROGRAMS = tzplatform-get
4
5 libtzplatform_config_@LIBTZPLATFORM_CONFIG_VERSION@_la_SOURCES = \
6         buffer.h \
7         buffer.c \
8         foreign.h \
9         foreign.c \
10         global-api.c \
11         heap.h \
12         heap.c \
13         parser.h \
14         parser.c \
15         passwd.h \
16         passwd.c \
17         scratch.h \
18         scratch.c \
19         context.c \
20         context.h \
21         hashing.c \
22         hashing.h \
23         init.c \
24         init.h \
25         isadmin.h \
26         isadmin.c \
27         shared-api.c \
28         shared-api.h \
29         tzplatform_config.sym \
30         tzplatform_config.h \
31         $(SRC_FROMTOOL)
32
33 SRC_TOOL = \
34         buffer.c \
35         foreign.c \
36         heap.c \
37         parser.c \
38         sha256sum.c \
39         toolbox.c
40
41 SRC_FROMTOOL= \
42         tzplatform_variables.h \
43         signup.inc \
44         hash.inc
45
46 libtzplatform_config_@LIBTZPLATFORM_CONFIG_VERSION@_la_CFLAGS = -fPIC
47
48 BUILT_SOURCES=tzplatform-tool $(SRC_FROMTOOL)
49
50 CLEANFILES=tzplatform-tool $(SRC_FROMTOOL)
51
52 tzplatform-tool: $(SRC_TOOL)
53         $(CC) $^ -o $@
54
55 tizen-platform.conf: /etc/tizen-platform.meta tzplatform-tool
56         ./tzplatform-tool pretty $< >$@
57
58 tzplatform_variables.h: tizen-platform.conf tzplatform-tool
59         ./tzplatform-tool h $< >$@
60
61 hash.inc: tizen-platform.conf tzplatform-tool
62         ./tzplatform-tool c $< >$@
63
64 signup.inc: tizen-platform.conf tzplatform-tool
65         ./tzplatform-tool signup $< >$@
66
67 libtzplatform_config_@LIBTZPLATFORM_CONFIG_VERSION@_la_LDFLAGS = -version-info $(LIBTZPLATFORM_CONFIG_SO_VERSION)
68 libtzplatform_config_@LIBTZPLATFORM_CONFIG_VERSION@_la_LDFLAGS += -Wl,--version-script=tzplatform_config.sym
69 libtzplatform_config_@LIBTZPLATFORM_CONFIG_VERSION@_la_LDFLAGS += -Wl,-O3
70 libtzplatform_config_@LIBTZPLATFORM_CONFIG_VERSION@_la_LDFLAGS += -lpthread
71
72 libtzplatform_config_includedir = $(includedir)/
73 nobase_libtzplatform_config_include_HEADERS = tzplatform_variables.h tzplatform_config.h
74
75 dist_sysconf_DATA=tizen-platform.conf
76
77 macros.tizen-platform: tizen-platform.conf tzplatform-tool
78         ./tzplatform-tool rpm $< | grep -v TZ_USER_ > $@
79
80 tzplatform_config_sysconfdir= $(sysconfdir)/rpm
81 dist_tzplatform_config_sysconf_DATA=macros.tizen-platform
82
83 tzplatform_get_SOURCES = tzplatform_get.c
84 tzplatform_get_LDADD = libtzplatform-config-@LIBTZPLATFORM_CONFIG_VERSION@.la
85 tzplatform_get_CFLAGS = -fPIE
86 tzplatform_get_LDFLAGS = -pie
87