Annotation of src/lib/Makefile, Revision 1.203
1.203 ! joerg 1: # $NetBSD: Makefile,v 1.202 2013/04/27 23:02:22 joerg Exp $
1.8 mycroft 2: # from: @(#)Makefile 5.25.1.1 (Berkeley) 5/7/91
1.21 cgd 3:
1.62 thorpej 4: .include <bsd.own.mk>
5:
1.188 joerg 6: SUBDIR= csu .WAIT
1.155 plunky 7:
8: .if (${MKGCC} != "no")
1.169 mrg 9: . if ${HAVE_GCC} == 4
10: . if (${USE_COMPILERCRTSTUFF} == "yes")
1.188 joerg 11: SUBDIR+= ../gnu/lib/crtstuff4 .WAIT
1.169 mrg 12: . endif
1.188 joerg 13: SUBDIR+= ../gnu/lib/libgcc4 .WAIT
1.169 mrg 14: . else
15: . if (${USE_COMPILERCRTSTUFF} == "yes")
1.188 joerg 16: SUBDIR+= ../external/gpl3/gcc/lib/crtstuff .WAIT
1.169 mrg 17: . endif
1.188 joerg 18: SUBDIR+= ../external/gpl3/gcc/lib/libgcc .WAIT
1.169 mrg 19: . endif
1.155 plunky 20: .endif
21:
22: SUBDIR+= libc
23: SUBDIR+= .WAIT
24:
25: #
26: # The SUBDIRs above are included here for completeness but should be built
27: # and installed prior to make(dependall) in this file, as libraries listed
28: # below will depend on versions from DESTDIR only.
29: #
30:
1.158 plunky 31: SUBDIR+= i18n_module
32:
33: SUBDIR+= libarch \
34: libbluetooth libbsdmalloc libbz2 \
1.184 matt 35: libcompat libcrypt \
1.159 agc 36: libintl libipsec libisns libkvm libm \
1.158 plunky 37: libossaudio libpci libpmc libposix libprop libpthread \
38: libpthread_dbg libpuffs libresolv librmt librpcsvc librt \
1.187 christos 39: libtelnet libterminfo \
1.158 plunky 40: libusbhid libutil libwrap liby libz
41:
1.201 matt 42: .if (${MACHINE_CPU} == "arm")
43: LIBC_MACHINE_ARCH?=${MACHINE_ARCH}
44: .if empty(LIBC_MACHINE_ARCH:M*hf*)
1.197 matt 45: SUBDIR+= libc_vfp
46: .endif
1.201 matt 47: .endif
1.187 christos 48: .if (${MKRUMP} != "no")
49: SUBDIR+= librumpclient
50: .endif
1.158 plunky 51: .if (${MKSKEY} != "no")
52: SUBDIR+= libskey
53: .endif
1.60 thorpej 54:
1.158 plunky 55: .if (${MKCRYPTO} != "no")
56: SUBDIR+= ../crypto/external/bsd/netpgp/libmj
1.196 agc 57: SUBDIR+= ../crypto/external/bsd/netpgp/lib/verify
1.158 plunky 58: .endif
1.156 christos 59:
1.155 plunky 60: .if (${MKMDNS} != "no")
61: SUBDIR+= ../external/apache2/mDNSResponder/lib
62: .endif
63:
64: SUBDIR+= ../external/bsd/am-utils/lib
65:
66: SUBDIR+= ../external/bsd/flex/lib
1.180 christos 67: SUBDIR+= ../external/bsd/tre/lib
1.155 plunky 68: SUBDIR+= ../external/bsd/libdwarf/lib
69: SUBDIR+= ../external/bsd/libelf/lib
1.163 matt 70: SUBDIR+= ../external/bsd/liblzf/lib
1.158 plunky 71: SUBDIR+= ../external/bsd/libpcap/lib
1.155 plunky 72:
73: SUBDIR+= ../external/mit/lua/lib
1.182 tron 74: SUBDIR+= ../external/mit/expat/lib
1.155 plunky 75:
1.179 joerg 76: SUBDIR+= ../external/public-domain/sqlite/lib
1.155 plunky 77: SUBDIR+= ../external/public-domain/xz/lib
78:
79: SUBDIR+= ../gnu/lib/libmalloc
80:
81: .if (${MKGCC} != "no")
1.168 mrg 82: . if ${HAVE_GCC} == 4
1.155 plunky 83: SUBDIR+= ../gnu/lib/libobjc4
1.170 mrg 84: . else
85: SUBDIR+= ../external/gpl3/gcc/lib/libobjc
1.177 mrg 86: SUBDIR+= ../external/gpl3/gcc/lib/libgomp
1.168 mrg 87: . endif
1.174 plunky 88: . if ${HAVE_GCC} >= 45 && !defined(MLIBDIR)
1.173 mrg 89: # Should probably move GMP, MPFR and MPC builds into the GCC >= 4.5
90: # specific build area, but we get better parallelism this way.
1.172 matt 91: SUBDIR+= ../external/lgpl3/gmp/lib/libgmp
1.174 plunky 92: SUBDIR+= ../external/lgpl3/mpfr/lib/libmpfr
93: SUBDIR+= ../external/lgpl2/mpc/lib/libmpc
94: . endif
1.155 plunky 95: .endif
1.144 christos 96:
1.89 lukem 97: #
98: # Libraries that depend upon any listed previously
1.93 lukem 99: # (and those that depend upon these [and ...])
1.89 lukem 100: #
1.97 christos 101: #==================== 1st library dependency barrier ====================
102: SUBDIR+= .WAIT
103:
1.158 plunky 104: SUBDIR+= libcurses # depends on libterminfo
1.162 haad 105: SUBDIR+= libdm # depends on libprop
1.158 plunky 106: SUBDIR+= libedit # depends on libterminfo
1.184 matt 107: SUBDIR+= libexecinfo # depends on libelf
1.176 dyoung 108: SUBDIR+= libppath # depends on libprop
1.175 plunky 109: SUBDIR+= libperfuse # depends on libpuffs
1.165 bouyer 110: SUBDIR+= libquota # depends on libprop and librpcsvc
1.113 pooka 111: SUBDIR+= librefuse # depends on libpuffs
1.187 christos 112: .if (${MKRUMP} != "no")
1.126 pooka 113: SUBDIR+= librumpuser # depends on libpthread
1.175 plunky 114: SUBDIR+= librumphijack # depends on librumpclient and libpthread
1.187 christos 115: .endif
1.126 pooka 116:
1.161 rmind 117: .if (${MKNPF} != "no")
118: SUBDIR+= libnpf # depends on libprop
1.189 rmind 119: SUBDIR+= npf
1.161 rmind 120: .endif
121:
1.148 mrg 122: .if (${MKCRYPTO} != "no")
1.158 plunky 123: SUBDIR+= ../crypto/external/bsd/openssl/lib # depends on libcrypt
1.148 mrg 124: .endif
1.139 mrg 125:
1.155 plunky 126: SUBDIR+= ../external/bsd/file/lib # depends on libz
127:
128: .if (${MKISCSI} != "no")
129: SUBDIR+= ../external/bsd/iscsi/lib # depends on libpthread
130: .endif
131:
132: SUBDIR+= ../external/bsd/libarchive/lib # depends on libxz
133:
1.163 matt 134: .if (${MKLVM} != "no")
135: SUBDIR+= ../external/gpl2/lvm2/lib # depends on libprop
136: .endif
137:
1.155 plunky 138: .if (${MKBINUTILS} != "no")
139: SUBDIR+= ../external/gpl3/binutils/lib # libbfd depends on libz
140: .endif
141:
1.202 joerg 142: .if (${MKLIBCXX} != "no")
143: SUBDIR+= ../external/bsd/libc++
144: .endif
145:
1.203 ! joerg 146: .if (${MKGCC} != "no" && ${MKCXX} != "no" && ${MKLIBSTDCXX} != "no")
1.168 mrg 147: . if ${HAVE_GCC} == 4
1.155 plunky 148: SUBDIR+= ../gnu/lib/libstdc++-v3_4 # depends on libm
149: SUBDIR+= ../gnu/lib/libsupc++4
1.170 mrg 150: . else
151: SUBDIR+= ../external/gpl3/gcc/lib/libstdc++-v3
152: SUBDIR+= ../external/gpl3/gcc/lib/libsupc++
1.168 mrg 153: . endif
1.155 plunky 154: .endif
155:
1.97 christos 156: #==================== 2nd library dependency barrier ====================
157: SUBDIR+= .WAIT
158:
1.185 christos 159: .if (${MKATF} != "no")
1.186 christos 160: SUBDIR+= ../external/bsd/atf/lib # depends on libstdc++
1.185 christos 161: .endif
162:
1.198 jmmv 163: .if (${MKKYUA} != "no")
164: SUBDIR+= ../external/bsd/lutok/lib # depends on lua and libstdc++
165: .endif
166:
1.158 plunky 167: SUBDIR+= libform # depends on libcurses
1.175 plunky 168: SUBDIR+= libmenu # depends on libcurses
169: SUBDIR+= libradius # depends on libcrypto if (${MKCRYPTO} != "no")
1.187 christos 170: .if (${MKRUMP} != "no")
1.175 plunky 171: SUBDIR+= librump # depends on librumpuser
1.187 christos 172: .endif
1.158 plunky 173:
1.100 christos 174: .if (${MKKERBEROS} != "no")
1.166 elric 175: SUBDIR+= ../crypto/external/bsd/heimdal/lib # depends on libcrypto
176: # libedit, libterminfo,
1.100 christos 177: .endif
178:
1.158 plunky 179: .if (${MKCRYPTO} != "no")
180: SUBDIR+= ../crypto/external/bsd/openssh/lib # depends on libcrypto, libz
181: SUBDIR+= ../crypto/external/bsd/netpgp/lib # depends on libcrypto, ...
182: .endif
183:
1.199 christos 184: SUBDIR+= ../external/bsd/libevent/lib # depends on libcrypto
1.158 plunky 185: SUBDIR+= ../external/bsd/bind/lib # depends on libcrypto
186: SUBDIR+= ../external/bsd/fetch/lib # depends on libssl
187:
188: .if (${MKLDAP} != "no")
189: SUBDIR+= ../external/bsd/openldap/lib # depends on libcrypto, ...
190: .endif
191:
1.124 lukem 192: #==================== 3rd library dependency barrier ====================
193: SUBDIR+= .WAIT
194:
1.187 christos 195: .if (${MKRUMP} != "no")
1.143 pooka 196: SUBDIR+= librumpdev # depends on librump
1.128 pooka 197: SUBDIR+= librumpnet # depends on librump
1.130 pooka 198: SUBDIR+= librumpvfs # depends on librump
1.187 christos 199: .endif
1.126 pooka 200:
1.175 plunky 201: .if (${MKPAM} != "no")
202: SUBDIR+= libpam # depends on heimdal
203: .endif
204:
205: .if (${MKCRYPTO} != "no")
206: SUBDIR+= ../crypto/external/bsd/libsaslc # depends on heimdal, openssl
207: .endif
208:
1.193 alnsn 209: .if ${MKSLJIT} != "no"
210: SUBDIR+= ../external/bsd/sljit/lib
1.194 alnsn 211: SUBDIR+= .WAIT
212: SUBDIR+= libbpfjit
1.193 alnsn 213: .endif
214:
1.181 joerg 215: SUBDIR+= ../external/bsd/mdocml/lib
216:
1.187 christos 217: .if (${MKRUMP} != "no")
1.126 pooka 218: #==================== 4th library dependency barrier ====================
219: SUBDIR+= .WAIT
1.158 plunky 220:
221: SUBDIR+= libukfs # depends on librumpvfs, librump
1.131 pooka 222:
1.190 christos 223: .if (${MKTPM} != "no")
224: SUBDIR+= ../crypto/external/cpl/trousers/lib
225: .endif
226:
1.131 pooka 227: #==================== 5th library dependency barrier ====================
228: SUBDIR+= .WAIT
1.158 plunky 229:
230: SUBDIR+= libp2k # depends on libukfs, librumpvfs, libpuffs
1.188 joerg 231:
1.192 christos 232: .if (${MKTPM} != "no")
233: SUBDIR+= ../crypto/external/cpl/tpm-tools/lib # depends on trousers
234: .endif
235:
1.188 joerg 236: .if !defined(BSD_MK_COMPAT_FILE)
237: SUBDIR+= ../sys/rump/dev/lib
238: SUBDIR+= ../sys/rump/fs/lib
239: SUBDIR+= ../sys/rump/kern/lib
240: SUBDIR+= ../sys/rump/net/lib
241: .endif
1.187 christos 242: .endif
1.158 plunky 243:
1.178 mbalmer 244: # Lua bindings come last, they might depend on anything
245: SUBDIR+= lua
246:
1.195 joerg 247: .include <bsd.buildinstall.mk>
1.1 cgd 248: .include <bsd.subdir.mk>
CVSweb <webmaster@jp.NetBSD.org>