summaryrefslogtreecommitdiff
path: root/src/Makefile.am
blob: 7c362a38b25859cf20b0f2447d7e709953a84c1c (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
lib_LTLIBRARIES = libtzplatform-config-@LIBTZPLATFORM_CONFIG_VERSION@.la

bin_PROGRAMS = tzplatform-get

libtzplatform_config_@LIBTZPLATFORM_CONFIG_VERSION@_la_SOURCES = \
	buffer.h \
	buffer.c \
	foreign.h \
	foreign.c \
	global-api.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 \
	isadmin.h \
	isadmin.c \
	shared-api.c \
	shared-api.h \
	tzplatform_config.sym \
	tzplatform_config.h \
	$(SRC_FROMTOOL)

SRC_TOOL = \
	buffer.c \
	foreign.c \
	heap.c \
	parser.c \
	sha256sum.c \
	toolbox.c

SRC_FROMTOOL= \
	tzplatform_variables.h \
	signup.inc \
	hash.inc

libtzplatform_config_@LIBTZPLATFORM_CONFIG_VERSION@_la_CFLAGS = -fPIC

BUILT_SOURCES=tzplatform-tool $(SRC_FROMTOOL)

CLEANFILES=tzplatform-tool $(SRC_FROMTOOL)

tzplatform-tool: $(SRC_TOOL)
	$(CC) $^ -o $@

tizen-platform.conf: /etc/tizen-platform.meta tzplatform-tool
	./tzplatform-tool pretty $< >$@

tzplatform_variables.h: tizen-platform.conf tzplatform-tool
	./tzplatform-tool h $< >$@

hash.inc: tizen-platform.conf tzplatform-tool
	./tzplatform-tool c $< >$@

signup.inc: tizen-platform.conf tzplatform-tool
	./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
	./tzplatform-tool rpm $< | grep -v TZ_USER_ > $@

tzplatform_config_sysconfdir= $(sysconfdir)/rpm
dist_tzplatform_config_sysconf_DATA=macros.tizen-platform

tzplatform_get_SOURCES = tzplatform_get.c
tzplatform_get_LDADD = libtzplatform-config-@LIBTZPLATFORM_CONFIG_VERSION@.la
tzplatform_get_CFLAGS = -fPIE
tzplatform_get_LDFLAGS = -pie