Makefile revision 1.185
11.185Schristos# $NetBSD: Makefile,v 1.185 2012/07/12 19:11:06 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.155SplunkySUBDIR= csu 71.155Splunky 81.155Splunky.if (${MKGCC} != "no") 91.169Smrg. if ${HAVE_GCC} == 4 101.169Smrg. if (${USE_COMPILERCRTSTUFF} == "yes") 111.155SplunkySUBDIR+= ../gnu/lib/crtstuff4 121.169Smrg. endif 131.155SplunkySUBDIR+= ../gnu/lib/libgcc4 141.169Smrg. else 151.169Smrg. if (${USE_COMPILERCRTSTUFF} == "yes") 161.170SmrgSUBDIR+= ../external/gpl3/gcc/lib/crtstuff 171.169Smrg. endif 181.170SmrgSUBDIR+= ../external/gpl3/gcc/lib/libgcc 191.169Smrg. endif 201.155Splunky.endif 211.155Splunky 221.155SplunkySUBDIR+= libc 231.155SplunkySUBDIR+= .WAIT 241.155Splunky 251.155Splunky# 261.155Splunky# The SUBDIRs above are included here for completeness but should be built 271.155Splunky# and installed prior to make(dependall) in this file, as libraries listed 281.155Splunky# below will depend on versions from DESTDIR only. 291.155Splunky# 301.155Splunky 311.158SplunkySUBDIR+= i18n_module 321.158Splunky 331.158SplunkySUBDIR+= libarch \ 341.158Splunky libbluetooth libbsdmalloc libbz2 \ 351.184Smatt libcompat libcrypt \ 361.159Sagc libintl libipsec libisns libkvm libm \ 371.158Splunky libossaudio libpci libpmc libposix libprop libpthread \ 381.158Splunky libpthread_dbg libpuffs libresolv librmt librpcsvc librt \ 391.158Splunky librumpclient libtelnet libterminfo \ 401.158Splunky libusbhid libutil libwrap liby libz 411.158Splunky 421.158Splunky.if (${MKSKEY} != "no") 431.158SplunkySUBDIR+= libskey 441.158Splunky.endif 451.60Sthorpej 461.158Splunky.if (${MKCRYPTO} != "no") 471.158SplunkySUBDIR+= ../crypto/external/bsd/netpgp/libmj 481.158Splunky.endif 491.156Schristos 501.155Splunky.if (${MKMDNS} != "no") 511.155SplunkySUBDIR+= ../external/apache2/mDNSResponder/lib 521.155Splunky.endif 531.155Splunky 541.155SplunkySUBDIR+= ../external/bsd/am-utils/lib 551.155Splunky 561.155SplunkySUBDIR+= ../external/bsd/flex/lib 571.180SchristosSUBDIR+= ../external/bsd/tre/lib 581.155SplunkySUBDIR+= ../external/bsd/libdwarf/lib 591.155SplunkySUBDIR+= ../external/bsd/libelf/lib 601.155SplunkySUBDIR+= ../external/bsd/libevent/lib 611.163SmattSUBDIR+= ../external/bsd/liblzf/lib 621.158SplunkySUBDIR+= ../external/bsd/libpcap/lib 631.155Splunky 641.155SplunkySUBDIR+= ../external/mit/lua/lib 651.182StronSUBDIR+= ../external/mit/expat/lib 661.155Splunky 671.179SjoergSUBDIR+= ../external/public-domain/sqlite/lib 681.155SplunkySUBDIR+= ../external/public-domain/xz/lib 691.155Splunky 701.155SplunkySUBDIR+= ../gnu/lib/libmalloc 711.155Splunky 721.155Splunky.if (${MKGCC} != "no") 731.168Smrg. if ${HAVE_GCC} == 4 741.155SplunkySUBDIR+= ../gnu/lib/libobjc4 751.170Smrg. else 761.170SmrgSUBDIR+= ../external/gpl3/gcc/lib/libobjc 771.177SmrgSUBDIR+= ../external/gpl3/gcc/lib/libgomp 781.168Smrg. endif 791.174Splunky. if ${HAVE_GCC} >= 45 && !defined(MLIBDIR) 801.173Smrg# Should probably move GMP, MPFR and MPC builds into the GCC >= 4.5 811.173Smrg# specific build area, but we get better parallelism this way. 821.172SmattSUBDIR+= ../external/lgpl3/gmp/lib/libgmp 831.174SplunkySUBDIR+= ../external/lgpl3/mpfr/lib/libmpfr 841.174SplunkySUBDIR+= ../external/lgpl2/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.158SplunkySUBDIR+= libcurses # depends on libterminfo 961.162ShaadSUBDIR+= libdm # depends on libprop 971.158SplunkySUBDIR+= libedit # depends on libterminfo 981.184SmattSUBDIR+= libexecinfo # depends on libelf 991.176SdyoungSUBDIR+= libppath # depends on libprop 1001.175SplunkySUBDIR+= libperfuse # depends on libpuffs 1011.165SbouyerSUBDIR+= libquota # depends on libprop and librpcsvc 1021.113SpookaSUBDIR+= librefuse # depends on libpuffs 1031.126SpookaSUBDIR+= librumpuser # depends on libpthread 1041.175SplunkySUBDIR+= librumphijack # depends on librumpclient and libpthread 1051.126Spooka 1061.161Srmind.if (${MKNPF} != "no") 1071.161SrmindSUBDIR+= libnpf # depends on libprop 1081.161Srmind.endif 1091.161Srmind 1101.148Smrg.if (${MKCRYPTO} != "no") 1111.158SplunkySUBDIR+= ../crypto/external/bsd/openssl/lib # depends on libcrypt 1121.148Smrg.endif 1131.139Smrg 1141.155SplunkySUBDIR+= ../external/bsd/file/lib # depends on libz 1151.155Splunky 1161.155Splunky.if (${MKISCSI} != "no") 1171.155SplunkySUBDIR+= ../external/bsd/iscsi/lib # depends on libpthread 1181.155Splunky.endif 1191.155Splunky 1201.155SplunkySUBDIR+= ../external/bsd/libarchive/lib # depends on libxz 1211.155Splunky 1221.163Smatt.if (${MKLVM} != "no") 1231.163SmattSUBDIR+= ../external/gpl2/lvm2/lib # depends on libprop 1241.163Smatt.endif 1251.163Smatt 1261.155Splunky.if (${MKBINUTILS} != "no") 1271.155SplunkySUBDIR+= ../external/gpl3/binutils/lib # libbfd depends on libz 1281.155Splunky.endif 1291.155Splunky 1301.155Splunky.if (${MKGCC} != "no" && ${MKCXX} != "no") 1311.168Smrg. if ${HAVE_GCC} == 4 1321.155SplunkySUBDIR+= ../gnu/lib/libstdc++-v3_4 # depends on libm 1331.155SplunkySUBDIR+= ../gnu/lib/libsupc++4 1341.170Smrg. else 1351.170SmrgSUBDIR+= ../external/gpl3/gcc/lib/libstdc++-v3 1361.170SmrgSUBDIR+= ../external/gpl3/gcc/lib/libsupc++ 1371.168Smrg. endif 1381.155Splunky.endif 1391.155Splunky 1401.97Schristos#==================== 2nd library dependency barrier ==================== 1411.97SchristosSUBDIR+= .WAIT 1421.97Schristos 1431.185Schristos.if (${MKATF} != "no") 1441.185SchristosSUBDIR+= ../external/bsd/atf/lib # depends on libstdc++ and libm 1451.185Schristos.endif 1461.185Schristos 1471.158SplunkySUBDIR+= libform # depends on libcurses 1481.175SplunkySUBDIR+= libmenu # depends on libcurses 1491.175SplunkySUBDIR+= libradius # depends on libcrypto if (${MKCRYPTO} != "no") 1501.175SplunkySUBDIR+= librump # depends on librumpuser 1511.158Splunky 1521.100Schristos.if (${MKKERBEROS} != "no") 1531.166SelricSUBDIR+= ../crypto/external/bsd/heimdal/lib # depends on libcrypto 1541.166Selric # libedit, libterminfo, 1551.100Schristos.endif 1561.100Schristos 1571.158Splunky.if (${MKCRYPTO} != "no") 1581.158SplunkySUBDIR+= ../crypto/external/bsd/openssh/lib # depends on libcrypto, libz 1591.158SplunkySUBDIR+= ../crypto/external/bsd/netpgp/lib # depends on libcrypto, ... 1601.158Splunky.endif 1611.158Splunky 1621.158SplunkySUBDIR+= ../external/bsd/bind/lib # depends on libcrypto 1631.158SplunkySUBDIR+= ../external/bsd/fetch/lib # depends on libssl 1641.158Splunky 1651.158Splunky.if (${MKLDAP} != "no") 1661.158SplunkySUBDIR+= ../external/bsd/openldap/lib # depends on libcrypto, ... 1671.158Splunky.endif 1681.158Splunky 1691.124Slukem#==================== 3rd library dependency barrier ==================== 1701.124SlukemSUBDIR+= .WAIT 1711.124Slukem 1721.143SpookaSUBDIR+= librumpdev # depends on librump 1731.128SpookaSUBDIR+= librumpnet # depends on librump 1741.130SpookaSUBDIR+= librumpvfs # depends on librump 1751.126Spooka 1761.175Splunky.if (${MKPAM} != "no") 1771.175SplunkySUBDIR+= libpam # depends on heimdal 1781.175Splunky.endif 1791.175Splunky 1801.175Splunky.if (${MKCRYPTO} != "no") 1811.175SplunkySUBDIR+= ../crypto/external/bsd/libsaslc # depends on heimdal, openssl 1821.175Splunky.endif 1831.175Splunky 1841.181SjoergSUBDIR+= ../external/bsd/mdocml/lib 1851.181Sjoerg 1861.126Spooka#==================== 4th library dependency barrier ==================== 1871.126SpookaSUBDIR+= .WAIT 1881.158Splunky 1891.158SplunkySUBDIR+= libukfs # depends on librumpvfs, librump 1901.131Spooka 1911.131Spooka#==================== 5th library dependency barrier ==================== 1921.131SpookaSUBDIR+= .WAIT 1931.158Splunky 1941.158SplunkySUBDIR+= libp2k # depends on libukfs, librumpvfs, libpuffs 1951.158Splunky 1961.178Smbalmer# Lua bindings come last, they might depend on anything 1971.178SmbalmerSUBDIR+= lua 1981.178Smbalmer 1991.1Scgd.include <bsd.subdir.mk> 200