1From 0c38c6864e7ba8f53a657d87894f24374a6a4932 Mon Sep 17 00:00:00 2001
2From: Jackie Huang <jackie.huang@windriver.com>
3Date: Tue, 30 Dec 2014 11:18:17 +0800
4Subject: [PATCH] examples: allow build in separate dir
5
6Upstream-Status: Inappropriate [ OE specific ]
7
8Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
9---
10 examples/Makefile | 6 ++++--
11 1 file changed, 4 insertions(+), 2 deletions(-)
12
13diff --git a/examples/Makefile b/examples/Makefile
14index cbc2661..e882b61 100644
15--- a/examples/Makefile
16+++ b/examples/Makefile
17@@ -12,8 +12,10 @@ ifndef CC
18 CC	= gcc
19 endif
20
21-CFLAGS  += -I../include -g $(shell PKG_CONFIG_PATH=.. pkg-config --cflags xmlsec1 ) -DUNIX_SOCKETS -Wall -Wextra
22-LDLIBS  += -L../src/.libs -g $(shell PKG_CONFIG_PATH=.. pkg-config --libs xmlsec1 )
23+top_srcdir = ..
24+top_builddir = ..
25+CFLAGS  += -I$(top_srcdir)/include -g $(shell PKG_CONFIG_PATH=$(top_srcdir) pkg-config --cflags xmlsec1 ) -DUNIX_SOCKETS -Wall -Wextra
26+LDLIBS += -L$(top_builddir)/src/.libs -g $(shell PKG_CONFIG_PATH=$(top_srcdir) pkg-config --libs xmlsec1 )
27
28 DESTDIR = /usr/share/xmlsec1
29 install-ptest:
30--
312.25.1
32
33