mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-23 21:31:07 +01:00
b3c1c587b6
Also, add an "unifdef:" target, so that the telnet sources can be remade from the crypto sources in src/crypto/telnet.
37 lines
813 B
Makefile
37 lines
813 B
Makefile
# $FreeBSD$
|
|
|
|
# Do not define -DKLUDGELINEMODE, as it does not interact well with many
|
|
# telnet implementations.
|
|
|
|
PROG= telnetd
|
|
MAN= telnetd.8
|
|
|
|
SRCS= global.c slc.c state.c sys_term.c telnetd.c \
|
|
termstat.c utility.c
|
|
|
|
CFLAGS+= -DLINEMODE -DUSE_TERMIO -DDIAGNOSTICS -DOLD_ENVIRON \
|
|
-DENV_HACK \
|
|
-I${.CURDIR}/../../lib -DINET6
|
|
|
|
WARNS?= 2
|
|
|
|
.if exists(${.OBJDIR}/../../lib/libtelnet)
|
|
LIBTELNET= ${.OBJDIR}/../../lib/libtelnet/libtelnet.a
|
|
.else
|
|
LIBTELNET= ${.CURDIR}/../../lib/libtelnet/libtelnet.a
|
|
.endif
|
|
|
|
DPADD= ${LIBUTIL} ${LIBTERMCAP} ${LIBTELNET}
|
|
LDADD= -lutil -ltermcap ${LIBTELNET}
|
|
|
|
unifdef:
|
|
-cd ${.CURDIR} ; \
|
|
( for i in *.[ch] ; do \
|
|
unifdef -UAUTHENTICATION -UENCRYPTION \
|
|
${.CURDIR}/../../crypto/telnet/telnetd/$$i \
|
|
> ${.CURDIR}/$$i ; \
|
|
echo $$i ; \
|
|
done )
|
|
|
|
.include <bsd.prog.mk>
|