aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 521bc19d90a76997c8792381151250f3448081a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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