diff options
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/acme-client/Makefile | 51 |
1 files changed, 14 insertions, 37 deletions
diff --git a/usr.sbin/acme-client/Makefile b/usr.sbin/acme-client/Makefile index b1633c2996e..db7a8305452 100644 --- a/usr.sbin/acme-client/Makefile +++ b/usr.sbin/acme-client/Makefile @@ -1,40 +1,17 @@ -PREFIX = /usr/local -CFLAGS += -g -W -Wall -OBJS = acctproc.o \ - base64.o \ - certproc.o \ - chngproc.o \ - dbg.o \ - dnsproc.o \ - fileproc.o \ - http.o \ - jsmn.o \ - json.o \ - keyproc.o \ - main.o \ - netproc.o \ - revokeproc.o \ - rsa.o \ - sandbox-pledge.o \ - util.o \ - util-pledge.o +# $OpenBSD: Makefile,v 1.2 2016/08/31 22:11:15 florian Exp $ +PROG= acme-client +SRCS= acctproc.c base64.c certproc.c chngproc.c dbg.c dnsproc.c +SRCS+= fileproc.c http.c jsmn.c json.c keyproc.c main.c netproc.c +SRCS+= revokeproc.c rsa.c sandbox-pledge.c util-pledge.c util.c +MAN= acme-client.1 -letskencrypt: $(OBJS) - $(CC) -o $@ $(OBJS) -ltls -lssl -lcrypto +LDADD= -ltls -lssl -lcrypto +DPADD= ${LIBTLS} ${LIBSSL} ${LIBCRYPTO} -rsa.o acctproc.o keyproc.o: rsa.h +CFLAGS += -g -W -Wall +CFLAGS+= -Wstrict-prototypes -Wmissing-prototypes +CFLAGS+= -Wmissing-declarations +CFLAGS+= -Wshadow -Wpointer-arith +CFLAGS+= -Wsign-compare -jsmn.o json.o: jsmn.h - -http.o netproc.o: http.h - -install: letskencrypt - mkdir -p $(DESTDIR)$(PREFIX)/bin - mkdir -p $(DESTDIR)$(PREFIX)/man/man1 - install -m 0755 letskencrypt $(DESTDIR)$(PREFIX)/bin - install -m 0644 letskencrypt.1 $(DESTDIR)$(PREFIX)/man/man1 - -$(OBJS): extern.h - -clean: - rm -f letskencrypt $(OBJS) +.include <bsd.prog.mk> |