Improving build dependency to libtzplatform-config
authorJosé Bollo <jose.bollo@open.eurogiciel.org>
Tue, 23 Sep 2014 10:16:29 +0000 (12:16 +0200)
committerJohn L. Whiteman <john.l.whiteman@intel.com>
Fri, 9 Jan 2015 21:04:01 +0000 (14:04 -0700)
Replacement of the hard coded version of the library with
a dynamic version computed from pkg-config.

Change-Id: I9e30a9ff01ce6326fa37df4729798f2427af9885
Signed-off-by: José Bollo <jose.bollo@open.eurogiciel.org>
framework/Makefile
framework/Makefile_TPCSSerDaemon
framework/Makefile_TWPSerDaemon
framework/Makefile_channel_client
framework/Makefile_channel_server

index 5f15f7c..356621a 100644 (file)
@@ -33,7 +33,7 @@ OUTDIR = lib
 TARGET = $(OUTDIR)/libsecfw.so
 SRCDIR = .
 INCLUDE = -I. $(TCS_INC) -I../plugin
-LD_FLAGS := $(LD_FLAGS) -ldl -lpthread -ltzplatform-config-1.0
+LD_FLAGS := $(LD_FLAGS) -ldl -lpthread $(shell pkg-config --libs libtzplatform-config)
 
 ifeq ($(TCS_CC), )
        CC = gcc
index ed600ba..7e97e48 100755 (executable)
@@ -32,7 +32,7 @@
 OUTDIR = bin
 TARGET = $(OUTDIR)/TPCSSerDaemon
 SRCDIR = .
-LD_FLAGS := $(LD_FLAGS) -ldl -ltzplatform-config-1.0
+LD_FLAGS := $(LD_FLAGS) -ldl $(shell pkg-config --libs libtzplatform-config)
 
 ifeq ($(TCS_CC), )
        CC = gcc
index 180f986..40c618b 100644 (file)
@@ -33,7 +33,7 @@ OUTDIR = bin
 TARGET = $(OUTDIR)/TWPSerDaemon
 SRCDIR = .
 INCLUDE = -I. $(TCS_INC) -I../plugin
-LD_FLAGS := $(LD_FLAGS) -ldl -lpthread -lsecfw -lscserver -lm -Llib -ltzplatform-config-1.0
+LD_FLAGS := $(LD_FLAGS) -ldl -lpthread -lsecfw -lscserver -lm -Llib $(shell pkg-config --libs libtzplatform-config)
 
 ifeq ($(TCS_CC), )
        CC = gcc
index eb2bf36..2b31c9b 100644 (file)
@@ -32,7 +32,7 @@
 OUTDIR = lib
 TARGET = $(OUTDIR)/libscclient.so
 SRCDIR = .
-LD_FLAGS := $(LD_FLAGS) -ldl -lpthread -ltzplatform-config-1.0
+LD_FLAGS := $(LD_FLAGS) -ldl -lpthread $(shell pkg-config --libs libtzplatform-config)
 
 ifeq ($(TCS_CC), )
        CC = gcc
index eabf440..a302794 100644 (file)
@@ -32,7 +32,7 @@
 OUTDIR = lib
 TARGET = $(OUTDIR)/libscserver.so
 SRCDIR = .
-LD_FLAGS := $(LD_FLAGS) -ldl -lpthread -ltzplatform-config-1.0
+LD_FLAGS := $(LD_FLAGS) -ldl -lpthread $(shell pkg-config --libs libtzplatform-config)
 
 ifeq ($(TCS_CC), )
        CC = gcc