summaryrefslogtreecommitdiffstats
path: root/recipes-security/xmlsec1/xmlsec1/makefile-ptest.patch
blob: 2a199f4a1d12ff5594369f28307243afe31faaa6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
This enables the building of the examples directory
and it's installed as ptest.

Upstream-Status: Inappropriate [ OE ptest specific ]

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
---
 examples/Makefile |    7 +++++--
 1 files changed, 7 insertions(+), 0 deletions(-)

--- a/examples/Makefile
+++ b/examples/Makefile
@@ -9,9 +9,17 @@
 	xmldsigverify \
 	xkms-server
 
+ifndef CC
 CC	= gcc
-CFLAGS	+= -g $(shell xmlsec1-config --cflags) -DUNIX_SOCKETS
-LDLIBS	+= -g $(shell xmlsec1-config --libs)
+endif
+
+CFLAGS  += -I../include -g $(shell PKG_CONFIG_PATH=.. pkg-config --cflags xmlsec1 ) -DUNIX_SOCKETS
+LDLIBS += -L../src/.libs -g $(shell PKG_CONFIG_PATH=.. pkg-config --libs xmlsec1 )
+
+DESTDIR = /usr/share/xmlsec1
+install-ptest:
+	if [ ! -d $(DESTDIR) ]; then mkdir -p $(DESTDIR); fi
+	cp * $(DESTDIR)
 
 all: $(PROGRAMS)