]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - lib/Makefile
add -n option to suppress clearing the build tree and add -DNO_CLEAN
[FreeBSD/FreeBSD.git] / lib / Makefile
1 #       @(#)Makefile    8.1 (Berkeley) 6/4/93
2 # $FreeBSD$
3
4 .include <bsd.own.mk>
5
6 # To satisfy shared library or ELF linkage when only the libraries being
7 # built are visible:
8 #
9 # csu must be built before all shared libaries for ELF.
10 # libc must be built before all other shared libraries.
11 # libcom_err must be built before libkrb5 and libpam.
12 # libcrypt must be built before libkrb5 and libpam.
13 # libkvm must be built before libdevstat.
14 # msun must be built before libg++ and libstdc++.
15 # libmd must be built before libatm, libopie, libradius, and libtacplus.
16 # ncurses must be built before libdialog, libedit and libreadline.
17 # libnetgraph must be built before libbsnmp/modules/snmp_netgraph.
18 # libopie must be built before libpam.
19 # libradius must be built before libpam.
20 # librpcsvc must be built before libpam.
21 # libsbuf must be built before libcam.
22 # libtacplus must be built before libpam.
23 # libutil must be built before libpam.
24 # libypclnt must be built before libpam.
25 # libgssapi must be built before librpcsec_gss
26 #
27 # Otherwise, the SUBDIR list should be in alphabetical order.
28
29 SUBDIR= ${_csu} libc libbsm libcom_err libcrypt libelf libkvm msun libmd \
30         ncurses ${_libnetgraph} libradius librpcsvc libsbuf \
31         libtacplus libutil ${_libypclnt} libalias libarchive ${_libatm} \
32         libbegemot ${_libbluetooth} ${_libbsnmp} libbz2 \
33         libcalendar libcam libcompat libdevinfo libdevstat libdisk \
34         libdwarf libedit libexpat libfetch libftpio libgeom ${_libgpib} \
35         ${_libgssapi} ${_librpcsec_gss} libipsec \
36         ${_libipx} libkiconv libmagic libmemstat ${_libmilter} ${_libmp} \
37         ${_libncp} ${_libngatm} libopie libpam libpcap \
38         ${_libpmc} libproc librt ${_libsdp} ${_libsm} ${_libsmb} \
39         ${_libsmdb} \
40         ${_libsmutil} libstand ${_libtelnet} ${_libthr} libthread_db libufs \
41         libugidfw ${_libusbhid} ${_libvgl} libwrap liby libz ${_bind}
42
43 .if exists(${.CURDIR}/csu/${MACHINE_ARCH}-elf)
44 _csu=csu/${MACHINE_ARCH}-elf
45 .elif exists(${.CURDIR}/csu/${MACHINE_ARCH}/Makefile)
46 _csu=csu/${MACHINE_ARCH}
47 .else
48 _csu=csu
49 .endif
50
51 # NB: keep these sorted by MK_* knobs
52
53 .if ${MK_ATM} != "no"
54 _libngatm=      libngatm
55 .endif
56
57 .if ${MK_BIND} != "no"
58 _bind=          bind
59 .endif
60
61 .if ${MK_BLUETOOTH} != "no"
62 _libbluetooth=  libbluetooth
63 _libsdp=        libsdp
64 .endif
65
66 .if ${MK_BSNMP} != "no"
67 _libbsnmp=      libbsnmp
68 .endif
69
70 .if ${MK_GPIB} != "no"
71 _libgpib=       libgpib
72 .endif
73
74 .if ${MK_GSSAPI} != "no"
75 _libgssapi=     libgssapi
76 _librpcsec_gss= librpcsec_gss
77 .endif
78
79 .if ${MK_IPX} != "no"
80 _libipx=        libipx
81 .endif
82
83 .if ${MK_LIBTHR} != "no"
84 _libthr=        libthr
85 .endif
86
87 .if ${MK_NETGRAPH} != "no"
88 _libnetgraph=   libnetgraph
89 .endif
90
91 .if ${MK_NIS} != "no"
92 _libypclnt=     libypclnt
93 .endif
94
95 .if ${MACHINE_ARCH} == "i386"
96 .if ${MK_NCP} != "no"
97 _libncp=        libncp
98 .endif
99 _libsmb=        libsmb
100 _libvgl=        libvgl
101 .endif
102
103 .if ${MACHINE_ARCH} == "ia64"
104 _libsmb=        libsmb
105 .endif
106
107 .if ${MACHINE_ARCH} == "amd64"
108 .if ${MK_NCP} != "no"
109 _libncp=        libncp
110 .endif
111 _libsmb=        libsmb
112 .endif
113
114 .if ${MACHINE_ARCH} == "powerpc"
115 _libsmb=        libsmb
116 .endif
117
118 .if ${MK_OPENSSL} != "no"
119 _libmp=         libmp
120 .endif
121
122 .if ${MK_PMC} != "no"
123 _libpmc=        libpmc
124 .endif
125
126 .if ${MK_SENDMAIL} != "no"
127 _libmilter=     libmilter
128 _libsm=         libsm
129 _libsmdb=       libsmdb
130 _libsmutil=     libsmutil
131 .endif
132
133 .if ${MK_TELNET} != "no"
134 _libtelnet=     libtelnet
135 .endif
136
137 .if ${MK_USB} != "no"
138 _libusbhid=     libusbhid
139 .endif
140
141 .include <bsd.subdir.mk>