1 1.36 hgutch # $NetBSD: Makefile,v 1.36 2025/09/27 13:30:00 hgutch 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.31 christos LDADD+= -lwrap -lblocklist 29 1.31 christos DPADD+= ${LIBWRAP} ${LIBBLOCKLIST} 30 1.1 cgd 31 1.34 christos LDADD+= -lssl -lcrypto -lpthread 32 1.34 christos DPADD+= ${LIBSSL} ${LIBCRYPTO} ${LIBPTHREAD} 33 1.21 christos 34 1.28 mrg # Overflow that appears impossible 35 1.33 lukem COPTS.syslogd.c+= ${CC_WNO_FORMAT_TRUNCATION} ${CC_WNO_STRINGOP_TRUNCATION} 36 1.32 christos COPTS.tls.c+= -Wno-error=deprecated-declarations 37 1.32 christos COPTS.sign.c+= -Wno-error=deprecated-declarations 38 1.36 hgutch .if defined(HAVE_GCC) && ${ACTIVE_CC} == "gcc" 39 1.35 mrg COPTS.sign.c+= -Wno-error=use-after-free 40 1.36 hgutch .fi 41 1.28 mrg 42 1.1 cgd .include <bsd.prog.mk> 43