Makefile revision 1.181
11.181Sjoerg# $NetBSD: Makefile,v 1.181 2012/02/07 19:13:31 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.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.155Splunky 701.179SjoergSUBDIR+= ../external/public-domain/sqlite/lib 711.155SplunkySUBDIR+= ../external/public-domain/xz/lib 721.155Splunky 731.155SplunkySUBDIR+= ../gnu/lib/libmalloc 741.155Splunky 751.155Splunky.if (${MKGCC} != "no") 761.168Smrg. if ${HAVE_GCC} == 4 771.155SplunkySUBDIR+= ../gnu/lib/libobjc4 781.170Smrg. else 791.170SmrgSUBDIR+= ../external/gpl3/gcc/lib/libobjc 801.177SmrgSUBDIR+= ../external/gpl3/gcc/lib/libgomp 811.168Smrg. endif 821.174Splunky. if ${HAVE_GCC} >= 45 && !defined(MLIBDIR) 831.173Smrg# Should probably move GMP, MPFR and MPC builds into the GCC >= 4.5 841.173Smrg# specific build area, but we get better parallelism this way. 851.172SmattSUBDIR+= ../external/lgpl3/gmp/lib/libgmp 861.174SplunkySUBDIR+= ../external/lgpl3/mpfr/lib/libmpfr 871.174SplunkySUBDIR+= ../external/lgpl2/mpc/lib/libmpc 881.174Splunky. endif 891.155Splunky.endif 901.144Schristos 911.89Slukem# 921.89Slukem# Libraries that depend upon any listed previously 931.93Slukem# (and those that depend upon these [and ...]) 941.89Slukem# 951.97Schristos#==================== 1st library dependency barrier ==================== 961.97SchristosSUBDIR+= .WAIT 971.97Schristos 981.158SplunkySUBDIR+= libcurses # depends on libterminfo 991.162ShaadSUBDIR+= libdm # depends on libprop 1001.158SplunkySUBDIR+= libedit # depends on libterminfo 1011.176SdyoungSUBDIR+= libppath # depends on libprop 1021.175SplunkySUBDIR+= libperfuse # depends on libpuffs 1031.165SbouyerSUBDIR+= libquota # depends on libprop and librpcsvc 1041.113SpookaSUBDIR+= librefuse # depends on libpuffs 1051.126SpookaSUBDIR+= librumpuser # depends on libpthread 1061.175SplunkySUBDIR+= librumphijack # depends on librumpclient and libpthread 1071.126Spooka 1081.161Srmind.if (${MKNPF} != "no") 1091.161SrmindSUBDIR+= libnpf # depends on libprop 1101.161Srmind.endif 1111.161Srmind 1121.148Smrg.if (${MKCRYPTO} != "no") 1131.158SplunkySUBDIR+= ../crypto/external/bsd/openssl/lib # depends on libcrypt 1141.148Smrg.endif 1151.139Smrg 1161.155SplunkySUBDIR+= ../external/bsd/file/lib # depends on libz 1171.155Splunky 1181.155Splunky.if (${MKISCSI} != "no") 1191.155SplunkySUBDIR+= ../external/bsd/iscsi/lib # depends on libpthread 1201.155Splunky.endif 1211.155Splunky 1221.155SplunkySUBDIR+= ../external/bsd/libarchive/lib # depends on libxz 1231.155Splunky 1241.163Smatt.if (${MKLVM} != "no") 1251.163SmattSUBDIR+= ../external/gpl2/lvm2/lib # depends on libprop 1261.163Smatt.endif 1271.163Smatt 1281.155Splunky.if (${MKBINUTILS} != "no") 1291.155SplunkySUBDIR+= ../external/gpl3/binutils/lib # libbfd depends on libz 1301.155Splunky.endif 1311.155Splunky 1321.155Splunky.if (${MKGCC} != "no" && ${MKCXX} != "no") 1331.168Smrg. if ${HAVE_GCC} == 4 1341.155SplunkySUBDIR+= ../gnu/lib/libstdc++-v3_4 # depends on libm 1351.155SplunkySUBDIR+= ../gnu/lib/libsupc++4 1361.170Smrg. else 1371.170SmrgSUBDIR+= ../external/gpl3/gcc/lib/libstdc++-v3 1381.170SmrgSUBDIR+= ../external/gpl3/gcc/lib/libsupc++ 1391.168Smrg. endif 1401.155Splunky.endif 1411.155Splunky 1421.97Schristos#==================== 2nd library dependency barrier ==================== 1431.97SchristosSUBDIR+= .WAIT 1441.97Schristos 1451.158SplunkySUBDIR+= libform # depends on libcurses 1461.175SplunkySUBDIR+= libmenu # depends on libcurses 1471.175SplunkySUBDIR+= libradius # depends on libcrypto if (${MKCRYPTO} != "no") 1481.175SplunkySUBDIR+= librump # depends on librumpuser 1491.158Splunky 1501.100Schristos.if (${MKKERBEROS} != "no") 1511.166SelricSUBDIR+= ../crypto/external/bsd/heimdal/lib # depends on libcrypto 1521.166Selric # libedit, libterminfo, 1531.100Schristos.endif 1541.100Schristos 1551.158Splunky.if (${MKCRYPTO} != "no") 1561.158SplunkySUBDIR+= ../crypto/external/bsd/openssh/lib # depends on libcrypto, libz 1571.158SplunkySUBDIR+= ../crypto/external/bsd/netpgp/lib # depends on libcrypto, ... 1581.158Splunky.endif 1591.158Splunky 1601.158SplunkySUBDIR+= ../external/bsd/bind/lib # depends on libcrypto 1611.158SplunkySUBDIR+= ../external/bsd/fetch/lib # depends on libssl 1621.158Splunky 1631.158Splunky.if (${MKLDAP} != "no") 1641.158SplunkySUBDIR+= ../external/bsd/openldap/lib # depends on libcrypto, ... 1651.158Splunky.endif 1661.158Splunky 1671.124Slukem#==================== 3rd library dependency barrier ==================== 1681.124SlukemSUBDIR+= .WAIT 1691.124Slukem 1701.143SpookaSUBDIR+= librumpdev # depends on librump 1711.128SpookaSUBDIR+= librumpnet # depends on librump 1721.130SpookaSUBDIR+= librumpvfs # depends on librump 1731.126Spooka 1741.175Splunky.if (${MKPAM} != "no") 1751.175SplunkySUBDIR+= libpam # depends on heimdal 1761.175Splunky.endif 1771.175Splunky 1781.175Splunky.if (${MKCRYPTO} != "no") 1791.175SplunkySUBDIR+= ../crypto/external/bsd/libsaslc # depends on heimdal, openssl 1801.175Splunky.endif 1811.175Splunky 1821.181SjoergSUBDIR+= ../external/bsd/mdocml/lib 1831.181Sjoerg 1841.126Spooka#==================== 4th library dependency barrier ==================== 1851.126SpookaSUBDIR+= .WAIT 1861.158Splunky 1871.158SplunkySUBDIR+= libukfs # depends on librumpvfs, librump 1881.131Spooka 1891.131Spooka#==================== 5th library dependency barrier ==================== 1901.131SpookaSUBDIR+= .WAIT 1911.158Splunky 1921.158SplunkySUBDIR+= libp2k # depends on libukfs, librumpvfs, libpuffs 1931.158Splunky 1941.178Smbalmer# Lua bindings come last, they might depend on anything 1951.178SmbalmerSUBDIR+= lua 1961.178Smbalmer 1971.1Scgd.include <bsd.subdir.mk> 198