]> CyberLeo.Net >> Repos - FreeBSD/releng/7.2.git/blob - lib/Makefile
Change the current working directory to be inside the jail created by
[FreeBSD/releng/7.2.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 #
26 # Otherwise, the SUBDIR list should be in alphabetical order.
27
28 SUBDIR= ${_csu} libc libbsm libcom_err libcrypt libelf libkvm msun libmd \
29         ncurses ${_libnetgraph} libradius librpcsvc libsbuf \
30         libtacplus libutil ${_libypclnt} libalias libarchive ${_libatm} \
31         libbegemot ${_libbluetooth} ${_libbsnmp} libbz2 \
32         libcalendar libcam libcompat libdevinfo libdevstat libdisk \
33         libdwarf libedit libexpat libfetch libftpio libgeom ${_libgpib} \
34         ${_libgssapi} libipsec \
35         ${_libipx} libkiconv libmagic libmemstat ${_libmilter} ${_libmp} \
36         ${_libncp} ${_libngatm} libopie libpam libpcap \
37         ${_libpmc} libproc ${_libkse} librt ${_libsdp} ${_libsm} ${_libsmb} \
38         ${_libsmdb} \
39         ${_libsmutil} libstand ${_libtelnet} ${_libthr} libthread_db libufs \
40         libugidfw ${_libusbhid} ${_libvgl} libwrap liby libz ${_bind}
41
42 .if exists(${.CURDIR}/csu/${MACHINE_ARCH}-elf)
43 _csu=csu/${MACHINE_ARCH}-elf
44 .elif exists(${.CURDIR}/csu/${MACHINE_ARCH}/Makefile)
45 _csu=csu/${MACHINE_ARCH}
46 .else
47 _csu=csu
48 .endif
49
50 # NB: keep these sorted by MK_* knobs
51
52 .if ${MK_ATM} != "no"
53 _libngatm=      libngatm
54 .endif
55
56 .if ${MK_BIND} != "no"
57 _bind=          bind
58 .endif
59
60 .if ${MK_BLUETOOTH} != "no"
61 _libbluetooth=  libbluetooth
62 _libsdp=        libsdp
63 .endif
64
65 .if ${MK_BSNMP} != "no"
66 _libbsnmp=      libbsnmp
67 .endif
68
69 .if ${MK_GPIB} != "no"
70 _libgpib=       libgpib
71 .endif
72
73 .if ${MK_GSSAPI} != "no"
74 _libgssapi=     libgssapi
75 .endif
76
77 .if ${MK_IPX} != "no"
78 _libipx=        libipx
79 .endif
80
81 .if ${MK_LIBKSE} != "no"
82 _libkse=        libkse
83 .endif
84
85 .if ${MK_LIBTHR} != "no"
86 _libthr=        libthr
87 .endif
88
89 .if ${MK_NETGRAPH} != "no"
90 _libnetgraph=   libnetgraph
91 .endif
92
93 .if ${MK_NIS} != "no"
94 _libypclnt=     libypclnt
95 .endif
96
97 .if ${MACHINE_ARCH} == "i386"
98 .if ${MK_NCP} != "no"
99 _libncp=        libncp
100 .endif
101 _libsmb=        libsmb
102 _libvgl=        libvgl
103 .endif
104
105 .if ${MACHINE_ARCH} == "ia64"
106 _libsmb=        libsmb
107 .endif
108
109 .if ${MACHINE_ARCH} == "amd64"
110 .if ${MK_NCP} != "no"
111 _libncp=        libncp
112 .endif
113 _libsmb=        libsmb
114 .endif
115
116 .if ${MACHINE_ARCH} == "powerpc"
117 _libsmb=        libsmb
118 .endif
119
120 .if ${MK_OPENSSL} != "no"
121 _libmp=         libmp
122 .endif
123
124 .if ${MK_PMC} != "no"
125 _libpmc=        libpmc
126 .endif
127
128 .if ${MK_SENDMAIL} != "no"
129 _libmilter=     libmilter
130 _libsm=         libsm
131 _libsmdb=       libsmdb
132 _libsmutil=     libsmutil
133 .endif
134
135 .if ${MK_TELNET} != "no"
136 _libtelnet=     libtelnet
137 .endif
138
139 .if ${MK_USB} != "no"
140 _libusbhid=     libusbhid
141 .endif
142
143 .include <bsd.subdir.mk>