aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@FreeBSD.org>2001-03-28 12:08:22 +0000
committerRuslan Ermilov <ru@FreeBSD.org>2001-03-28 12:08:22 +0000
commit4ecbb303465d9a56a783068c2bcd2cf6255b6d4f (patch)
tree76b10b0143fafad620c24bc602b75b051186f1c9
parent1005a129e5ff4af4709d281023e8a101a28fcb82 (diff)
downloadsrc-4ecbb303465d9a56a783068c2bcd2cf6255b6d4f.tar.gz
src-4ecbb303465d9a56a783068c2bcd2cf6255b6d4f.zip
Bye-bye /usr/lib/libtelnet.a. This should fix ``make release'' brokeness.
Approved by: markm
Notes
Notes: svn path=/head/; revision=74928
-rw-r--r--kerberos5/lib/libtelnet/Makefile9
-rw-r--r--kerberos5/libexec/telnetd/Makefile2
-rw-r--r--kerberos5/usr.bin/telnet/Makefile2
-rw-r--r--kerberosIV/Makefile.inc4
-rw-r--r--kerberosIV/lib/libtelnet/Makefile9
-rw-r--r--kerberosIV/libexec/telnetd/Makefile2
-rw-r--r--kerberosIV/usr.bin/telnet/Makefile2
-rw-r--r--lib/libtelnet/Makefile6
-rw-r--r--libexec/telnetd/Makefile9
-rw-r--r--secure/Makefile.inc5
-rw-r--r--secure/lib/libtelnet/Makefile6
-rw-r--r--secure/libexec/telnetd/Makefile2
-rw-r--r--secure/usr.bin/telnet/Makefile2
-rw-r--r--share/mk/bsd.libnames.mk1
-rw-r--r--usr.bin/telnet/Makefile8
15 files changed, 49 insertions, 20 deletions
diff --git a/kerberos5/lib/libtelnet/Makefile b/kerberos5/lib/libtelnet/Makefile
index d6f4031a411e..35e936e8de46 100644
--- a/kerberos5/lib/libtelnet/Makefile
+++ b/kerberos5/lib/libtelnet/Makefile
@@ -2,6 +2,10 @@
LIB= telnet
+INTERNALLIB= yes
+INTERNALSTATICLIB=yes
+NOPIC= yes
+
SRCS= genget.c getent.c misc.c encrypt.c auth.c kerberos.c \
enc_des.c pk.c sra.c
@@ -9,9 +13,8 @@ CFLAGS+= -DHAS_CGETENT -DENCRYPTION -DDES_ENCRYPTION -DAUTHENTICATION \
-DKRB4 -DSRA -I${TELNETDIR} \
-I${KRB4DIR}/lib/krb
-NOPIC= yes
-
-INCLUDES= ${TELNETDIR}/arpa/telnet.h
+INCS= ${TELNETDIR}/arpa/telnet.h
+INCDIR= /usr/include/arpa
#
# Remove obsolete shared libraries, if any. We don't bother moving them
diff --git a/kerberos5/libexec/telnetd/Makefile b/kerberos5/libexec/telnetd/Makefile
index 996add453bd7..6b35fa4dffe3 100644
--- a/kerberos5/libexec/telnetd/Makefile
+++ b/kerberos5/libexec/telnetd/Makefile
@@ -15,7 +15,7 @@ SRCS= global.c slc.c state.c sys_term.c telnetd.c \
DPADD= ${LIBUTIL} ${LIBTERMCAP} ${LIBTELNET} ${LIBCRYPTO} ${LIBKRB} \
${LIBCRYPT} ${LIBCOM_ERR}
-LDADD= -lutil -ltermcap -L${TELNETOBJDIR} -ltelnet -lcrypto \
+LDADD= -lutil -ltermcap ${LIBTELNET} -lcrypto \
-L${KRBOBJDIR} -lkrb -lcrypt -lcom_err -lmp
.include <bsd.prog.mk>
diff --git a/kerberos5/usr.bin/telnet/Makefile b/kerberos5/usr.bin/telnet/Makefile
index e3c97f580995..8189235f0d00 100644
--- a/kerberos5/usr.bin/telnet/Makefile
+++ b/kerberos5/usr.bin/telnet/Makefile
@@ -11,7 +11,7 @@ SRCS= authenc.c commands.c main.c network.c ring.c sys_bsd.c \
DPADD= ${LIBTERMCAP} ${LIBTELNET} ${LIBCRYPTO} ${LIBKRB} ${LIBCRYPT} \
${LIBCOM_ERR} ${LIBIPSEC}
-LDADD= -ltermcap -L${TELNETOBJDIR} -ltelnet -lcrypto \
+LDADD= -ltermcap ${LIBTELNET} -lcrypto \
-L${KRBOBJDIR} -lkrb -lcrypt -lcom_err -lmp -lipsec
.include <bsd.prog.mk>
diff --git a/kerberosIV/Makefile.inc b/kerberosIV/Makefile.inc
index 76e419892e8d..e41579265309 100644
--- a/kerberosIV/Makefile.inc
+++ b/kerberosIV/Makefile.inc
@@ -64,9 +64,9 @@ SLOBJDIR= ${.CURDIR}/../../lib/libsl
.endif
.if exists(${.OBJDIR}/../../lib/libtelnet)
-TELNETOBJDIR= ${.OBJDIR}/../../lib/libtelnet
+LIBTELNET= ${.OBJDIR}/../../lib/libtelnet/libtelnet.a
.else
-TELNETOBJDIR= ${.CURDIR}/../../lib/libtelnet
+LIBTELNET= ${.CURDIR}/../../lib/libtelnet/libtelnet.a
.endif
CFLAGS+= -I${.CURDIR}/../../include -Wall -DHAVE_CONFIG_H \
diff --git a/kerberosIV/lib/libtelnet/Makefile b/kerberosIV/lib/libtelnet/Makefile
index d6f4031a411e..35e936e8de46 100644
--- a/kerberosIV/lib/libtelnet/Makefile
+++ b/kerberosIV/lib/libtelnet/Makefile
@@ -2,6 +2,10 @@
LIB= telnet
+INTERNALLIB= yes
+INTERNALSTATICLIB=yes
+NOPIC= yes
+
SRCS= genget.c getent.c misc.c encrypt.c auth.c kerberos.c \
enc_des.c pk.c sra.c
@@ -9,9 +13,8 @@ CFLAGS+= -DHAS_CGETENT -DENCRYPTION -DDES_ENCRYPTION -DAUTHENTICATION \
-DKRB4 -DSRA -I${TELNETDIR} \
-I${KRB4DIR}/lib/krb
-NOPIC= yes
-
-INCLUDES= ${TELNETDIR}/arpa/telnet.h
+INCS= ${TELNETDIR}/arpa/telnet.h
+INCDIR= /usr/include/arpa
#
# Remove obsolete shared libraries, if any. We don't bother moving them
diff --git a/kerberosIV/libexec/telnetd/Makefile b/kerberosIV/libexec/telnetd/Makefile
index 996add453bd7..6b35fa4dffe3 100644
--- a/kerberosIV/libexec/telnetd/Makefile
+++ b/kerberosIV/libexec/telnetd/Makefile
@@ -15,7 +15,7 @@ SRCS= global.c slc.c state.c sys_term.c telnetd.c \
DPADD= ${LIBUTIL} ${LIBTERMCAP} ${LIBTELNET} ${LIBCRYPTO} ${LIBKRB} \
${LIBCRYPT} ${LIBCOM_ERR}
-LDADD= -lutil -ltermcap -L${TELNETOBJDIR} -ltelnet -lcrypto \
+LDADD= -lutil -ltermcap ${LIBTELNET} -lcrypto \
-L${KRBOBJDIR} -lkrb -lcrypt -lcom_err -lmp
.include <bsd.prog.mk>
diff --git a/kerberosIV/usr.bin/telnet/Makefile b/kerberosIV/usr.bin/telnet/Makefile
index e3c97f580995..8189235f0d00 100644
--- a/kerberosIV/usr.bin/telnet/Makefile
+++ b/kerberosIV/usr.bin/telnet/Makefile
@@ -11,7 +11,7 @@ SRCS= authenc.c commands.c main.c network.c ring.c sys_bsd.c \
DPADD= ${LIBTERMCAP} ${LIBTELNET} ${LIBCRYPTO} ${LIBKRB} ${LIBCRYPT} \
${LIBCOM_ERR} ${LIBIPSEC}
-LDADD= -ltermcap -L${TELNETOBJDIR} -ltelnet -lcrypto \
+LDADD= -ltermcap ${LIBTELNET} -lcrypto \
-L${KRBOBJDIR} -lkrb -lcrypt -lcom_err -lmp -lipsec
.include <bsd.prog.mk>
diff --git a/lib/libtelnet/Makefile b/lib/libtelnet/Makefile
index 9e791748797a..8ee712971c55 100644
--- a/lib/libtelnet/Makefile
+++ b/lib/libtelnet/Makefile
@@ -2,9 +2,13 @@
# $FreeBSD$
LIB= telnet
+
+INTERNALLIB=yes
+INTERNALSTATICLIB=yes
+NOPIC= yes
+
SRCS= genget.c getent.c misc.c
CFLAGS+= -DHAS_CGETENT
-NOPIC= true
#
# Remove obsolete shared libraries, if any. We don't bother moving them
diff --git a/libexec/telnetd/Makefile b/libexec/telnetd/Makefile
index 20acad94933a..f366f5360725 100644
--- a/libexec/telnetd/Makefile
+++ b/libexec/telnetd/Makefile
@@ -9,8 +9,15 @@ CFLAGS+=-I${.CURDIR}/../../lib
CFLAGS+=-DINET6
SRCS= global.c slc.c state.c sys_term.c telnetd.c \
termstat.c utility.c
+
+.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 -ltelnet
+LDADD= -lutil -ltermcap ${LIBTELNET}
MAN= telnetd.8
.include <bsd.prog.mk>
diff --git a/secure/Makefile.inc b/secure/Makefile.inc
index ca5d1f4b7d57..9770b35b07b0 100644
--- a/secure/Makefile.inc
+++ b/secure/Makefile.inc
@@ -3,6 +3,11 @@
DISTRIBUTION?=crypto
TELNETDIR= ${.CURDIR}/../../../crypto/telnet
+.if exists(${.OBJDIR}/../../lib/libtelnet)
+LIBTELNET= ${.OBJDIR}/../../lib/libtelnet/libtelnet.a
+.else
+LIBTELNET= ${.CURDIR}/../../lib/libtelnet/libtelnet.a
+.endif
.if exists(${.CURDIR}/../../lib/libcrypt/obj)
CRYPTOBJDIR= ${.CURDIR}/../../lib/libcrypt/obj
diff --git a/secure/lib/libtelnet/Makefile b/secure/lib/libtelnet/Makefile
index 23a0d0e43803..10760d51b871 100644
--- a/secure/lib/libtelnet/Makefile
+++ b/secure/lib/libtelnet/Makefile
@@ -2,14 +2,16 @@
LIB= telnet
+INTERNALLIB= yes
+INTERNALSTATICLIB=yes
+NOPIC= yes
+
SRCS= genget.c getent.c misc.c encrypt.c auth.c \
enc_des.c pk.c
CFLAGS+= -DHAS_CGETENT -DENCRYPTION -DDES_ENCRYPTION -DAUTHENTICATION \
-I${TELNETDIR}
-NOPIC= yes
-
INCS= ${TELNETDIR}/arpa/telnet.h
INCDIR= /usr/include/arpa
diff --git a/secure/libexec/telnetd/Makefile b/secure/libexec/telnetd/Makefile
index 20ec331dc62e..7dffb39d6994 100644
--- a/secure/libexec/telnetd/Makefile
+++ b/secure/libexec/telnetd/Makefile
@@ -15,7 +15,7 @@ SRCS= global.c slc.c state.c sys_term.c telnetd.c \
DPADD= ${LIBUTIL} ${LIBTERMCAP} ${LIBTELNET} ${LIBCRYPTO} ${LIBMP} \
${LIBCRYPT}
-LDADD= -lutil -ltermcap -ltelnet -lcrypto -lcrypt -lmp
+LDADD= -lutil -ltermcap ${LIBTELNET} -lcrypto -lcrypt -lmp
.include <bsd.prog.mk>
diff --git a/secure/usr.bin/telnet/Makefile b/secure/usr.bin/telnet/Makefile
index 0e9db53c08ec..3e6aae234407 100644
--- a/secure/usr.bin/telnet/Makefile
+++ b/secure/usr.bin/telnet/Makefile
@@ -11,7 +11,7 @@ SRCS= authenc.c commands.c main.c network.c ring.c sys_bsd.c \
DPADD= ${LIBTERMCAP} ${LIBTELNET} ${LIBCRYPTO} ${LIBCRYPT} ${LIBMP}
DPADD+= ${LIBIPSEC}
-LDADD= -ltermcap -ltelnet -lcrypto -lcrypt -lmp
+LDADD= -ltermcap ${LIBTELNET} -lcrypto -lcrypt -lmp
LDADD+= -lipsec
.include <bsd.prog.mk>
diff --git a/share/mk/bsd.libnames.mk b/share/mk/bsd.libnames.mk
index b53af03ed262..87981809287f 100644
--- a/share/mk/bsd.libnames.mk
+++ b/share/mk/bsd.libnames.mk
@@ -89,7 +89,6 @@ LIBSS?= ${DESTDIR}${LIBDIR}/libss.a
LIBSSL?= ${DESTDIR}${LIBDIR}/libssl.a # XXX in secure dist, not base
LIBSTDCPLUSPLUS?= ${DESTDIR}${LIBDIR}/libstdc++.a
LIBTACPLUS?= ${DESTDIR}${LIBDIR}/libtacplus.a
-LIBTELNET?= ${DESTDIR}${LIBDIR}/libtelnet.a
LIBTERMCAP?= ${DESTDIR}${LIBDIR}/libtermcap.a
LIBTERMLIB?= "don't use LIBTERMLIB, use LIBTERMCAP"
LIBUTIL?= ${DESTDIR}${LIBDIR}/libutil.a
diff --git a/usr.bin/telnet/Makefile b/usr.bin/telnet/Makefile
index 7ff18c8da0c3..0458220ca370 100644
--- a/usr.bin/telnet/Makefile
+++ b/usr.bin/telnet/Makefile
@@ -41,8 +41,14 @@ CFLAGS+=-DENV_HACK
CFLAGS+=-DSKEY
CFLAGS+=-I${.CURDIR}/../../lib
+.if exists(${.OBJDIR}/../../lib/libtelnet)
+LIBTELNET= ${.OBJDIR}/../../lib/libtelnet/libtelnet.a
+.else
+LIBTELNET= ${.CURDIR}/../../lib/libtelnet/libtelnet.a
+.endif
+
DPADD= ${LIBTERMCAP} ${LIBTELNET}
-LDADD= -ltermcap -ltelnet
+LDADD= -ltermcap ${LIBTELNET}
.if !defined(RELEASE_CRUNCH)
CFLAGS+=-DINET6