1994-05-27 01:00:24 -04:00
|
|
|
# @(#)Makefile 8.1 (Berkeley) 6/4/93
|
1999-08-27 20:22:10 -04:00
|
|
|
# $FreeBSD$
|
1998-03-19 11:56:58 -05:00
|
|
|
|
|
|
|
|
# To satisfy shared library or ELF linkage when only the libraries being
|
|
|
|
|
# built are visible:
|
|
|
|
|
#
|
1998-09-02 11:02:18 -04:00
|
|
|
# csu must be built before all shared libaries for ELF.
|
Very big makeover in the way telnet, telnetd and libtelnet are built.
Previously, there were two copies of telnet; a non-crypto version
that lived in the usual places, and a crypto version that lived in
crypto/telnet/. The latter was built in a broken manner somewhat akin
to other "contribified" sources. This meant that there were 4 telnets
competing with each other at build time - KerberosIV, Kerberos5,
plain-old-secure and base. KerberosIV is no longer in the running, but
the other three took it in turns to jump all over each other during a
"make buildworld".
As the crypto issue has been clarified, and crypto _calls_ are not
a problem, crypto/telnet has been repo-copied to contrib/telnet,
and with this commit, all telnets are now "contribified". The contrib
path was chosen to not destroy history in the repository, and differs
from other contrib/ entries in that it may be worked on as "normal"
BSD code. There is no dangerous crypto in these sources, only a
very weak system less strong than enigma(1).
Kerberos5 telnet and Secure telnet are now selected by using the usual
macros in /etc/make.conf, and the build process is unsurprising and
less treacherous.
2003-07-16 16:59:15 -04:00
|
|
|
# libcom_err must be built before libkrb5 and libpam.
|
|
|
|
|
# libcrypt must be built before libkrb5 and libpam.
|
2001-08-04 14:25:48 -04:00
|
|
|
# libkvm must be built before libdevstat.
|
2000-05-02 10:16:19 -04:00
|
|
|
# msun must be built before libg++ and libstdc++.
|
2001-07-09 13:52:34 -04:00
|
|
|
# libmd must be built before libatm, libopie, libradius, and libtacplus.
|
1999-09-01 02:21:52 -04:00
|
|
|
# libncurses must be built before libdialog, libedit and libreadline.
|
2003-11-12 12:09:13 -05:00
|
|
|
# libnetgraph must be built before libbsnmp/modules/snmp_netgraph.
|
2000-04-18 02:13:06 -04:00
|
|
|
# libopie must be built before libpam.
|
1998-11-19 21:03:45 -05:00
|
|
|
# libradius must be built before libpam.
|
2001-08-26 13:49:51 -04:00
|
|
|
# librpcsvc must be built before libpam.
|
2002-04-14 18:27:12 -04:00
|
|
|
# libsbuf must be built before libcam.
|
1998-11-19 21:03:45 -05:00
|
|
|
# libtacplus must be built before libpam.
|
2000-01-15 23:43:11 -05:00
|
|
|
# libutil must be built before libpam.
|
2002-04-14 18:27:12 -04:00
|
|
|
# libypclnt must be built before libpam.
|
1998-03-19 11:56:58 -05:00
|
|
|
#
|
|
|
|
|
# Otherwise, the SUBDIR list should be in alphabetical order.
|
|
|
|
|
|
2003-11-12 12:09:13 -05:00
|
|
|
SUBDIR= ${_csu} libcom_err libcrypt libkvm msun libmd libncurses \
|
2004-03-10 03:58:06 -05:00
|
|
|
libnetgraph libradius librpcsvc libsbuf libtacplus libutil \
|
|
|
|
|
${_libypclnt} ${_compat} libalias libarchive ${_libatm} ${_libbind} \
|
2003-11-10 04:18:04 -05:00
|
|
|
${_libbluetooth} libbsnmp libbz2 libc ${_libc_r} \
|
2003-02-20 21:30:51 -05:00
|
|
|
libcalendar libcam libcompat libdevinfo libdevstat ${_libdisk} \
|
2003-02-08 10:17:49 -05:00
|
|
|
libedit libexpat libfetch libform libftpio libgeom ${_libio} libipsec \
|
2003-09-26 16:26:25 -04:00
|
|
|
libipx libisc libkiconv libmenu ${_libmilter} ${_libmp} ${_libncp} \
|
2003-11-12 12:09:13 -05:00
|
|
|
${_libngatm} libopie libpam libpanel libpcap \
|
2003-10-22 11:01:16 -04:00
|
|
|
${_libpthread} ${_libsdp} ${_libsm} ${_libsmb} ${_libsmdb} \
|
|
|
|
|
${_libsmutil} libstand libtelnet ${_libthr} libufs libugidfw \
|
|
|
|
|
${_libusbhid} ${_libvgl} libwrap libxpg4 liby libz
|
1994-05-27 01:00:24 -04:00
|
|
|
|
2002-09-16 21:49:00 -04:00
|
|
|
.if exists(${.CURDIR}/csu/${MACHINE_ARCH}-elf)
|
|
|
|
|
_csu=csu/${MACHINE_ARCH}-elf
|
2001-02-10 02:07:09 -05:00
|
|
|
.elif exists(${.CURDIR}/csu/${MACHINE_ARCH}/Makefile)
|
1998-03-19 11:56:58 -05:00
|
|
|
_csu=csu/${MACHINE_ARCH}
|
2001-02-10 02:07:09 -05:00
|
|
|
.else
|
|
|
|
|
_csu=csu
|
1998-01-09 14:46:30 -05:00
|
|
|
.endif
|
|
|
|
|
|
2003-06-27 03:41:51 -04:00
|
|
|
# libc_r is obsolete on ia64.
|
2003-08-16 17:21:07 -04:00
|
|
|
.if ${MACHINE_ARCH} != "ia64" && ${MACHINE_ARCH} != "powerpc"
|
2003-01-05 19:56:23 -05:00
|
|
|
.if !defined(NOLIBC_R)
|
1998-03-19 11:56:58 -05:00
|
|
|
_libc_r= libc_r
|
1998-03-08 18:24:05 -05:00
|
|
|
.endif
|
2003-06-27 03:41:51 -04:00
|
|
|
.endif
|
1997-04-12 03:06:08 -04:00
|
|
|
|
2003-08-27 16:00:48 -04:00
|
|
|
.if !defined(NOATM)
|
|
|
|
|
_libatm= libatm
|
2003-10-22 11:01:16 -04:00
|
|
|
_libngatm= libngatm
|
2003-08-27 16:00:48 -04:00
|
|
|
.endif
|
|
|
|
|
|
1999-11-30 01:13:10 -05:00
|
|
|
.if !defined(NO_BIND)
|
1999-11-29 23:22:25 -05:00
|
|
|
_libbind= libbind
|
|
|
|
|
.endif
|
|
|
|
|
|
2001-11-11 00:26:59 -05:00
|
|
|
.if !defined(NO_SENDMAIL)
|
2002-02-17 17:01:40 -05:00
|
|
|
_libmilter= libmilter
|
|
|
|
|
_libsm= libsm
|
2001-11-11 00:26:59 -05:00
|
|
|
_libsmdb= libsmdb
|
|
|
|
|
_libsmutil= libsmutil
|
|
|
|
|
.endif
|
|
|
|
|
|
2003-08-29 06:35:01 -04:00
|
|
|
.if !defined(NO_USB)
|
|
|
|
|
_libusbhid= libusbhid
|
|
|
|
|
.endif
|
|
|
|
|
|
1998-03-19 11:56:58 -05:00
|
|
|
.if ${MACHINE_ARCH} == "i386"
|
2004-01-27 19:42:51 -05:00
|
|
|
.if !defined(NO_BLUETOOTH)
|
2003-10-12 18:04:24 -04:00
|
|
|
_libbluetooth= libbluetooth
|
|
|
|
|
_libsdp= libsdp
|
2004-01-27 19:42:51 -05:00
|
|
|
.endif
|
|
|
|
|
_compat= compat
|
|
|
|
|
_libncp= libncp
|
2001-12-14 18:11:45 -05:00
|
|
|
_libsmb= libsmb
|
1998-03-19 11:56:58 -05:00
|
|
|
_libvgl= libvgl
|
2003-05-31 20:32:21 -04:00
|
|
|
.endif
|
|
|
|
|
|
1998-12-17 18:02:11 -05:00
|
|
|
.if ${MACHINE_ARCH} == "alpha"
|
|
|
|
|
_libio= libio
|
2001-02-10 02:07:09 -05:00
|
|
|
_compat= compat
|
1998-12-17 18:02:11 -05:00
|
|
|
.endif
|
|
|
|
|
|
2003-07-23 22:05:48 -04:00
|
|
|
.if ${MACHINE_ARCH} == "amd64"
|
|
|
|
|
_libncp= libncp
|
|
|
|
|
_libsmb= libsmb
|
2003-08-09 11:29:52 -04:00
|
|
|
.endif
|
|
|
|
|
|
2004-02-19 22:42:34 -05:00
|
|
|
.if ${MACHINE_ARCH} != "powerpc"
|
2003-08-08 17:16:06 -04:00
|
|
|
.if !defined(NOLIBPTHREAD)
|
|
|
|
|
_libpthread= libpthread
|
|
|
|
|
.endif
|
2003-07-23 22:05:48 -04:00
|
|
|
.endif
|
|
|
|
|
|
2004-03-02 01:26:37 -05:00
|
|
|
.if ${MACHINE_ARCH} != "amd64"
|
2003-07-19 21:34:40 -04:00
|
|
|
.if !defined(NOLIBTHR)
|
|
|
|
|
_libthr= libthr
|
|
|
|
|
.endif
|
|
|
|
|
.endif
|
|
|
|
|
|
2003-02-20 21:30:51 -05:00
|
|
|
.if ${MACHINE_ARCH} != "powerpc"
|
2003-04-30 03:13:50 -04:00
|
|
|
_libdisk= libdisk
|
2003-02-20 21:30:51 -05:00
|
|
|
.endif
|
|
|
|
|
|
2003-07-24 14:30:25 -04:00
|
|
|
.if !defined(NOCRYPT) && !defined(NO_OPENSSL)
|
2001-08-02 11:47:03 -04:00
|
|
|
_libmp= libmp
|
|
|
|
|
.endif
|
|
|
|
|
|
2004-03-10 03:58:06 -05:00
|
|
|
.if !defined(NO_YP_LIBC)
|
|
|
|
|
_libypclnt= libypclnt
|
|
|
|
|
.endif
|
|
|
|
|
|
1994-05-27 01:00:24 -04:00
|
|
|
.include <bsd.subdir.mk>
|