xref: /freebsd/lib/Makefile (revision 6a7a98c9547fe5dd33efbd39d523ec094355d6db)
158f0484fSRodney W. Grimes#	@(#)Makefile	8.1 (Berkeley) 6/4/93
258f0484fSRodney W. Grimes
358f0484fSRodney W. Grimes.if	${MACHINE} == "tahoe"
4f06e7c2eSPaul RichardsSUBDIR=csu/tahoe.pcc
558f0484fSRodney W. Grimes.elif	${MACHINE} == "vax"
6f06e7c2eSPaul RichardsSUBDIR=csu/vax.pcc
76a7a98c9SJohn Birrell.elif	exists(${.CURDIR}/csu/${MACHINE})
8f06e7c2eSPaul RichardsSUBDIR=csu/${MACHINE}
958f0484fSRodney W. Grimes.endif
1058f0484fSRodney W. Grimes
116a7a98c9SJohn Birrell# Don't want to build libc on alpha just yet
12b09f41a4SJohn Birrell.if	${MACHINE} != "alpha"
13b09f41a4SJohn BirrellSUBDIR+=libc
14b09f41a4SJohn Birrell.endif
15b09f41a4SJohn Birrell
163fcee20fSMark Murray# XXX MISSING:		libplot
17b09f41a4SJohn BirrellSUBDIR+=libalias libcalendar libcompat libcom_err libcurses libdisk \
18974c4211SWolfgang Helbig	libedit libf2c libftpio libgnumalloc libipx libkvm libmd libmytinfo \
1900a825f7SPaul Traina	libncurses libopie libpcap libresolv librpcsvc \
20805af840SSøren Schmidt	libscsi libskey libss libtermcap libutil libvgl libxpg4 liby libz
21f547de18SMark Murray
22b09f41a4SJohn Birrell.if !defined(NOLIBC_R) && ${MACHINE} != "alpha"
230f7d6847SJulian ElischerSUBDIR+= libc_r
240f7d6847SJulian Elischer.endif
250f7d6847SJulian Elischer
26ff2edf0cSPeter Wemm.if !defined(NOTCL) && exists (${.CURDIR}/../contrib/tcl) && \
27ff2edf0cSPeter Wemm	exists(${.CURDIR}/../usr.bin/tclsh) && exists (${.CURDIR}/libtcl)
28ff2edf0cSPeter WemmSUBDIR+=libtcl
29ff2edf0cSPeter Wemm.endif
30ff2edf0cSPeter Wemm
31d4c468e3SPoul-Henning Kamp.if !exists(${.CURDIR}/../secure) || defined(NOSECURE) || defined(NOCRYPT)
32e6af2dc8SAndrey A. ChernovSUBDIR+= libcrypt
33e6af2dc8SAndrey A. Chernov.else
34e6af2dc8SAndrey A. ChernovSUBDIR+= ../secure/lib/libcrypt
357c2f56ccSJoerg Wunsch.if defined(RELEASEDIR)
367c2f56ccSJoerg Wunsch# releases do need both libraries
377c2f56ccSJoerg WunschSUBDIR+= libcrypt
387c2f56ccSJoerg Wunsch.endif
39e6af2dc8SAndrey A. Chernov.endif
40e6af2dc8SAndrey A. Chernov
410e8089efSMark Murray.if defined(RELEASEDIR) || !exists(${.CURDIR}/../kerberosIV) || defined(NOCRYPT) || !defined(MAKE_KERBEROS4)
42eb5bc2e7SJoerg Wunsch# releases do need both libraries
43eb5bc2e7SJoerg WunschSUBDIR+= libtelnet
44eb5bc2e7SJoerg Wunsch.endif
45f06e7c2eSPaul Richards
466a7a98c9SJohn Birrell# Don't want to build libm on alpha just yet
476a7a98c9SJohn Birrell.if ${MACHINE} != "alpha"
486a7a98c9SJohn Birrell.if defined(WANT_CSRG_LIBM)
49b6059979SJordan K. HubbardSUBDIR+= libm
50b6059979SJordan K. Hubbard.else
51b6059979SJordan K. HubbardSUBDIR+= msun
52b6059979SJordan K. Hubbard.endif
536a7a98c9SJohn Birrell.endif
54b6059979SJordan K. Hubbard
558ff10292SPeter WemmSUBDIR+= compat
568ff10292SPeter Wemm
5758f0484fSRodney W. Grimes.include <bsd.subdir.mk>
58