Makefile revision 1.229
11.229Schristos# $NetBSD: Makefile,v 1.229 2015/09/24 14:49:03 christos 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.229SchristosSUBDIR+= ../external/bsd/librtld_db/lib # depends on libutil 1081.229Schristos 1091.227Schristos.if ${MKDTRACE} != "no" || ${MKCTF} != "no" 1101.227SchristosSUBDIR+= ../external/cddl/osnet/lib/libctf 1111.227Schristos.endif 1121.227Schristos 1131.221SmrgSUBDIR+= ../external/public-domain/xz/lib # depends on libpthread 1141.221Smrg 1151.208Smrg.if (${MKCRYPTO} != "no") 1161.208SmrgSUBDIR+= ../crypto/external/bsd/netpgp/libmj 1171.208SmrgSUBDIR+= ../crypto/external/bsd/netpgp/lib/verify # depends on libz 1181.208Smrg.endif 1191.208Smrg 1201.212SchristosSUBDIR+= ../external/bsd/elftoolchain/lib/libdwarf # depends on libelf 1211.208SmrgSUBDIR+= ../external/mit/lua/lib # depends on libm 1221.158SplunkySUBDIR+= libcurses # depends on libterminfo 1231.162ShaadSUBDIR+= libdm # depends on libprop 1241.158SplunkySUBDIR+= libedit # depends on libterminfo 1251.184SmattSUBDIR+= libexecinfo # depends on libelf 1261.176SdyoungSUBDIR+= libppath # depends on libprop 1271.175SplunkySUBDIR+= libperfuse # depends on libpuffs 1281.165SbouyerSUBDIR+= libquota # depends on libprop and librpcsvc 1291.113SpookaSUBDIR+= librefuse # depends on libpuffs 1301.207SjoergSUBDIR+= libisns # depends on libpthread 1311.187Schristos.if (${MKRUMP} != "no") 1321.126SpookaSUBDIR+= librumpuser # depends on libpthread 1331.175SplunkySUBDIR+= librumphijack # depends on librumpclient and libpthread 1341.187Schristos.endif 1351.126Spooka 1361.161Srmind.if (${MKNPF} != "no") 1371.161SrmindSUBDIR+= libnpf # depends on libprop 1381.161Srmind.endif 1391.161Srmind 1401.148Smrg.if (${MKCRYPTO} != "no") 1411.158SplunkySUBDIR+= ../crypto/external/bsd/openssl/lib # depends on libcrypt 1421.148Smrg.endif 1431.139Smrg 1441.155SplunkySUBDIR+= ../external/bsd/file/lib # depends on libz 1451.155Splunky 1461.155Splunky.if (${MKISCSI} != "no") 1471.155SplunkySUBDIR+= ../external/bsd/iscsi/lib # depends on libpthread 1481.155Splunky.endif 1491.155Splunky 1501.224Smatt.if (${MKZFS} != "no") 1511.224SmattSUBDIR+= ../external/cddl/osnet/lib/libzfs 1521.224SmattSUBDIR+= ../external/cddl/osnet/lib/libzpool 1531.224Smatt.endif 1541.224Smatt 1551.163Smatt.if (${MKLVM} != "no") 1561.163SmattSUBDIR+= ../external/gpl2/lvm2/lib # depends on libprop 1571.163Smatt.endif 1581.163Smatt 1591.155Splunky.if (${MKBINUTILS} != "no") 1601.155SplunkySUBDIR+= ../external/gpl3/binutils/lib # libbfd depends on libz 1611.155Splunky.endif 1621.155Splunky 1631.202Sjoerg.if (${MKLIBCXX} != "no") 1641.202SjoergSUBDIR+= ../external/bsd/libc++ 1651.202Sjoerg.endif 1661.202Sjoerg 1671.203Sjoerg.if (${MKGCC} != "no" && ${MKCXX} != "no" && ${MKLIBSTDCXX} != "no") 1681.211SmrgSUBDIR+= ../external/gpl3/${EXTERNAL_GCC_SUBDIR}/lib/libstdc++-v3 1691.211SmrgSUBDIR+= ../external/gpl3/${EXTERNAL_GCC_SUBDIR}/lib/libsupc++ 1701.155Splunky.endif 1711.222Schristos 1721.222Schristos#==================== 2nd library dependency barrier ==================== 1731.222SchristosSUBDIR+= .WAIT 1741.222Schristos 1751.219SchristosSANITIZER_DIR=../external/gpl3/${EXTERNAL_GCC_SUBDIR}/lib/libasan 1761.219Schristos.if exists(${SANITIZER_DIR}) 1771.219SchristosSUBDIR+= ${SANITIZER_DIR} 1781.217Smartin.endif 1791.155Splunky 1801.221SmrgSUBDIR+= ../external/bsd/libarchive/lib # depends on libxz 1811.221Smrg 1821.208Smrg.if (${MKNPF} != "no") 1831.208SmrgSUBDIR+= npf # depends on libnpf 1841.208Smrg.endif 1851.208Smrg 1861.185Schristos.if (${MKATF} != "no") 1871.186SchristosSUBDIR+= ../external/bsd/atf/lib # depends on libstdc++ 1881.185Schristos.endif 1891.185Schristos 1901.198Sjmmv.if (${MKKYUA} != "no") 1911.198SjmmvSUBDIR+= ../external/bsd/lutok/lib # depends on lua and libstdc++ 1921.198Sjmmv.endif 1931.198Sjmmv 1941.158SplunkySUBDIR+= libform # depends on libcurses 1951.175SplunkySUBDIR+= libmenu # depends on libcurses 1961.175SplunkySUBDIR+= libradius # depends on libcrypto if (${MKCRYPTO} != "no") 1971.187Schristos.if (${MKRUMP} != "no") 1981.175SplunkySUBDIR+= librump # depends on librumpuser 1991.187Schristos.endif 2001.158Splunky 2011.100Schristos.if (${MKKERBEROS} != "no") 2021.166SelricSUBDIR+= ../crypto/external/bsd/heimdal/lib # depends on libcrypto 2031.166Selric # libedit, libterminfo, 2041.100Schristos.endif 2051.100Schristos 2061.158Splunky.if (${MKCRYPTO} != "no") 2071.158SplunkySUBDIR+= ../crypto/external/bsd/openssh/lib # depends on libcrypto, libz 2081.158SplunkySUBDIR+= ../crypto/external/bsd/netpgp/lib # depends on libcrypto, ... 2091.158Splunky.endif 2101.158Splunky 2111.199SchristosSUBDIR+= ../external/bsd/libevent/lib # depends on libcrypto 2121.229SchristosSUBDIR+= ../external/bsd/libproc/lib # depends on libstdc++, libctf 2131.158SplunkySUBDIR+= ../external/bsd/fetch/lib # depends on libssl 2141.158Splunky 2151.158Splunky.if (${MKLDAP} != "no") 2161.158SplunkySUBDIR+= ../external/bsd/openldap/lib # depends on libcrypto, ... 2171.158Splunky.endif 2181.158Splunky 2191.124Slukem#==================== 3rd library dependency barrier ==================== 2201.124SlukemSUBDIR+= .WAIT 2211.124Slukem 2221.204SjoergSUBDIR+= ../external/bsd/bind/lib # depends on heimdal, libcrypto 2231.204Sjoerg 2241.187Schristos.if (${MKRUMP} != "no") 2251.143SpookaSUBDIR+= librumpdev # depends on librump 2261.128SpookaSUBDIR+= librumpnet # depends on librump 2271.130SpookaSUBDIR+= librumpvfs # depends on librump 2281.187Schristos.endif 2291.126Spooka 2301.175Splunky.if (${MKPAM} != "no") 2311.175SplunkySUBDIR+= libpam # depends on heimdal 2321.175Splunky.endif 2331.175Splunky 2341.175Splunky.if (${MKCRYPTO} != "no") 2351.175SplunkySUBDIR+= ../crypto/external/bsd/libsaslc # depends on heimdal, openssl 2361.175Splunky.endif 2371.175Splunky 2381.181SjoergSUBDIR+= ../external/bsd/mdocml/lib 2391.181Sjoerg 2401.187Schristos.if (${MKRUMP} != "no") 2411.126Spooka#==================== 4th library dependency barrier ==================== 2421.126SpookaSUBDIR+= .WAIT 2431.158Splunky 2441.158SplunkySUBDIR+= libukfs # depends on librumpvfs, librump 2451.131Spooka 2461.190Schristos.if (${MKTPM} != "no") 2471.190SchristosSUBDIR+= ../crypto/external/cpl/trousers/lib 2481.190Schristos.endif 2491.190Schristos 2501.131Spooka#==================== 5th library dependency barrier ==================== 2511.131SpookaSUBDIR+= .WAIT 2521.158Splunky 2531.158SplunkySUBDIR+= libp2k # depends on libukfs, librumpvfs, libpuffs 2541.188Sjoerg 2551.192Schristos.if (${MKTPM} != "no") 2561.192SchristosSUBDIR+= ../crypto/external/cpl/tpm-tools/lib # depends on trousers 2571.192Schristos.endif 2581.192Schristos 2591.188Sjoerg.if !defined(BSD_MK_COMPAT_FILE) 2601.188SjoergSUBDIR+= ../sys/rump/dev/lib 2611.188SjoergSUBDIR+= ../sys/rump/fs/lib 2621.188SjoergSUBDIR+= ../sys/rump/kern/lib 2631.188SjoergSUBDIR+= ../sys/rump/net/lib 2641.188Sjoerg.endif 2651.187Schristos.endif 2661.158Splunky 2671.178Smbalmer# Lua bindings come last, they might depend on anything 2681.178SmbalmerSUBDIR+= lua 2691.178Smbalmer 2701.210Schristos# Needed by rump and rescue which are outside the smbfs tree 2711.210SchristosSUBDIR+= ../external/bsd/smbfs/lib 2721.210Schristos 2731.195Sjoerg.include <bsd.buildinstall.mk> 2741.1Scgd.include <bsd.subdir.mk> 275