X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2FMakefile.am;h=0d2a5941b09f949a7f2fd60ebe536d4bb3566f66;hb=be1b3acf7af17f07568833cb57ef2c45e665c6e0;hp=4534c18da1e2ea20d4f5eb1b525eceda4501b7cd;hpb=70872154ce8cd1d73402b82d5c5f96903c15b144;p=platform%2Fcore%2Fsystem%2Ftizen-platform-config.git diff --git a/src/Makefile.am b/src/Makefile.am index 4534c18..0d2a594 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -2,6 +2,8 @@ lib_LTLIBRARIES = libtzplatform-config-@LIBTZPLATFORM_CONFIG_VERSION@.la bin_PROGRAMS = tzplatform-get +wrappersrcdir=$(shell pkg-config --variable=srcdir tizen-platform-wrapper) + SRC_FROMWRAPPER= \ buffer.h \ buffer.c \ @@ -16,7 +18,7 @@ SRC_FROMWRAPPER= \ scratch.h \ scratch.c \ tzplatform_config.c \ - tzplatform_config.h + tzplatform_config.h SRC_FROMTOOL= \ tzplatform_variables.h \ @@ -34,7 +36,7 @@ tizen-platform.conf: ../tizen-platform.meta 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 $< >$@ @@ -45,7 +47,7 @@ hash.inc: tizen-platform.conf 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 @@ -60,5 +62,3 @@ dist_tzplatform_config_sysconf_DATA=macros.tizen-platform tzplatform_get_SOURCES = tzplatform_get.c tzplatform_get_LDADD = libtzplatform-config-@LIBTZPLATFORM_CONFIG_VERSION@.la - -