bin_PROGRAMS = tzplatform-get
+wrappersrcdir=$(shell pkg-config --variable=srcdir tizen-platform-wrapper)
+
SRC_FROMWRAPPER= \
buffer.h \
buffer.c \
scratch.h \
scratch.c \
tzplatform_config.c \
- tzplatform_config.h
+ tzplatform_config.h
SRC_FROMTOOL= \
tzplatform_variables.h \
tzplatform-tool pretty $< >$@
$(SRC_FROMWRAPPER) tzplatform_get.c:
- cp $(datadir)/tizen-platform-wrapper/$@ .
+ cp $(wrappersrcdir)/tizen-platform-wrapper/$@ .
tzplatform_variables.h: tizen-platform.conf
tzplatform-tool h $< >$@
libtzplatform_config_@LIBTZPLATFORM_CONFIG_VERSION@_la_LDFLAGS = -version-info $(LIBTZPLATFORM_CONFIG_SO_VERSION)
libtzplatform_config_@LIBTZPLATFORM_CONFIG_VERSION@_la_LDFLAGS += -export-symbols-regex tzplatform_.*
libtzplatform_config_@LIBTZPLATFORM_CONFIG_VERSION@_la_LDFLAGS += -Wl,-O3
-libtzplatform_config_@LIBTZPLATFORM_CONFIG_VERSION@_la_LDFLAGS += -lpthread
+libtzplatform_config_@LIBTZPLATFORM_CONFIG_VERSION@_la_LDFLAGS += -lpthread
libtzplatform_config_includedir = $(includedir)/
nobase_libtzplatform_config_include_HEADERS = tzplatform_variables.h tzplatform_config.h
tzplatform_get_SOURCES = tzplatform_get.c
tzplatform_get_LDADD = libtzplatform-config-@LIBTZPLATFORM_CONFIG_VERSION@.la
-
-