Adds validation of zip filenames
[src/app-framework-main.git] / Makefile
1 .PHONY: all
2
3 all: wgtpkg-install wgtpkg-pack wgtpkg-sign
4
5 O = -DPREDIR='""'
6
7 INCS = wgtpkg.h
8
9 COMSRCS = \
10         wgtpkg-base64.c \
11         wgtpkg-certs.c \
12         wgtpkg-digsig.c \
13         wgtpkg-files.c \
14         wgtpkg-workdir.c \
15         wgtpkg-xmlsec.c \
16         wgtpkg-zip.c
17
18
19 INSTALLSRCS = wgtpkg-install.c $(COMSRCS)
20
21 PACKSRCS = wgtpkg-install.c $(COMSRCS)
22
23 XMLSECOPT = $(shell pkg-config --cflags --libs xmlsec1)
24
25 wgtpkg-%: wgtpkg-%.c $(COMSRCS) $(INCS)
26         gcc $O -g -o wgtpkg-$* wgtpkg-$*.c $(COMSRCS) -lzip -lxml2 -lcrypto $(XMLSECOPT) -Wall -Wno-pointer-sign 
27
28
29