Makefile revision 1.223
11.223Smatt# $NetBSD: Makefile,v 1.223 2015/06/22 00:06:38 matt Exp $ 21.8Smycroft# from: @(#)Makefile 5.25.1.1 (Berkeley) 5/7/91 31.21Scgd 41.62Sthorpej.include <bsd.own.mk> 51.62Sthorpej 61.188SjoergSUBDIR= csu .WAIT 71.155Splunky 81.155Splunky.if (${MKGCC} != "no") 91.211SmrgSUBDIR+= ../external/gpl3/${EXTERNAL_GCC_SUBDIR}/lib/libgcc .WAIT 101.155Splunky.endif 111.155Splunky 121.155SplunkySUBDIR+= libc 131.155SplunkySUBDIR+= .WAIT 141.155Splunky 151.155Splunky# 161.155Splunky# The SUBDIRs above are included here for completeness but should be built 171.155Splunky# and installed prior to make(dependall) in this file, as libraries listed 181.155Splunky# below will depend on versions from DESTDIR only. 191.155Splunky# 201.155Splunky 211.158SplunkySUBDIR+= i18n_module 221.158Splunky 231.158SplunkySUBDIR+= libarch \ 241.158Splunky libbluetooth libbsdmalloc libbz2 \ 251.184Smatt libcompat libcrypt \ 261.207Sjoerg libintl libipsec libkvm libm \ 271.158Splunky libossaudio libpci libpmc libposix libprop libpthread \ 281.158Splunky libpthread_dbg libpuffs libresolv librmt librpcsvc librt \ 291.187Schristos libtelnet libterminfo \ 301.158Splunky libusbhid libutil libwrap liby libz 311.158Splunky 321.206Smatt.if !defined(BSD_MK_COMPAT_FILE) 331.206SmattSUBDIR+= libkern 341.206Smatt.endif 351.206Smatt 361.201Smatt.if (${MACHINE_CPU} == "arm") 371.201SmattLIBC_MACHINE_ARCH?=${MACHINE_ARCH} 381.201Smatt.if empty(LIBC_MACHINE_ARCH:M*hf*) 391.197SmattSUBDIR+= libc_vfp 401.197Smatt.endif 411.201Smatt.endif 421.187Schristos.if (${MKRUMP} != "no") 431.187SchristosSUBDIR+= librumpclient 441.187Schristos.endif 451.158Splunky.if (${MKSKEY} != "no") 461.158SplunkySUBDIR+= libskey 471.158Splunky.endif 481.60Sthorpej 491.155Splunky.if (${MKMDNS} != "no") 501.155SplunkySUBDIR+= ../external/apache2/mDNSResponder/lib 511.155Splunky.endif 521.155Splunky 531.155SplunkySUBDIR+= ../external/bsd/am-utils/lib 541.220SchristosSUBDIR+= ../external/bsd/blacklist/lib 551.155Splunky 561.155SplunkySUBDIR+= ../external/bsd/flex/lib 571.180SchristosSUBDIR+= ../external/bsd/tre/lib 581.212SchristosSUBDIR+= ../external/bsd/elftoolchain/lib/libelf 591.163SmattSUBDIR+= ../external/bsd/liblzf/lib 601.158SplunkySUBDIR+= ../external/bsd/libpcap/lib 611.155Splunky 621.214Splunky.if ${MKSLJIT} != "no" 631.214SplunkySUBDIR+= ../external/bsd/sljit/lib 641.214SplunkySUBDIR+= libbpfjit 651.214Splunky.endif 661.214Splunky 671.182StronSUBDIR+= ../external/mit/expat/lib 681.155Splunky 691.179SjoergSUBDIR+= ../external/public-domain/sqlite/lib 701.155Splunky 711.155SplunkySUBDIR+= ../gnu/lib/libmalloc 721.155Splunky 731.155Splunky.if (${MKGCC} != "no") 741.211SmrgSUBDIR+= ../external/gpl3/${EXTERNAL_GCC_SUBDIR}/lib/libobjc 751.211SmrgSUBDIR+= ../external/gpl3/${EXTERNAL_GCC_SUBDIR}/lib/libgomp 761.223SmattSUBDIR+= ../external/gpl3/${EXTERNAL_GCC_SUBDIR}/lib/libmudflap 771.223SmattSUBDIR+= ../external/gpl3/${EXTERNAL_GCC_SUBDIR}/lib/libmudflapth 781.173Smrg# Should probably move GMP, MPFR and MPC builds into the GCC >= 4.5 791.173Smrg# specific build area, but we get better parallelism this way. 801.215Smrg# We don't build compat versions of these. 811.215Smrg. if !defined(MLIBDIR) 821.172SmattSUBDIR+= ../external/lgpl3/gmp/lib/libgmp 831.174SplunkySUBDIR+= ../external/lgpl3/mpfr/lib/libmpfr 841.209SmrgSUBDIR+= ../external/lgpl3/mpc/lib/libmpc 851.174Splunky. endif 861.155Splunky.endif 871.144Schristos 881.89Slukem# 891.89Slukem# Libraries that depend upon any listed previously 901.93Slukem# (and those that depend upon these [and ...]) 911.89Slukem# 921.97Schristos#==================== 1st library dependency barrier ==================== 931.97SchristosSUBDIR+= .WAIT 941.97Schristos 951.221SmrgSUBDIR+= ../external/public-domain/xz/lib # depends on libpthread 961.221Smrg 971.208Smrg.if (${MKCRYPTO} != "no") 981.208SmrgSUBDIR+= ../crypto/external/bsd/netpgp/libmj 991.208SmrgSUBDIR+= ../crypto/external/bsd/netpgp/lib/verify # depends on libz 1001.208Smrg.endif 1011.208Smrg 1021.212SchristosSUBDIR+= ../external/bsd/elftoolchain/lib/libdwarf # depends on libelf 1031.208SmrgSUBDIR+= ../external/mit/lua/lib # depends on libm 1041.158SplunkySUBDIR+= libcurses # depends on libterminfo 1051.162ShaadSUBDIR+= libdm # depends on libprop 1061.158SplunkySUBDIR+= libedit # depends on libterminfo 1071.184SmattSUBDIR+= libexecinfo # depends on libelf 1081.176SdyoungSUBDIR+= libppath # depends on libprop 1091.175SplunkySUBDIR+= libperfuse # depends on libpuffs 1101.165SbouyerSUBDIR+= libquota # depends on libprop and librpcsvc 1111.113SpookaSUBDIR+= librefuse # depends on libpuffs 1121.207SjoergSUBDIR+= libisns # depends on libpthread 1131.187Schristos.if (${MKRUMP} != "no") 1141.126SpookaSUBDIR+= librumpuser # depends on libpthread 1151.175SplunkySUBDIR+= librumphijack # depends on librumpclient and libpthread 1161.187Schristos.endif 1171.126Spooka 1181.161Srmind.if (${MKNPF} != "no") 1191.161SrmindSUBDIR+= libnpf # depends on libprop 1201.161Srmind.endif 1211.161Srmind 1221.148Smrg.if (${MKCRYPTO} != "no") 1231.158SplunkySUBDIR+= ../crypto/external/bsd/openssl/lib # depends on libcrypt 1241.148Smrg.endif 1251.139Smrg 1261.155SplunkySUBDIR+= ../external/bsd/file/lib # depends on libz 1271.155Splunky 1281.155Splunky.if (${MKISCSI} != "no") 1291.155SplunkySUBDIR+= ../external/bsd/iscsi/lib # depends on libpthread 1301.155Splunky.endif 1311.155Splunky 1321.163Smatt.if (${MKLVM} != "no") 1331.163SmattSUBDIR+= ../external/gpl2/lvm2/lib # depends on libprop 1341.163Smatt.endif 1351.163Smatt 1361.155Splunky.if (${MKBINUTILS} != "no") 1371.155SplunkySUBDIR+= ../external/gpl3/binutils/lib # libbfd depends on libz 1381.155Splunky.endif 1391.155Splunky 1401.202Sjoerg.if (${MKLIBCXX} != "no") 1411.202SjoergSUBDIR+= ../external/bsd/libc++ 1421.202Sjoerg.endif 1431.202Sjoerg 1441.203Sjoerg.if (${MKGCC} != "no" && ${MKCXX} != "no" && ${MKLIBSTDCXX} != "no") 1451.211SmrgSUBDIR+= ../external/gpl3/${EXTERNAL_GCC_SUBDIR}/lib/libstdc++-v3 1461.211SmrgSUBDIR+= ../external/gpl3/${EXTERNAL_GCC_SUBDIR}/lib/libsupc++ 1471.155Splunky.endif 1481.222Schristos 1491.222Schristos#==================== 2nd library dependency barrier ==================== 1501.222SchristosSUBDIR+= .WAIT 1511.222Schristos 1521.219SchristosSANITIZER_DIR=../external/gpl3/${EXTERNAL_GCC_SUBDIR}/lib/libasan 1531.219Schristos.if exists(${SANITIZER_DIR}) 1541.219SchristosSUBDIR+= ${SANITIZER_DIR} 1551.217Smartin.endif 1561.155Splunky 1571.221SmrgSUBDIR+= ../external/bsd/libarchive/lib # depends on libxz 1581.221Smrg 1591.208Smrg.if (${MKNPF} != "no") 1601.208SmrgSUBDIR+= npf # depends on libnpf 1611.208Smrg.endif 1621.208Smrg 1631.185Schristos.if (${MKATF} != "no") 1641.186SchristosSUBDIR+= ../external/bsd/atf/lib # depends on libstdc++ 1651.185Schristos.endif 1661.185Schristos 1671.198Sjmmv.if (${MKKYUA} != "no") 1681.198SjmmvSUBDIR+= ../external/bsd/lutok/lib # depends on lua and libstdc++ 1691.198Sjmmv.endif 1701.198Sjmmv 1711.158SplunkySUBDIR+= libform # depends on libcurses 1721.175SplunkySUBDIR+= libmenu # depends on libcurses 1731.175SplunkySUBDIR+= libradius # depends on libcrypto if (${MKCRYPTO} != "no") 1741.187Schristos.if (${MKRUMP} != "no") 1751.175SplunkySUBDIR+= librump # depends on librumpuser 1761.187Schristos.endif 1771.158Splunky 1781.100Schristos.if (${MKKERBEROS} != "no") 1791.166SelricSUBDIR+= ../crypto/external/bsd/heimdal/lib # depends on libcrypto 1801.166Selric # libedit, libterminfo, 1811.100Schristos.endif 1821.100Schristos 1831.158Splunky.if (${MKCRYPTO} != "no") 1841.158SplunkySUBDIR+= ../crypto/external/bsd/openssh/lib # depends on libcrypto, libz 1851.158SplunkySUBDIR+= ../crypto/external/bsd/netpgp/lib # depends on libcrypto, ... 1861.158Splunky.endif 1871.158Splunky 1881.199SchristosSUBDIR+= ../external/bsd/libevent/lib # depends on libcrypto 1891.158SplunkySUBDIR+= ../external/bsd/fetch/lib # depends on libssl 1901.158Splunky 1911.158Splunky.if (${MKLDAP} != "no") 1921.158SplunkySUBDIR+= ../external/bsd/openldap/lib # depends on libcrypto, ... 1931.158Splunky.endif 1941.158Splunky 1951.124Slukem#==================== 3rd library dependency barrier ==================== 1961.124SlukemSUBDIR+= .WAIT 1971.124Slukem 1981.204SjoergSUBDIR+= ../external/bsd/bind/lib # depends on heimdal, libcrypto 1991.204Sjoerg 2001.187Schristos.if (${MKRUMP} != "no") 2011.143SpookaSUBDIR+= librumpdev # depends on librump 2021.128SpookaSUBDIR+= librumpnet # depends on librump 2031.130SpookaSUBDIR+= librumpvfs # depends on librump 2041.187Schristos.endif 2051.126Spooka 2061.175Splunky.if (${MKPAM} != "no") 2071.175SplunkySUBDIR+= libpam # depends on heimdal 2081.175Splunky.endif 2091.175Splunky 2101.175Splunky.if (${MKCRYPTO} != "no") 2111.175SplunkySUBDIR+= ../crypto/external/bsd/libsaslc # depends on heimdal, openssl 2121.175Splunky.endif 2131.175Splunky 2141.181SjoergSUBDIR+= ../external/bsd/mdocml/lib 2151.181Sjoerg 2161.187Schristos.if (${MKRUMP} != "no") 2171.126Spooka#==================== 4th library dependency barrier ==================== 2181.126SpookaSUBDIR+= .WAIT 2191.158Splunky 2201.158SplunkySUBDIR+= libukfs # depends on librumpvfs, librump 2211.131Spooka 2221.190Schristos.if (${MKTPM} != "no") 2231.190SchristosSUBDIR+= ../crypto/external/cpl/trousers/lib 2241.190Schristos.endif 2251.190Schristos 2261.131Spooka#==================== 5th library dependency barrier ==================== 2271.131SpookaSUBDIR+= .WAIT 2281.158Splunky 2291.158SplunkySUBDIR+= libp2k # depends on libukfs, librumpvfs, libpuffs 2301.188Sjoerg 2311.192Schristos.if (${MKTPM} != "no") 2321.192SchristosSUBDIR+= ../crypto/external/cpl/tpm-tools/lib # depends on trousers 2331.192Schristos.endif 2341.192Schristos 2351.188Sjoerg.if !defined(BSD_MK_COMPAT_FILE) 2361.188SjoergSUBDIR+= ../sys/rump/dev/lib 2371.188SjoergSUBDIR+= ../sys/rump/fs/lib 2381.188SjoergSUBDIR+= ../sys/rump/kern/lib 2391.188SjoergSUBDIR+= ../sys/rump/net/lib 2401.188Sjoerg.endif 2411.187Schristos.endif 2421.158Splunky 2431.178Smbalmer# Lua bindings come last, they might depend on anything 2441.178SmbalmerSUBDIR+= lua 2451.178Smbalmer 2461.210Schristos# Needed by rump and rescue which are outside the smbfs tree 2471.210SchristosSUBDIR+= ../external/bsd/smbfs/lib 2481.210Schristos 2491.195Sjoerg.include <bsd.buildinstall.mk> 2501.1Scgd.include <bsd.subdir.mk> 251