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