blob: 9e6a6a840ffba12ee7d4ae3f5563b29b06a0f23b [file] [log] [blame]
Brad Bishop0f291cc2019-09-01 15:16:57 -04001From 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>
Brad Bishop0f291cc2019-09-01 15:16:57 -04009---
10 examples/Makefile | 6 ++++--
11 1 file changed, 4 insertions(+), 2 deletions(-)
12
13diff --git a/examples/Makefile b/examples/Makefile
Patrick Williams7784c422022-11-17 07:29:11 -060014index cbc2661..e882b61 100644
Brad Bishop0f291cc2019-09-01 15:16:57 -040015--- a/examples/Makefile
16+++ b/examples/Makefile
17@@ -12,8 +12,10 @@ ifndef CC
18 CC = gcc
19 endif
20
Patrick Williams7784c422022-11-17 07:29:11 -060021-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 )
Brad Bishop0f291cc2019-09-01 15:16:57 -040023+top_srcdir = ..
24+top_builddir = ..
Patrick Williams7784c422022-11-17 07:29:11 -060025+CFLAGS += -I$(top_srcdir)/include -g $(shell PKG_CONFIG_PATH=$(top_srcdir) pkg-config --cflags xmlsec1 ) -DUNIX_SOCKETS -Wall -Wextra
Brad Bishop0f291cc2019-09-01 15:16:57 -040026+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:
Patrick Williams7784c422022-11-17 07:29:11 -060030--
312.25.1
32