1
0
mirror of https://github.com/openbsd/src.git synced 2025-01-10 06:47:55 -08:00
openbsd-src/usr.sbin/ocspcheck/Makefile
jsg 2dd50f26c1 Limit -Werror to gcc4 as was done in libcrypto/libssl/libtls to avoid
failed builds with different compilers.

ok jsing@
2017-05-07 04:18:47 +00:00

28 lines
509 B
Makefile

# $OpenBSD: Makefile,v 1.3 2017/05/07 04:18:47 jsg Exp $
.include <bsd.own.mk>
PROG= ocspcheck
MAN= ocspcheck.8
LDADD= -ltls -lssl -lcrypto
DPADD= ${LIBTLS} ${LIBSSL} ${LIBCRYPTO}
CFLAGS+= -Wall
CFLAGS+= -Wformat
CFLAGS+= -Wformat-security
CFLAGS+= -Wimplicit
CFLAGS+= -Wreturn-type
CFLAGS+= -Wshadow
CFLAGS+= -Wtrigraphs
CFLAGS+= -Wuninitialized
CFLAGS+= -Wunused
.if ${COMPILER_VERSION:L} == "gcc4"
CFLAGS+= -Werror
.endif
CFLAGS+= -DLIBRESSL_INTERNAL
SRCS= ocspcheck.c http.c
.include <bsd.prog.mk>