Makefile revision 1.226
11.226Smatt# $NetBSD: Makefile,v 1.226 2015/07/08 01:08:24 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.226Smatt.if (${MACHINE_CPU} == "arm" || ${MACHINE_CPU} == "aarch64") 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.225Smatt.if ${MKDTRACE} != "no" 681.225SmattSUBDIR+= ../external/cddl/osnet/lib/libdtrace 691.225Smatt.endif 701.225Smatt 711.225Smatt.if ${MKDTRACE} != "no" || ${MKCTF} != "no" 721.225SmattSUBDIR+= ../external/cddl/osnet/lib/libctf 731.225Smatt.endif 741.225Smatt 751.224Smatt.if (${MKZFS} != "no") 761.224SmattSUBDIR+= ../external/cddl/osnet/lib/libavl 771.224SmattSUBDIR+= ../external/cddl/osnet/lib/libnvpair 781.224SmattSUBDIR+= ../external/cddl/osnet/lib/libumem 791.224SmattSUBDIR+= ../external/cddl/osnet/lib/libuutil 801.224Smatt.endif 811.224Smatt 821.182StronSUBDIR+= ../external/mit/expat/lib 831.155Splunky 841.179SjoergSUBDIR+= ../external/public-domain/sqlite/lib 851.155Splunky 861.155SplunkySUBDIR+= ../gnu/lib/libmalloc 871.155Splunky 881.155Splunky.if (${MKGCC} != "no") 891.211SmrgSUBDIR+= ../external/gpl3/${EXTERNAL_GCC_SUBDIR}/lib/libobjc 901.211SmrgSUBDIR+= ../external/gpl3/${EXTERNAL_GCC_SUBDIR}/lib/libgomp 911.223SmattSUBDIR+= ../external/gpl3/${EXTERNAL_GCC_SUBDIR}/lib/libmudflap 921.223SmattSUBDIR+= ../external/gpl3/${EXTERNAL_GCC_SUBDIR}/lib/libmudflapth 931.173Smrg# Should probably move GMP, MPFR and MPC builds into the GCC >= 4.5 941.173Smrg# specific build area, but we get better parallelism this way. 951.215Smrg# We don't build compat versions of these. 961.215Smrg. if !defined(MLIBDIR) 971.172SmattSUBDIR+= ../external/lgpl3/gmp/lib/libgmp 981.174SplunkySUBDIR+= ../external/lgpl3/mpfr/lib/libmpfr 991.209SmrgSUBDIR+= ../external/lgpl3/mpc/lib/libmpc 1001.174Splunky. endif 1011.155Splunky.endif 1021.144Schristos 1031.89Slukem# 1041.89Slukem# Libraries that depend upon any listed previously 1051.93Slukem# (and those that depend upon these [and ...]) 1061.89Slukem# 1071.97Schristos#==================== 1st library dependency barrier ==================== 1081.97SchristosSUBDIR+= .WAIT 1091.97Schristos 1101.221SmrgSUBDIR+= ../external/public-domain/xz/lib # depends on libpthread 1111.221Smrg 1121.208Smrg.if (${MKCRYPTO} != "no") 1131.208SmrgSUBDIR+= ../crypto/external/bsd/netpgp/libmj 1141.208SmrgSUBDIR+= ../crypto/external/bsd/netpgp/lib/verify # depends on libz 1151.208Smrg.endif 1161.208Smrg 1171.212SchristosSUBDIR+= ../external/bsd/elftoolchain/lib/libdwarf # depends on libelf 1181.208SmrgSUBDIR+= ../external/mit/lua/lib # depends on libm 1191.158SplunkySUBDIR+= libcurses # depends on libterminfo 1201.162ShaadSUBDIR+= libdm # depends on libprop 1211.158SplunkySUBDIR+= libedit # depends on libterminfo 1221.184SmattSUBDIR+= libexecinfo # depends on libelf 1231.176SdyoungSUBDIR+= libppath # depends on libprop 1241.175SplunkySUBDIR+= libperfuse # depends on libpuffs 1251.165SbouyerSUBDIR+= libquota # depends on libprop and librpcsvc 1261.113SpookaSUBDIR+= librefuse # depends on libpuffs 1271.207SjoergSUBDIR+= libisns # depends on libpthread 1281.187Schristos.if (${MKRUMP} != "no") 1291.126SpookaSUBDIR+= librumpuser # depends on libpthread 1301.175SplunkySUBDIR+= librumphijack # depends on librumpclient and libpthread 1311.187Schristos.endif 1321.126Spooka 1331.161Srmind.if (${MKNPF} != "no") 1341.161SrmindSUBDIR+= libnpf # depends on libprop 1351.161Srmind.endif 1361.161Srmind 1371.148Smrg.if (${MKCRYPTO} != "no") 1381.158SplunkySUBDIR+= ../crypto/external/bsd/openssl/lib # depends on libcrypt 1391.148Smrg.endif 1401.139Smrg 1411.155SplunkySUBDIR+= ../external/bsd/file/lib # depends on libz 1421.155Splunky 1431.155Splunky.if (${MKISCSI} != "no") 1441.155SplunkySUBDIR+= ../external/bsd/iscsi/lib # depends on libpthread 1451.155Splunky.endif 1461.155Splunky 1471.224Smatt.if (${MKZFS} != "no") 1481.224SmattSUBDIR+= ../external/cddl/osnet/lib/libzfs 1491.224SmattSUBDIR+= ../external/cddl/osnet/lib/libzpool 1501.224Smatt.endif 1511.224Smatt 1521.163Smatt.if (${MKLVM} != "no") 1531.163SmattSUBDIR+= ../external/gpl2/lvm2/lib # depends on libprop 1541.163Smatt.endif 1551.163Smatt 1561.155Splunky.if (${MKBINUTILS} != "no") 1571.155SplunkySUBDIR+= ../external/gpl3/binutils/lib # libbfd depends on libz 1581.155Splunky.endif 1591.155Splunky 1601.202Sjoerg.if (${MKLIBCXX} != "no") 1611.202SjoergSUBDIR+= ../external/bsd/libc++ 1621.202Sjoerg.endif 1631.202Sjoerg 1641.203Sjoerg.if (${MKGCC} != "no" && ${MKCXX} != "no" && ${MKLIBSTDCXX} != "no") 1651.211SmrgSUBDIR+= ../external/gpl3/${EXTERNAL_GCC_SUBDIR}/lib/libstdc++-v3 1661.211SmrgSUBDIR+= ../external/gpl3/${EXTERNAL_GCC_SUBDIR}/lib/libsupc++ 1671.155Splunky.endif 1681.222Schristos 1691.222Schristos#==================== 2nd library dependency barrier ==================== 1701.222SchristosSUBDIR+= .WAIT 1711.222Schristos 1721.219SchristosSANITIZER_DIR=../external/gpl3/${EXTERNAL_GCC_SUBDIR}/lib/libasan 1731.219Schristos.if exists(${SANITIZER_DIR}) 1741.219SchristosSUBDIR+= ${SANITIZER_DIR} 1751.217Smartin.endif 1761.155Splunky 1771.221SmrgSUBDIR+= ../external/bsd/libarchive/lib # depends on libxz 1781.221Smrg 1791.208Smrg.if (${MKNPF} != "no") 1801.208SmrgSUBDIR+= npf # depends on libnpf 1811.208Smrg.endif 1821.208Smrg 1831.185Schristos.if (${MKATF} != "no") 1841.186SchristosSUBDIR+= ../external/bsd/atf/lib # depends on libstdc++ 1851.185Schristos.endif 1861.185Schristos 1871.198Sjmmv.if (${MKKYUA} != "no") 1881.198SjmmvSUBDIR+= ../external/bsd/lutok/lib # depends on lua and libstdc++ 1891.198Sjmmv.endif 1901.198Sjmmv 1911.158SplunkySUBDIR+= libform # depends on libcurses 1921.175SplunkySUBDIR+= libmenu # depends on libcurses 1931.175SplunkySUBDIR+= libradius # depends on libcrypto if (${MKCRYPTO} != "no") 1941.187Schristos.if (${MKRUMP} != "no") 1951.175SplunkySUBDIR+= librump # depends on librumpuser 1961.187Schristos.endif 1971.158Splunky 1981.100Schristos.if (${MKKERBEROS} != "no") 1991.166SelricSUBDIR+= ../crypto/external/bsd/heimdal/lib # depends on libcrypto 2001.166Selric # libedit, libterminfo, 2011.100Schristos.endif 2021.100Schristos 2031.158Splunky.if (${MKCRYPTO} != "no") 2041.158SplunkySUBDIR+= ../crypto/external/bsd/openssh/lib # depends on libcrypto, libz 2051.158SplunkySUBDIR+= ../crypto/external/bsd/netpgp/lib # depends on libcrypto, ... 2061.158Splunky.endif 2071.158Splunky 2081.199SchristosSUBDIR+= ../external/bsd/libevent/lib # depends on libcrypto 2091.158SplunkySUBDIR+= ../external/bsd/fetch/lib # depends on libssl 2101.158Splunky 2111.158Splunky.if (${MKLDAP} != "no") 2121.158SplunkySUBDIR+= ../external/bsd/openldap/lib # depends on libcrypto, ... 2131.158Splunky.endif 2141.158Splunky 2151.124Slukem#==================== 3rd library dependency barrier ==================== 2161.124SlukemSUBDIR+= .WAIT 2171.124Slukem 2181.204SjoergSUBDIR+= ../external/bsd/bind/lib # depends on heimdal, libcrypto 2191.204Sjoerg 2201.187Schristos.if (${MKRUMP} != "no") 2211.143SpookaSUBDIR+= librumpdev # depends on librump 2221.128SpookaSUBDIR+= librumpnet # depends on librump 2231.130SpookaSUBDIR+= librumpvfs # depends on librump 2241.187Schristos.endif 2251.126Spooka 2261.175Splunky.if (${MKPAM} != "no") 2271.175SplunkySUBDIR+= libpam # depends on heimdal 2281.175Splunky.endif 2291.175Splunky 2301.175Splunky.if (${MKCRYPTO} != "no") 2311.175SplunkySUBDIR+= ../crypto/external/bsd/libsaslc # depends on heimdal, openssl 2321.175Splunky.endif 2331.175Splunky 2341.181SjoergSUBDIR+= ../external/bsd/mdocml/lib 2351.181Sjoerg 2361.187Schristos.if (${MKRUMP} != "no") 2371.126Spooka#==================== 4th library dependency barrier ==================== 2381.126SpookaSUBDIR+= .WAIT 2391.158Splunky 2401.158SplunkySUBDIR+= libukfs # depends on librumpvfs, librump 2411.131Spooka 2421.190Schristos.if (${MKTPM} != "no") 2431.190SchristosSUBDIR+= ../crypto/external/cpl/trousers/lib 2441.190Schristos.endif 2451.190Schristos 2461.131Spooka#==================== 5th library dependency barrier ==================== 2471.131SpookaSUBDIR+= .WAIT 2481.158Splunky 2491.158SplunkySUBDIR+= libp2k # depends on libukfs, librumpvfs, libpuffs 2501.188Sjoerg 2511.192Schristos.if (${MKTPM} != "no") 2521.192SchristosSUBDIR+= ../crypto/external/cpl/tpm-tools/lib # depends on trousers 2531.192Schristos.endif 2541.192Schristos 2551.188Sjoerg.if !defined(BSD_MK_COMPAT_FILE) 2561.188SjoergSUBDIR+= ../sys/rump/dev/lib 2571.188SjoergSUBDIR+= ../sys/rump/fs/lib 2581.188SjoergSUBDIR+= ../sys/rump/kern/lib 2591.188SjoergSUBDIR+= ../sys/rump/net/lib 2601.188Sjoerg.endif 2611.187Schristos.endif 2621.158Splunky 2631.178Smbalmer# Lua bindings come last, they might depend on anything 2641.178SmbalmerSUBDIR+= lua 2651.178Smbalmer 2661.210Schristos# Needed by rump and rescue which are outside the smbfs tree 2671.210SchristosSUBDIR+= ../external/bsd/smbfs/lib 2681.210Schristos 2691.195Sjoerg.include <bsd.buildinstall.mk> 2701.1Scgd.include <bsd.subdir.mk> 271