Makefile revision 1.228
11.228Sjoerg# $NetBSD: Makefile,v 1.228 2015/09/22 13:26:14 joerg 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.228SjoergLIBC_MACHINE_CPU?=${MACHINE_CPU} 391.228Sjoerg.if ${LIBC_MACHINE_CPU} == "arm" && empty(LIBC_MACHINE_ARCH:M*hf*) 401.197SmattSUBDIR+= libc_vfp 411.197Smatt.endif 421.201Smatt.endif 431.187Schristos.if (${MKRUMP} != "no") 441.187SchristosSUBDIR+= librumpclient 451.187Schristos.endif 461.158Splunky.if (${MKSKEY} != "no") 471.158SplunkySUBDIR+= libskey 481.158Splunky.endif 491.60Sthorpej 501.155Splunky.if (${MKMDNS} != "no") 511.155SplunkySUBDIR+= ../external/apache2/mDNSResponder/lib 521.155Splunky.endif 531.155Splunky 541.155SplunkySUBDIR+= ../external/bsd/am-utils/lib 551.220SchristosSUBDIR+= ../external/bsd/blacklist/lib 561.155Splunky 571.155SplunkySUBDIR+= ../external/bsd/flex/lib 581.180SchristosSUBDIR+= ../external/bsd/tre/lib 591.212SchristosSUBDIR+= ../external/bsd/elftoolchain/lib/libelf 601.163SmattSUBDIR+= ../external/bsd/liblzf/lib 611.158SplunkySUBDIR+= ../external/bsd/libpcap/lib 621.155Splunky 631.214Splunky.if ${MKSLJIT} != "no" 641.214SplunkySUBDIR+= ../external/bsd/sljit/lib 651.214SplunkySUBDIR+= libbpfjit 661.214Splunky.endif 671.214Splunky 681.225Smatt.if ${MKDTRACE} != "no" 691.225SmattSUBDIR+= ../external/cddl/osnet/lib/libdtrace 701.225Smatt.endif 711.225Smatt 721.224Smatt.if (${MKZFS} != "no") 731.224SmattSUBDIR+= ../external/cddl/osnet/lib/libavl 741.224SmattSUBDIR+= ../external/cddl/osnet/lib/libnvpair 751.224SmattSUBDIR+= ../external/cddl/osnet/lib/libumem 761.224SmattSUBDIR+= ../external/cddl/osnet/lib/libuutil 771.224Smatt.endif 781.224Smatt 791.182StronSUBDIR+= ../external/mit/expat/lib 801.155Splunky 811.179SjoergSUBDIR+= ../external/public-domain/sqlite/lib 821.155Splunky 831.155SplunkySUBDIR+= ../gnu/lib/libmalloc 841.155Splunky 851.155Splunky.if (${MKGCC} != "no") 861.211SmrgSUBDIR+= ../external/gpl3/${EXTERNAL_GCC_SUBDIR}/lib/libobjc 871.211SmrgSUBDIR+= ../external/gpl3/${EXTERNAL_GCC_SUBDIR}/lib/libgomp 881.223SmattSUBDIR+= ../external/gpl3/${EXTERNAL_GCC_SUBDIR}/lib/libmudflap 891.223SmattSUBDIR+= ../external/gpl3/${EXTERNAL_GCC_SUBDIR}/lib/libmudflapth 901.173Smrg# Should probably move GMP, MPFR and MPC builds into the GCC >= 4.5 911.173Smrg# specific build area, but we get better parallelism this way. 921.215Smrg# We don't build compat versions of these. 931.215Smrg. if !defined(MLIBDIR) 941.172SmattSUBDIR+= ../external/lgpl3/gmp/lib/libgmp 951.174SplunkySUBDIR+= ../external/lgpl3/mpfr/lib/libmpfr 961.209SmrgSUBDIR+= ../external/lgpl3/mpc/lib/libmpc 971.174Splunky. endif 981.155Splunky.endif 991.144Schristos 1001.89Slukem# 1011.89Slukem# Libraries that depend upon any listed previously 1021.93Slukem# (and those that depend upon these [and ...]) 1031.89Slukem# 1041.97Schristos#==================== 1st library dependency barrier ==================== 1051.97SchristosSUBDIR+= .WAIT 1061.97Schristos 1071.227Schristos.if ${MKDTRACE} != "no" || ${MKCTF} != "no" 1081.227SchristosSUBDIR+= ../external/cddl/osnet/lib/libctf 1091.227Schristos.endif 1101.227Schristos 1111.221SmrgSUBDIR+= ../external/public-domain/xz/lib # depends on libpthread 1121.221Smrg 1131.208Smrg.if (${MKCRYPTO} != "no") 1141.208SmrgSUBDIR+= ../crypto/external/bsd/netpgp/libmj 1151.208SmrgSUBDIR+= ../crypto/external/bsd/netpgp/lib/verify # depends on libz 1161.208Smrg.endif 1171.208Smrg 1181.212SchristosSUBDIR+= ../external/bsd/elftoolchain/lib/libdwarf # depends on libelf 1191.208SmrgSUBDIR+= ../external/mit/lua/lib # depends on libm 1201.158SplunkySUBDIR+= libcurses # depends on libterminfo 1211.162ShaadSUBDIR+= libdm # depends on libprop 1221.158SplunkySUBDIR+= libedit # depends on libterminfo 1231.184SmattSUBDIR+= libexecinfo # depends on libelf 1241.176SdyoungSUBDIR+= libppath # depends on libprop 1251.175SplunkySUBDIR+= libperfuse # depends on libpuffs 1261.165SbouyerSUBDIR+= libquota # depends on libprop and librpcsvc 1271.113SpookaSUBDIR+= librefuse # depends on libpuffs 1281.207SjoergSUBDIR+= libisns # depends on libpthread 1291.187Schristos.if (${MKRUMP} != "no") 1301.126SpookaSUBDIR+= librumpuser # depends on libpthread 1311.175SplunkySUBDIR+= librumphijack # depends on librumpclient and libpthread 1321.187Schristos.endif 1331.126Spooka 1341.161Srmind.if (${MKNPF} != "no") 1351.161SrmindSUBDIR+= libnpf # depends on libprop 1361.161Srmind.endif 1371.161Srmind 1381.148Smrg.if (${MKCRYPTO} != "no") 1391.158SplunkySUBDIR+= ../crypto/external/bsd/openssl/lib # depends on libcrypt 1401.148Smrg.endif 1411.139Smrg 1421.155SplunkySUBDIR+= ../external/bsd/file/lib # depends on libz 1431.155Splunky 1441.155Splunky.if (${MKISCSI} != "no") 1451.155SplunkySUBDIR+= ../external/bsd/iscsi/lib # depends on libpthread 1461.155Splunky.endif 1471.155Splunky 1481.224Smatt.if (${MKZFS} != "no") 1491.224SmattSUBDIR+= ../external/cddl/osnet/lib/libzfs 1501.224SmattSUBDIR+= ../external/cddl/osnet/lib/libzpool 1511.224Smatt.endif 1521.224Smatt 1531.163Smatt.if (${MKLVM} != "no") 1541.163SmattSUBDIR+= ../external/gpl2/lvm2/lib # depends on libprop 1551.163Smatt.endif 1561.163Smatt 1571.155Splunky.if (${MKBINUTILS} != "no") 1581.155SplunkySUBDIR+= ../external/gpl3/binutils/lib # libbfd depends on libz 1591.155Splunky.endif 1601.155Splunky 1611.202Sjoerg.if (${MKLIBCXX} != "no") 1621.202SjoergSUBDIR+= ../external/bsd/libc++ 1631.202Sjoerg.endif 1641.202Sjoerg 1651.203Sjoerg.if (${MKGCC} != "no" && ${MKCXX} != "no" && ${MKLIBSTDCXX} != "no") 1661.211SmrgSUBDIR+= ../external/gpl3/${EXTERNAL_GCC_SUBDIR}/lib/libstdc++-v3 1671.211SmrgSUBDIR+= ../external/gpl3/${EXTERNAL_GCC_SUBDIR}/lib/libsupc++ 1681.155Splunky.endif 1691.222Schristos 1701.222Schristos#==================== 2nd library dependency barrier ==================== 1711.222SchristosSUBDIR+= .WAIT 1721.222Schristos 1731.219SchristosSANITIZER_DIR=../external/gpl3/${EXTERNAL_GCC_SUBDIR}/lib/libasan 1741.219Schristos.if exists(${SANITIZER_DIR}) 1751.219SchristosSUBDIR+= ${SANITIZER_DIR} 1761.217Smartin.endif 1771.155Splunky 1781.221SmrgSUBDIR+= ../external/bsd/libarchive/lib # depends on libxz 1791.221Smrg 1801.208Smrg.if (${MKNPF} != "no") 1811.208SmrgSUBDIR+= npf # depends on libnpf 1821.208Smrg.endif 1831.208Smrg 1841.185Schristos.if (${MKATF} != "no") 1851.186SchristosSUBDIR+= ../external/bsd/atf/lib # depends on libstdc++ 1861.185Schristos.endif 1871.185Schristos 1881.198Sjmmv.if (${MKKYUA} != "no") 1891.198SjmmvSUBDIR+= ../external/bsd/lutok/lib # depends on lua and libstdc++ 1901.198Sjmmv.endif 1911.198Sjmmv 1921.158SplunkySUBDIR+= libform # depends on libcurses 1931.175SplunkySUBDIR+= libmenu # depends on libcurses 1941.175SplunkySUBDIR+= libradius # depends on libcrypto if (${MKCRYPTO} != "no") 1951.187Schristos.if (${MKRUMP} != "no") 1961.175SplunkySUBDIR+= librump # depends on librumpuser 1971.187Schristos.endif 1981.158Splunky 1991.100Schristos.if (${MKKERBEROS} != "no") 2001.166SelricSUBDIR+= ../crypto/external/bsd/heimdal/lib # depends on libcrypto 2011.166Selric # libedit, libterminfo, 2021.100Schristos.endif 2031.100Schristos 2041.158Splunky.if (${MKCRYPTO} != "no") 2051.158SplunkySUBDIR+= ../crypto/external/bsd/openssh/lib # depends on libcrypto, libz 2061.158SplunkySUBDIR+= ../crypto/external/bsd/netpgp/lib # depends on libcrypto, ... 2071.158Splunky.endif 2081.158Splunky 2091.199SchristosSUBDIR+= ../external/bsd/libevent/lib # depends on libcrypto 2101.158SplunkySUBDIR+= ../external/bsd/fetch/lib # depends on libssl 2111.158Splunky 2121.158Splunky.if (${MKLDAP} != "no") 2131.158SplunkySUBDIR+= ../external/bsd/openldap/lib # depends on libcrypto, ... 2141.158Splunky.endif 2151.158Splunky 2161.124Slukem#==================== 3rd library dependency barrier ==================== 2171.124SlukemSUBDIR+= .WAIT 2181.124Slukem 2191.204SjoergSUBDIR+= ../external/bsd/bind/lib # depends on heimdal, libcrypto 2201.204Sjoerg 2211.187Schristos.if (${MKRUMP} != "no") 2221.143SpookaSUBDIR+= librumpdev # depends on librump 2231.128SpookaSUBDIR+= librumpnet # depends on librump 2241.130SpookaSUBDIR+= librumpvfs # depends on librump 2251.187Schristos.endif 2261.126Spooka 2271.175Splunky.if (${MKPAM} != "no") 2281.175SplunkySUBDIR+= libpam # depends on heimdal 2291.175Splunky.endif 2301.175Splunky 2311.175Splunky.if (${MKCRYPTO} != "no") 2321.175SplunkySUBDIR+= ../crypto/external/bsd/libsaslc # depends on heimdal, openssl 2331.175Splunky.endif 2341.175Splunky 2351.181SjoergSUBDIR+= ../external/bsd/mdocml/lib 2361.181Sjoerg 2371.187Schristos.if (${MKRUMP} != "no") 2381.126Spooka#==================== 4th library dependency barrier ==================== 2391.126SpookaSUBDIR+= .WAIT 2401.158Splunky 2411.158SplunkySUBDIR+= libukfs # depends on librumpvfs, librump 2421.131Spooka 2431.190Schristos.if (${MKTPM} != "no") 2441.190SchristosSUBDIR+= ../crypto/external/cpl/trousers/lib 2451.190Schristos.endif 2461.190Schristos 2471.131Spooka#==================== 5th library dependency barrier ==================== 2481.131SpookaSUBDIR+= .WAIT 2491.158Splunky 2501.158SplunkySUBDIR+= libp2k # depends on libukfs, librumpvfs, libpuffs 2511.188Sjoerg 2521.192Schristos.if (${MKTPM} != "no") 2531.192SchristosSUBDIR+= ../crypto/external/cpl/tpm-tools/lib # depends on trousers 2541.192Schristos.endif 2551.192Schristos 2561.188Sjoerg.if !defined(BSD_MK_COMPAT_FILE) 2571.188SjoergSUBDIR+= ../sys/rump/dev/lib 2581.188SjoergSUBDIR+= ../sys/rump/fs/lib 2591.188SjoergSUBDIR+= ../sys/rump/kern/lib 2601.188SjoergSUBDIR+= ../sys/rump/net/lib 2611.188Sjoerg.endif 2621.187Schristos.endif 2631.158Splunky 2641.178Smbalmer# Lua bindings come last, they might depend on anything 2651.178SmbalmerSUBDIR+= lua 2661.178Smbalmer 2671.210Schristos# Needed by rump and rescue which are outside the smbfs tree 2681.210SchristosSUBDIR+= ../external/bsd/smbfs/lib 2691.210Schristos 2701.195Sjoerg.include <bsd.buildinstall.mk> 2711.1Scgd.include <bsd.subdir.mk> 272