1
0
filter-dkimverify/Makefile

43 lines
1.1 KiB
Makefile
Raw Permalink Normal View History

LOCALBASE?= /usr/local/
PROG= filter-dkimverify
MAN= filter-dkimverify.8
BINDIR= ${LOCALBASE}/libexec/smtpd/
MANDIR= ${LOCALBASE}/man/man
SRCS+= main.c ltok.c unpack_dns.c
.ifdef HAVE_ED25519
CFLAGS+= -DHAVE_ED25519
.endif
.ifdef LIBCRYPTOPC
CRYPT_CFLAGS!= pkg-config --cflags ${LIBCRYPTOPC}
CRYPT_LDFLAGS_L!=pkg-config --libs-only-L ${LIBCRYPTOPC}
CRYPT_LDFLAGS_libdir!=pkg-config --variable libdir ${LIBCRYPTOPC}
CRYPT_LDFLAGS= ${CRYPT_LDFLAGS_L}
CRYPT_LDFLAGS+= -Wl,-rpath,${CRYPT_LDFLAGS_libdir}
CRYPT_LDADD!= pkg-config --libs-only-l ${LIBCRYPTOPC}
.else
CRYPT_CFLAGS=
CRYPT_LDFLAGS=
CRYPT_LDADD= -lcrypto
.endif
CFLAGS+= -I${LOCALBASE}/include -I${.CURDIR}/openbsd-compat
CFLAGS+= -Wall -I${.CURDIR}
CFLAGS+= -Wstrict-prototypes -Wmissing-prototypes
CFLAGS+= -Wmissing-declarations
CFLAGS+= -Wshadow -Wpointer-arith -Wcast-qual
CFLAGS+= -Wsign-compare
CFLAGS+= ${CRYPT_CFLAGS}
LDFLAGS+= -L${LOCALBASE}/lib
LDFLAGS+= ${CRYPT_LDFLAGS}
LDADD+= ${CRYPT_LDADD} -lopensmtpd -levent
DPADD= ${LIBCRYPTO}
bindir:
${INSTALL} -d ${DESTDIR}${BINDIR}
.include <bsd.prog.mk>