summaryrefslogtreecommitdiffstats
path: root/import-layers/meta-security/recipes-security/xmlsec1/xmlsec1/makefile-ptest.patch
blob: d45356924b62dcef65344af26c212007885d2fb7 (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
33
34
35
36
37
38
39
40
From 83a1381e1d6bd1b5ec3df6f7c4bc1f4fe4f860b6 Mon Sep 17 00:00:00 2001
From: Jackie Huang <jackie.huang@windriver.com>
Date: Thu, 15 Jun 2017 14:44:01 +0800
Subject: [PATCH] xmlsec1: add new recipe

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 | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/examples/Makefile b/examples/Makefile
index 89b1d61..c1cbcca 100644
--- a/examples/Makefile
+++ b/examples/Makefile
@@ -8,9 +8,17 @@ PROGRAMS = \
 	decrypt1 decrypt2 decrypt3 \
 	xmldsigverify
 
+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)
 
OpenPOWER on IntegriCloud