diff options
author | José Bollo <jose.bollo@iot.bzh> | 2015-11-09 21:58:30 +0100 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2015-11-09 21:58:30 +0100 |
commit | ad9428741b9a8f91e68829433bd643eee101a665 (patch) | |
tree | 858d0f730ce57390bc7d4ce9ee8c5164670a39cb /Makefile |
initial commit
Change-Id: Ib882fe057690e03e2f5d32ee7e0c594697dd46c8
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..521bc19 --- /dev/null +++ b/Makefile @@ -0,0 +1,29 @@ +.PHONY: all + +all: wgtpkg-install wgtpkg-pack wgtpkg-sign + +O = -DPREDIR='""' + +INCS = wgtpkg.h + +COMSRCS = \ + wgtpkg-base64.c \ + wgtpkg-certs.c \ + wgtpkg-digsig.c \ + wgtpkg-files.c \ + wgtpkg-workdir.c \ + wgtpkg-xmlsec.c \ + wgtpkg-zip.c + + +INSTALLSRCS = wgtpkg-install.c $(COMSRCS) + +PACKSRCS = wgtpkg-install.c $(COMSRCS) + +XMLSECOPT = $(shell pkg-config --cflags --libs xmlsec1) + +wgtpkg-%: wgtpkg-%.c $(COMSRCS) $(INCS) + gcc $O -g -o wgtpkg-$* wgtpkg-$*.c $(COMSRCS) -lzip -lxml2 -lcrypto $(XMLSECOPT) -Wall -Wno-pointer-sign + + + |