1 1.29 mrg # $NetBSD: Makefile,v 1.29 2019/09/29 23:45:02 mrg Exp $ 2 1.6 perry # from: @(#)Makefile 8.1 (Berkeley) 6/6/93 3 1.18 lukem .include <bsd.own.mk> 4 1.18 lukem 5 1.24 christos WARNS?=4 6 1.20 tls USE_FORT?= yes # network server 7 1.20 tls 8 1.21 christos LINTFLAGS+=-X 132,247,135,259,117,298 9 1.21 christos 10 1.1 cgd PROG= syslogd 11 1.21 christos SRCS= syslogd.c utmpentry.c tls.c sign.c 12 1.5 cgd MAN= syslogd.8 syslog.conf.5 13 1.21 christos DPADD+=${LIBUTIL} ${LIBEVENT} 14 1.21 christos LDADD+=-lutil -levent 15 1.13 perry #make symlink to old socket location for transitional period 16 1.13 perry SYMLINKS= /var/run/log /dev/log 17 1.18 lukem .PATH.c: ${NETBSDSRCDIR}/usr.bin/who 18 1.21 christos CPPFLAGS+=-I${NETBSDSRCDIR}/usr.bin/who -DSUPPORT_UTMPX -DSUPPORT_UTMP -Wredundant-decls 19 1.15 itojun 20 1.19 lukem .if (${USE_INET6} != "no") 21 1.19 lukem CPPFLAGS+=-DINET6 22 1.19 lukem .endif 23 1.19 lukem 24 1.15 itojun CPPFLAGS+=-DLIBWRAP 25 1.27 christos .if ${HAVE_OPENSSL} < 11 26 1.26 jakllsch CPPFLAGS+=-DOPENSSL_API_COMPAT=0x10100000L 27 1.27 christos .endif 28 1.15 itojun LDADD+= -lwrap 29 1.15 itojun DPADD+= ${LIBWRAP} 30 1.1 cgd 31 1.21 christos LDADD+= -lssl -lcrypto 32 1.21 christos 33 1.28 mrg # Overflow that appears impossible 34 1.29 mrg .if defined(HAVE_GCC) && ${HAVE_GCC} >= 7 && ${ACTIVE_CC} == "gcc" 35 1.28 mrg COPTS.syslogd.c+= -Wno-error=format-truncation 36 1.28 mrg .endif 37 1.28 mrg 38 1.1 cgd .include <bsd.prog.mk> 39