]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - lib/Makefile
Switch to new ncurses build glue
[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 # libcom_err must be built before libkrb5 and libpam.
11 # libcrypt must be built before libkrb5 and libpam.
12 # libkvm must be built before libdevstat.
13 # msun must be built before libg++ and libstdc++.
14 # libmd must be built before libatm, libopie, libradius, and libtacplus.
15 # ncurses must be built before libdialog, libedit and libreadline.
16 # libnetgraph must be built before libbsnmp/modules/snmp_netgraph.
17 # libopie must be built before libpam.
18 # libradius must be built before libpam.
19 # librpcsvc must be built before libpam.
20 # libsbuf must be built before libcam.
21 # libtacplus must be built before libpam.
22 # libutil must be built before libpam.
23 # libypclnt must be built before libpam.
24 #
25 # Otherwise, the SUBDIR list should be in alphabetical order.
26
27 SUBDIR= ${_csu} libbsm libcom_err libcrypt libelf libkvm msun libmd ncurses \
28         libnetgraph libradius librpcsvc libsbuf libtacplus libutil \
29         ${_libypclnt} libalias libarchive ${_libatm} \
30         libbegemot ${_libbluetooth} libbsnmp libbz2 libc \
31         libcalendar libcam libcompat libdevinfo libdevstat libdisk \
32         libedit libexpat libfetch libftpio libgeom ${_libgpib} \
33         libgssapi libipsec \
34         ${_libipx} libkiconv libmagic libmemstat ${_libmilter} ${_libmp} \
35         ${_libncp} ${_libngatm} libopie libpam libpcap \
36         libpmc ${_libpthread} librt ${_libsdp} ${_libsm} ${_libsmb} \
37         ${_libsmdb} \
38         ${_libsmutil} libstand libtelnet ${_libthr} ${_libthread_db} libufs \
39         libugidfw ${_libusbhid} ${_libvgl} libwrap liby libz ${_bind}
40
41 .if exists(${.CURDIR}/csu/${MACHINE_ARCH}-elf)
42 _csu=csu/${MACHINE_ARCH}-elf
43 .elif exists(${.CURDIR}/csu/${MACHINE_ARCH}/Makefile)
44 _csu=csu/${MACHINE_ARCH}
45 .else
46 _csu=csu
47 .endif
48
49 .if ${MK_ATM} != "no"
50 _libatm=        libatm
51 _libngatm=      libngatm
52 .endif
53
54 .if ${MK_BIND} != "no"
55 _bind=          bind
56 .endif
57
58 .if ${MK_BLUETOOTH} != "no"
59 _libbluetooth=  libbluetooth
60 _libsdp=        libsdp
61 .endif
62
63 .if ${MK_IPX} != "no"
64 _libipx=        libipx
65 .endif
66
67 .if ${MACHINE_ARCH} == "i386"
68 .if ${MK_NCP} != "no"
69 _libncp=        libncp
70 .endif
71 _libsmb=        libsmb
72 _libvgl=        libvgl
73 .endif
74
75 .if ${MACHINE_ARCH} == "ia64"
76 _libsmb=        libsmb
77 .endif
78
79 .if ${MK_SENDMAIL} != "no"
80 _libmilter=     libmilter
81 _libsm=         libsm
82 _libsmdb=       libsmdb
83 _libsmutil=     libsmutil
84 .endif
85
86 .if ${MK_OPENSSL} != "no"
87 _libmp=         libmp
88 .endif
89
90 .if ${MACHINE_ARCH} == "amd64"
91 .if ${MK_NCP} != "no"
92 _libncp=        libncp
93 .endif
94 _libsmb=        libsmb
95 .endif
96
97 .if ${MACHINE_ARCH} == "powerpc"
98 _libsmb=        libsmb
99 .endif
100
101 .if ${MK_LIBPTHREAD} != "no"
102 _libpthread=    libpthread
103 .endif
104
105 .if ${MK_LIBTHR} != "no"
106 _libthr= libthr
107 .endif
108
109 .if ${MACHINE_ARCH} != "arm"
110 _libthread_db= libthread_db
111 .endif
112
113 .if ${MK_USB} != "no"
114 _libusbhid=     libusbhid
115 .endif
116
117 .if ${MK_NIS} != "no"
118 _libypclnt=     libypclnt
119 .endif
120
121 .if ${MK_GPIB} != "no"
122 _libgpib=       libgpib
123 .endif
124
125 .include <bsd.subdir.mk>