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