blob: 26ebce343d73ecf420a42108a29a8d2c0dd55271 [file] [log] [blame]
Brad Bishop0f291cc2019-09-01 15:16:57 -04001From 83a1381e1d6bd1b5ec3df6f7c4bc1f4fe4f860b6 Mon Sep 17 00:00:00 2001
2From: Jackie Huang <jackie.huang@windriver.com>
3Date: Thu, 15 Jun 2017 14:44:01 +0800
4Subject: [PATCH] xmlsec1: add new recipe
5
6This enables the building of the examples directory
7and it's installed as ptest.
8
9Upstream-Status: Inappropriate [ OE ptest specific ]
10
11Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Brad Bishop0f291cc2019-09-01 15:16:57 -040012---
13 examples/Makefile | 12 ++++++++++--
14 1 file changed, 10 insertions(+), 2 deletions(-)
15
16diff --git a/examples/Makefile b/examples/Makefile
Patrick Williams7784c422022-11-17 07:29:11 -060017index 02480c2..cbc2661 100644
Brad Bishop0f291cc2019-09-01 15:16:57 -040018--- a/examples/Makefile
19+++ b/examples/Makefile
20@@ -8,9 +8,17 @@ PROGRAMS = \
21 decrypt1 decrypt2 decrypt3 \
22 xmldsigverify
23
24+ifndef CC
25 CC = gcc
Patrick Williams7784c422022-11-17 07:29:11 -060026-CFLAGS += -g $(shell xmlsec1-config --cflags) -DUNIX_SOCKETS -Wall -Wextra
Brad Bishop0f291cc2019-09-01 15:16:57 -040027-LDLIBS += -g $(shell xmlsec1-config --libs)
28+endif
29+
Patrick Williams7784c422022-11-17 07:29:11 -060030+CFLAGS += -I../include -g $(shell PKG_CONFIG_PATH=.. pkg-config --cflags xmlsec1 ) -DUNIX_SOCKETS -Wall -Wextra
31+LDLIBS += -L../src/.libs -g $(shell PKG_CONFIG_PATH=.. pkg-config --libs xmlsec1 )
Brad Bishop0f291cc2019-09-01 15:16:57 -040032+
33+DESTDIR = /usr/share/xmlsec1
34+install-ptest:
35+ if [ ! -d $(DESTDIR) ]; then mkdir -p $(DESTDIR); fi
36+ cp * $(DESTDIR)
37
38 all: $(PROGRAMS)
39
Patrick Williams7784c422022-11-17 07:29:11 -060040--
412.25.1
42