summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorFlorian Obser <florian@cvs.openbsd.org>2016-08-31 22:11:16 +0000
committerFlorian Obser <florian@cvs.openbsd.org>2016-08-31 22:11:16 +0000
commit3d61df1a4936f180b9be37c8cdceb9cf940a1254 (patch)
treef690b7a31d0e4176dfd3cfd4af18f8bd2c886689 /usr.sbin
parent4a1320d0d97f7bc4173923f983bc41f3d0306cdd (diff)
use bsd.prog.mk
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/acme-client/Makefile51
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>