Clean up makefiles, and turn on WARNS=2. Take into account the telnet
#if cleanup.
This commit is contained in:
parent
401eb6965c
commit
f3c99bd05e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=87141
@ -9,8 +9,10 @@ NOPIC= yes
|
|||||||
SRCS= genget.c getent.c misc.c encrypt.c auth.c \
|
SRCS= genget.c getent.c misc.c encrypt.c auth.c \
|
||||||
enc_des.c sra.c pk.c
|
enc_des.c sra.c pk.c
|
||||||
|
|
||||||
CFLAGS+= -DHAS_CGETENT -DENCRYPTION -DDES_ENCRYPTION -DAUTHENTICATION \
|
CFLAGS+= -DENCRYPTION -DAUTHENTICATION -DSRA \
|
||||||
-DSRA -I${TELNETDIR}
|
-I${TELNETDIR} -I${TELNETDIR}/libtelnet
|
||||||
|
|
||||||
|
WARNS?= 2
|
||||||
|
|
||||||
INCS= ${TELNETDIR}/arpa/telnet.h
|
INCS= ${TELNETDIR}/arpa/telnet.h
|
||||||
INCDIR= /usr/include/arpa
|
INCDIR= /usr/include/arpa
|
||||||
|
@ -6,12 +6,14 @@
|
|||||||
PROG= telnetd
|
PROG= telnetd
|
||||||
MAN= telnetd.8
|
MAN= telnetd.8
|
||||||
|
|
||||||
|
SRCS= global.c slc.c state.c sys_term.c telnetd.c \
|
||||||
|
termstat.c utility.c authenc.c
|
||||||
|
|
||||||
CFLAGS+= -DLINEMODE -DUSE_TERMIO -DDIAGNOSTICS -DOLD_ENVIRON \
|
CFLAGS+= -DLINEMODE -DUSE_TERMIO -DDIAGNOSTICS -DOLD_ENVIRON \
|
||||||
-DENV_HACK -DAUTHENTICATION -DENCRYPTION \
|
-DENV_HACK -DAUTHENTICATION -DENCRYPTION \
|
||||||
-I${TELNETDIR} -DINET6
|
-I${TELNETDIR} -DINET6
|
||||||
|
|
||||||
SRCS= global.c slc.c state.c sys_term.c telnetd.c \
|
WARNS?= 2
|
||||||
termstat.c utility.c authenc.c
|
|
||||||
|
|
||||||
DPADD= ${LIBUTIL} ${LIBTERMCAP} ${LIBTELNET} ${LIBMP} ${LIBCRYPTO} \
|
DPADD= ${LIBUTIL} ${LIBTERMCAP} ${LIBTELNET} ${LIBMP} ${LIBCRYPTO} \
|
||||||
${LIBCRYPT} ${LIBPAM}
|
${LIBCRYPT} ${LIBPAM}
|
||||||
|
@ -2,17 +2,19 @@
|
|||||||
|
|
||||||
PROG= telnet
|
PROG= telnet
|
||||||
|
|
||||||
|
SRCS= authenc.c commands.c main.c network.c ring.c sys_bsd.c \
|
||||||
|
telnet.c terminal.c utilities.c
|
||||||
|
|
||||||
CFLAGS+= -DKLUDGELINEMODE -DUSE_TERMIO -DENV_HACK -DOPIE \
|
CFLAGS+= -DKLUDGELINEMODE -DUSE_TERMIO -DENV_HACK -DOPIE \
|
||||||
-DENCRYPTION -DAUTHENTICATION -DIPSEC -DINET6 \
|
-DENCRYPTION -DAUTHENTICATION -DIPSEC -DINET6 \
|
||||||
-I${TELNETDIR}
|
-I${TELNETDIR} -I${TELNETDIR}/libtelnet/
|
||||||
|
|
||||||
SRCS= authenc.c commands.c main.c network.c ring.c sys_bsd.c \
|
WARNS?= 2
|
||||||
telnet.c terminal.c tn3270.c utilities.c
|
|
||||||
|
|
||||||
DPADD= ${LIBTERMCAP} ${LIBTELNET} ${LIBMP} ${LIBCRYPTO} ${LIBCRYPT} \
|
DPADD= ${LIBTERMCAP} ${LIBTELNET} ${LIBMP} \
|
||||||
${LIBIPSEC} ${LIBPAM}
|
${LIBCRYPTO} ${LIBCRYPT} ${LIBIPSEC} ${LIBPAM}
|
||||||
LDADD= -ltermcap ${LIBTELNET} -lmp -lcrypto -lcrypt \
|
LDADD= -ltermcap ${LIBTELNET} -lmp \
|
||||||
-lipsec ${MINUSLPAM}
|
-lcrypto -lcrypt -lipsec ${MINUSLPAM}
|
||||||
|
|
||||||
.include <bsd.prog.mk>
|
.include <bsd.prog.mk>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user