1994-05-27 05:00:24 +00:00
|
|
|
# @(#)Makefile 8.1 (Berkeley) 6/4/93
|
1999-08-28 00:22:10 +00:00
|
|
|
# $FreeBSD$
|
1998-03-19 16:56:58 +00:00
|
|
|
|
2006-03-17 18:54:44 +00:00
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
1998-03-19 16:56:58 +00:00
|
|
|
# To satisfy shared library or ELF linkage when only the libraries being
|
|
|
|
# built are visible:
|
|
|
|
#
|
1998-09-02 15:02:18 +00: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 20:59:15 +00:00
|
|
|
# libcom_err must be built before libkrb5 and libpam.
|
|
|
|
# libcrypt must be built before libkrb5 and libpam.
|
2001-08-04 18:25:48 +00:00
|
|
|
# libkvm must be built before libdevstat.
|
2000-05-02 14:16:19 +00:00
|
|
|
# msun must be built before libg++ and libstdc++.
|
2001-07-09 17:52:34 +00:00
|
|
|
# libmd must be built before libatm, libopie, libradius, and libtacplus.
|
1999-09-01 06:21:52 +00:00
|
|
|
# libncurses must be built before libdialog, libedit and libreadline.
|
2003-11-12 17:09:13 +00:00
|
|
|
# libnetgraph must be built before libbsnmp/modules/snmp_netgraph.
|
2000-04-18 06:13:06 +00:00
|
|
|
# libopie must be built before libpam.
|
1998-11-20 02:03:45 +00:00
|
|
|
# libradius must be built before libpam.
|
2001-08-26 17:49:51 +00:00
|
|
|
# librpcsvc must be built before libpam.
|
2002-04-14 22:27:12 +00:00
|
|
|
# libsbuf must be built before libcam.
|
1998-11-20 02:03:45 +00:00
|
|
|
# libtacplus must be built before libpam.
|
2000-01-16 04:43:11 +00:00
|
|
|
# libutil must be built before libpam.
|
2002-04-14 22:27:12 +00:00
|
|
|
# libypclnt must be built before libpam.
|
1998-03-19 16:56:58 +00:00
|
|
|
#
|
|
|
|
# Otherwise, the SUBDIR list should be in alphabetical order.
|
|
|
|
|
2006-02-02 10:05:39 +00:00
|
|
|
SUBDIR= ${_csu} libbsm libcom_err libcrypt libkvm msun libmd libncurses \
|
2004-03-10 08:58:06 +00:00
|
|
|
libnetgraph libradius librpcsvc libsbuf libtacplus libutil \
|
2004-09-21 19:01:48 +00:00
|
|
|
${_libypclnt} libalias libarchive ${_libatm} \
|
2004-09-24 22:10:34 +00:00
|
|
|
libbegemot ${_libbluetooth} libbsnmp libbz2 libc ${_libc_r} \
|
2006-01-25 11:24:37 +00:00
|
|
|
libcalendar libcam libcompat libdevinfo libdevstat libdisk \
|
2005-02-06 16:45:57 +00:00
|
|
|
libedit libexpat libfetch libform libftpio libgeom ${_libgpib} \
|
2006-08-22 08:03:01 +00:00
|
|
|
libgssapi libipsec \
|
2006-03-20 14:24:58 +00:00
|
|
|
${_libipx} libkiconv libmagic libmemstat libmenu ${_libmilter} ${_libmp} \
|
2004-11-10 22:16:37 +00:00
|
|
|
${_libncp} ${_libngatm} libopie libpam libpanel libpcap \
|
2006-03-09 01:03:58 +00:00
|
|
|
libpmc ${_libpthread} librt ${_libsdp} ${_libsm} ${_libsmb} \
|
|
|
|
${_libsmdb} \
|
2004-07-18 04:36:22 +00:00
|
|
|
${_libsmutil} libstand libtelnet ${_libthr} ${_libthread_db} libufs \
|
2004-11-13 23:54:30 +00:00
|
|
|
libugidfw ${_libusbhid} ${_libvgl} libwrap liby libz ${_bind}
|
1994-05-27 05:00:24 +00:00
|
|
|
|
2002-09-17 01:49:00 +00:00
|
|
|
.if exists(${.CURDIR}/csu/${MACHINE_ARCH}-elf)
|
|
|
|
_csu=csu/${MACHINE_ARCH}-elf
|
2001-02-10 07:07:09 +00:00
|
|
|
.elif exists(${.CURDIR}/csu/${MACHINE_ARCH}/Makefile)
|
1998-03-19 16:56:58 +00:00
|
|
|
_csu=csu/${MACHINE_ARCH}
|
2001-02-10 07:07:09 +00:00
|
|
|
.else
|
|
|
|
_csu=csu
|
1998-01-09 19:46:30 +00:00
|
|
|
.endif
|
|
|
|
|
2006-03-17 18:54:44 +00:00
|
|
|
.if ${MK_ATM} != "no"
|
2003-08-27 20:00:48 +00:00
|
|
|
_libatm= libatm
|
2003-10-22 15:01:16 +00:00
|
|
|
_libngatm= libngatm
|
2003-08-27 20:00:48 +00:00
|
|
|
.endif
|
|
|
|
|
2006-03-17 18:54:44 +00:00
|
|
|
.if ${MK_BIND} != "no"
|
2004-09-21 19:01:48 +00:00
|
|
|
_bind= bind
|
1999-11-30 04:22:25 +00:00
|
|
|
.endif
|
|
|
|
|
2006-03-17 18:54:44 +00:00
|
|
|
.if ${MK_BLUETOOTH} != "no"
|
2003-10-12 22:04:24 +00:00
|
|
|
_libbluetooth= libbluetooth
|
|
|
|
_libsdp= libsdp
|
2004-01-28 00:42:51 +00:00
|
|
|
.endif
|
2004-07-07 22:48:30 +00:00
|
|
|
|
2006-03-20 14:24:58 +00:00
|
|
|
.if ${MK_IPX} != "no"
|
|
|
|
_libipx= libipx
|
|
|
|
.endif
|
|
|
|
|
2004-07-07 22:48:30 +00:00
|
|
|
.if ${MACHINE_ARCH} == "i386"
|
2006-03-20 14:24:58 +00:00
|
|
|
.if ${MK_NCP} != "no"
|
2004-01-28 00:42:51 +00:00
|
|
|
_libncp= libncp
|
2006-03-20 14:24:58 +00:00
|
|
|
.endif
|
2001-12-14 23:11:45 +00:00
|
|
|
_libsmb= libsmb
|
1998-03-19 16:56:58 +00:00
|
|
|
_libvgl= libvgl
|
2003-06-01 00:32:21 +00:00
|
|
|
.endif
|
|
|
|
|
2006-08-22 03:22:17 +00:00
|
|
|
.if ${MACHINE_ARCH} == "ia64"
|
|
|
|
_libsmb= libsmb
|
|
|
|
.endif
|
|
|
|
|
2004-05-14 19:52:35 +00:00
|
|
|
.if ${MACHINE_ARCH} != "arm" && ${MACHINE_ARCH} != "ia64" && \
|
2006-03-17 18:54:44 +00:00
|
|
|
${MACHINE_ARCH} != "powerpc" && ${MK_LIBC_R} != "no"
|
2005-10-27 03:09:20 +00:00
|
|
|
_libc_r=
|
2004-05-14 19:31:20 +00:00
|
|
|
.endif
|
|
|
|
|
2006-03-17 18:54:44 +00:00
|
|
|
.if ${MK_SENDMAIL} != "no"
|
2004-05-14 19:31:20 +00:00
|
|
|
_libmilter= libmilter
|
|
|
|
_libsm= libsm
|
|
|
|
_libsmdb= libsmdb
|
|
|
|
_libsmutil= libsmutil
|
|
|
|
.endif
|
|
|
|
|
2006-03-17 18:54:44 +00:00
|
|
|
.if ${MK_OPENSSL} != "no"
|
2004-05-14 19:31:20 +00:00
|
|
|
_libmp= libmp
|
|
|
|
.endif
|
|
|
|
|
2003-07-24 02:05:48 +00:00
|
|
|
.if ${MACHINE_ARCH} == "amd64"
|
2006-03-20 14:24:58 +00:00
|
|
|
.if ${MK_NCP} != "no"
|
2003-07-24 02:05:48 +00:00
|
|
|
_libncp= libncp
|
2006-03-20 14:24:58 +00:00
|
|
|
.endif
|
2003-07-24 02:05:48 +00:00
|
|
|
_libsmb= libsmb
|
2003-08-09 15:29:52 +00:00
|
|
|
.endif
|
|
|
|
|
2005-09-19 08:13:43 +00:00
|
|
|
.if ${MACHINE_ARCH} == "powerpc"
|
|
|
|
_libsmb= libsmb
|
|
|
|
.endif
|
|
|
|
|
2006-03-17 18:54:44 +00:00
|
|
|
.if ${MK_LIBPTHREAD} != "no"
|
2003-08-08 21:16:06 +00:00
|
|
|
_libpthread= libpthread
|
|
|
|
.endif
|
2003-07-24 02:05:48 +00:00
|
|
|
|
2006-03-17 18:54:44 +00:00
|
|
|
.if ${MK_LIBTHR} != "no"
|
2005-04-02 01:40:12 +00:00
|
|
|
_libthr= libthr
|
2003-07-20 01:34:40 +00:00
|
|
|
.endif
|
|
|
|
|
2006-08-04 17:56:31 +00:00
|
|
|
.if ${MACHINE_ARCH} != "arm"
|
2005-04-02 01:40:12 +00:00
|
|
|
_libthread_db= libthread_db
|
2004-07-18 04:36:22 +00:00
|
|
|
.endif
|
|
|
|
|
2006-03-17 18:54:44 +00:00
|
|
|
.if ${MK_USB} != "no"
|
2004-05-14 19:31:20 +00:00
|
|
|
_libusbhid= libusbhid
|
2001-08-02 15:47:03 +00:00
|
|
|
.endif
|
|
|
|
|
2006-03-17 18:54:44 +00:00
|
|
|
.if ${MK_NIS} != "no"
|
2004-03-10 08:58:06 +00:00
|
|
|
_libypclnt= libypclnt
|
|
|
|
.endif
|
|
|
|
|
2006-03-17 18:54:44 +00:00
|
|
|
.if ${MK_GPIB} != "no"
|
2005-02-06 16:45:57 +00:00
|
|
|
_libgpib= libgpib
|
|
|
|
.endif
|
|
|
|
|
1994-05-27 05:00:24 +00:00
|
|
|
.include <bsd.subdir.mk>
|