Makefile revision 1.182
11.182Stron# $NetBSD: Makefile,v 1.182 2012/02/29 20:07:57 tron 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.158Splunky 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.155Splunky.if (${MKATF} != "no") 571.155SplunkySUBDIR+= ../external/bsd/atf/lib 581.155Splunky.endif 591.155Splunky 601.155SplunkySUBDIR+= ../external/bsd/flex/lib 611.180SchristosSUBDIR+= ../external/bsd/tre/lib 621.155SplunkySUBDIR+= ../external/bsd/libdwarf/lib 631.155SplunkySUBDIR+= ../external/bsd/libelf/lib 641.155SplunkySUBDIR+= ../external/bsd/libevent/lib 651.163SmattSUBDIR+= ../external/bsd/liblzf/lib 661.158SplunkySUBDIR+= ../external/bsd/libpcap/lib 671.155Splunky 681.155SplunkySUBDIR+= ../external/mit/lua/lib 691.182StronSUBDIR+= ../external/mit/expat/lib 701.155Splunky 711.179SjoergSUBDIR+= ../external/public-domain/sqlite/lib 721.155SplunkySUBDIR+= ../external/public-domain/xz/lib 731.155Splunky 741.155SplunkySUBDIR+= ../gnu/lib/libmalloc 751.155Splunky 761.155Splunky.if (${MKGCC} != "no") 771.168Smrg. if ${HAVE_GCC} == 4 781.155SplunkySUBDIR+= ../gnu/lib/libobjc4 791.170Smrg. else 801.170SmrgSUBDIR+= ../external/gpl3/gcc/lib/libobjc 811.177SmrgSUBDIR+= ../external/gpl3/gcc/lib/libgomp 821.168Smrg. endif 831.174Splunky. if ${HAVE_GCC} >= 45 && !defined(MLIBDIR) 841.173Smrg# Should probably move GMP, MPFR and MPC builds into the GCC >= 4.5 851.173Smrg# specific build area, but we get better parallelism this way. 861.172SmattSUBDIR+= ../external/lgpl3/gmp/lib/libgmp 871.174SplunkySUBDIR+= ../external/lgpl3/mpfr/lib/libmpfr 881.174SplunkySUBDIR+= ../external/lgpl2/mpc/lib/libmpc 891.174Splunky. endif 901.155Splunky.endif 911.144Schristos 921.89Slukem# 931.89Slukem# Libraries that depend upon any listed previously 941.93Slukem# (and those that depend upon these [and ...]) 951.89Slukem# 961.97Schristos#==================== 1st library dependency barrier ==================== 971.97SchristosSUBDIR+= .WAIT 981.97Schristos 991.158SplunkySUBDIR+= libcurses # depends on libterminfo 1001.162ShaadSUBDIR+= libdm # depends on libprop 1011.158SplunkySUBDIR+= libedit # depends on libterminfo 1021.176SdyoungSUBDIR+= libppath # depends on libprop 1031.175SplunkySUBDIR+= libperfuse # depends on libpuffs 1041.165SbouyerSUBDIR+= libquota # depends on libprop and librpcsvc 1051.113SpookaSUBDIR+= librefuse # depends on libpuffs 1061.126SpookaSUBDIR+= librumpuser # depends on libpthread 1071.175SplunkySUBDIR+= librumphijack # depends on librumpclient and libpthread 1081.126Spooka 1091.161Srmind.if (${MKNPF} != "no") 1101.161SrmindSUBDIR+= libnpf # depends on libprop 1111.161Srmind.endif 1121.161Srmind 1131.148Smrg.if (${MKCRYPTO} != "no") 1141.158SplunkySUBDIR+= ../crypto/external/bsd/openssl/lib # depends on libcrypt 1151.148Smrg.endif 1161.139Smrg 1171.155SplunkySUBDIR+= ../external/bsd/file/lib # depends on libz 1181.155Splunky 1191.155Splunky.if (${MKISCSI} != "no") 1201.155SplunkySUBDIR+= ../external/bsd/iscsi/lib # depends on libpthread 1211.155Splunky.endif 1221.155Splunky 1231.155SplunkySUBDIR+= ../external/bsd/libarchive/lib # depends on libxz 1241.155Splunky 1251.163Smatt.if (${MKLVM} != "no") 1261.163SmattSUBDIR+= ../external/gpl2/lvm2/lib # depends on libprop 1271.163Smatt.endif 1281.163Smatt 1291.155Splunky.if (${MKBINUTILS} != "no") 1301.155SplunkySUBDIR+= ../external/gpl3/binutils/lib # libbfd depends on libz 1311.155Splunky.endif 1321.155Splunky 1331.155Splunky.if (${MKGCC} != "no" && ${MKCXX} != "no") 1341.168Smrg. if ${HAVE_GCC} == 4 1351.155SplunkySUBDIR+= ../gnu/lib/libstdc++-v3_4 # depends on libm 1361.155SplunkySUBDIR+= ../gnu/lib/libsupc++4 1371.170Smrg. else 1381.170SmrgSUBDIR+= ../external/gpl3/gcc/lib/libstdc++-v3 1391.170SmrgSUBDIR+= ../external/gpl3/gcc/lib/libsupc++ 1401.168Smrg. endif 1411.155Splunky.endif 1421.155Splunky 1431.97Schristos#==================== 2nd library dependency barrier ==================== 1441.97SchristosSUBDIR+= .WAIT 1451.97Schristos 1461.158SplunkySUBDIR+= libform # depends on libcurses 1471.175SplunkySUBDIR+= libmenu # depends on libcurses 1481.175SplunkySUBDIR+= libradius # depends on libcrypto if (${MKCRYPTO} != "no") 1491.175SplunkySUBDIR+= librump # depends on librumpuser 1501.158Splunky 1511.100Schristos.if (${MKKERBEROS} != "no") 1521.166SelricSUBDIR+= ../crypto/external/bsd/heimdal/lib # depends on libcrypto 1531.166Selric # libedit, libterminfo, 1541.100Schristos.endif 1551.100Schristos 1561.158Splunky.if (${MKCRYPTO} != "no") 1571.158SplunkySUBDIR+= ../crypto/external/bsd/openssh/lib # depends on libcrypto, libz 1581.158SplunkySUBDIR+= ../crypto/external/bsd/netpgp/lib # depends on libcrypto, ... 1591.158Splunky.endif 1601.158Splunky 1611.158SplunkySUBDIR+= ../external/bsd/bind/lib # depends on libcrypto 1621.158SplunkySUBDIR+= ../external/bsd/fetch/lib # depends on libssl 1631.158Splunky 1641.158Splunky.if (${MKLDAP} != "no") 1651.158SplunkySUBDIR+= ../external/bsd/openldap/lib # depends on libcrypto, ... 1661.158Splunky.endif 1671.158Splunky 1681.124Slukem#==================== 3rd library dependency barrier ==================== 1691.124SlukemSUBDIR+= .WAIT 1701.124Slukem 1711.143SpookaSUBDIR+= librumpdev # depends on librump 1721.128SpookaSUBDIR+= librumpnet # depends on librump 1731.130SpookaSUBDIR+= librumpvfs # depends on librump 1741.126Spooka 1751.175Splunky.if (${MKPAM} != "no") 1761.175SplunkySUBDIR+= libpam # depends on heimdal 1771.175Splunky.endif 1781.175Splunky 1791.175Splunky.if (${MKCRYPTO} != "no") 1801.175SplunkySUBDIR+= ../crypto/external/bsd/libsaslc # depends on heimdal, openssl 1811.175Splunky.endif 1821.175Splunky 1831.181SjoergSUBDIR+= ../external/bsd/mdocml/lib 1841.181Sjoerg 1851.126Spooka#==================== 4th library dependency barrier ==================== 1861.126SpookaSUBDIR+= .WAIT 1871.158Splunky 1881.158SplunkySUBDIR+= libukfs # depends on librumpvfs, librump 1891.131Spooka 1901.131Spooka#==================== 5th library dependency barrier ==================== 1911.131SpookaSUBDIR+= .WAIT 1921.158Splunky 1931.158SplunkySUBDIR+= libp2k # depends on libukfs, librumpvfs, libpuffs 1941.158Splunky 1951.178Smbalmer# Lua bindings come last, they might depend on anything 1961.178SmbalmerSUBDIR+= lua 1971.178Smbalmer 1981.1Scgd.include <bsd.subdir.mk> 199