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 --- 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)