Makefile revision 1.179
11.179Sjoerg# $NetBSD: Makefile,v 1.179 2011/10/13 22:08:20 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.155SplunkySUBDIR+= ../external/bsd/libdwarf/lib 621.155SplunkySUBDIR+= ../external/bsd/libelf/lib 631.155SplunkySUBDIR+= ../external/bsd/libevent/lib 641.163SmattSUBDIR+= ../external/bsd/liblzf/lib 651.158SplunkySUBDIR+= ../external/bsd/libpcap/lib 661.155Splunky 671.155SplunkySUBDIR+= ../external/mit/lua/lib 681.155Splunky 691.179SjoergSUBDIR+= ../external/public-domain/sqlite/lib 701.155SplunkySUBDIR+= ../external/public-domain/xz/lib 711.155Splunky 721.155SplunkySUBDIR+= ../gnu/lib/libmalloc 731.155Splunky 741.155Splunky.if (${MKGCC} != "no") 751.168Smrg. if ${HAVE_GCC} == 4 761.155SplunkySUBDIR+= ../gnu/lib/libobjc4 771.170Smrg. else 781.170SmrgSUBDIR+= ../external/gpl3/gcc/lib/libobjc 791.177SmrgSUBDIR+= ../external/gpl3/gcc/lib/libgomp 801.168Smrg. endif 811.174Splunky. if ${HAVE_GCC} >= 45 && !defined(MLIBDIR) 821.173Smrg# Should probably move GMP, MPFR and MPC builds into the GCC >= 4.5 831.173Smrg# specific build area, but we get better parallelism this way. 841.172SmattSUBDIR+= ../external/lgpl3/gmp/lib/libgmp 851.174SplunkySUBDIR+= ../external/lgpl3/mpfr/lib/libmpfr 861.174SplunkySUBDIR+= ../external/lgpl2/mpc/lib/libmpc 871.174Splunky. endif 881.155Splunky.endif 891.144Schristos 901.89Slukem# 911.89Slukem# Libraries that depend upon any listed previously 921.93Slukem# (and those that depend upon these [and ...]) 931.89Slukem# 941.97Schristos#==================== 1st library dependency barrier ==================== 951.97SchristosSUBDIR+= .WAIT 961.97Schristos 971.158SplunkySUBDIR+= libcurses # depends on libterminfo 981.162ShaadSUBDIR+= libdm # depends on libprop 991.158SplunkySUBDIR+= libedit # depends on libterminfo 1001.176SdyoungSUBDIR+= libppath # depends on libprop 1011.175SplunkySUBDIR+= libperfuse # depends on libpuffs 1021.165SbouyerSUBDIR+= libquota # depends on libprop and librpcsvc 1031.113SpookaSUBDIR+= librefuse # depends on libpuffs 1041.126SpookaSUBDIR+= librumpuser # depends on libpthread 1051.175SplunkySUBDIR+= librumphijack # depends on librumpclient and libpthread 1061.126Spooka 1071.161Srmind.if (${MKNPF} != "no") 1081.161SrmindSUBDIR+= libnpf # depends on libprop 1091.161Srmind.endif 1101.161Srmind 1111.148Smrg.if (${MKCRYPTO} != "no") 1121.158SplunkySUBDIR+= ../crypto/external/bsd/openssl/lib # depends on libcrypt 1131.148Smrg.endif 1141.139Smrg 1151.155SplunkySUBDIR+= ../external/bsd/file/lib # depends on libz 1161.155Splunky 1171.155Splunky.if (${MKISCSI} != "no") 1181.155SplunkySUBDIR+= ../external/bsd/iscsi/lib # depends on libpthread 1191.155Splunky.endif 1201.155Splunky 1211.155SplunkySUBDIR+= ../external/bsd/libarchive/lib # depends on libxz 1221.155Splunky 1231.163Smatt.if (${MKLVM} != "no") 1241.163SmattSUBDIR+= ../external/gpl2/lvm2/lib # depends on libprop 1251.163Smatt.endif 1261.163Smatt 1271.155Splunky.if (${MKBINUTILS} != "no") 1281.155SplunkySUBDIR+= ../external/gpl3/binutils/lib # libbfd depends on libz 1291.155Splunky.endif 1301.155Splunky 1311.155Splunky.if (${MKGCC} != "no" && ${MKCXX} != "no") 1321.168Smrg. if ${HAVE_GCC} == 4 1331.155SplunkySUBDIR+= ../gnu/lib/libstdc++-v3_4 # depends on libm 1341.155SplunkySUBDIR+= ../gnu/lib/libsupc++4 1351.170Smrg. else 1361.170SmrgSUBDIR+= ../external/gpl3/gcc/lib/libstdc++-v3 1371.170SmrgSUBDIR+= ../external/gpl3/gcc/lib/libsupc++ 1381.168Smrg. endif 1391.155Splunky.endif 1401.155Splunky 1411.97Schristos#==================== 2nd library dependency barrier ==================== 1421.97SchristosSUBDIR+= .WAIT 1431.97Schristos 1441.158SplunkySUBDIR+= libform # depends on libcurses 1451.175SplunkySUBDIR+= libmenu # depends on libcurses 1461.175SplunkySUBDIR+= libradius # depends on libcrypto if (${MKCRYPTO} != "no") 1471.175SplunkySUBDIR+= librump # depends on librumpuser 1481.158Splunky 1491.100Schristos.if (${MKKERBEROS} != "no") 1501.166SelricSUBDIR+= ../crypto/external/bsd/heimdal/lib # depends on libcrypto 1511.166Selric # libedit, libterminfo, 1521.100Schristos.endif 1531.100Schristos 1541.158Splunky.if (${MKCRYPTO} != "no") 1551.158SplunkySUBDIR+= ../crypto/external/bsd/openssh/lib # depends on libcrypto, libz 1561.158SplunkySUBDIR+= ../crypto/external/bsd/netpgp/lib # depends on libcrypto, ... 1571.158Splunky.endif 1581.158Splunky 1591.158SplunkySUBDIR+= ../external/bsd/bind/lib # depends on libcrypto 1601.158SplunkySUBDIR+= ../external/bsd/fetch/lib # depends on libssl 1611.158Splunky 1621.158Splunky.if (${MKLDAP} != "no") 1631.158SplunkySUBDIR+= ../external/bsd/openldap/lib # depends on libcrypto, ... 1641.158Splunky.endif 1651.158Splunky 1661.124Slukem#==================== 3rd library dependency barrier ==================== 1671.124SlukemSUBDIR+= .WAIT 1681.124Slukem 1691.143SpookaSUBDIR+= librumpdev # depends on librump 1701.128SpookaSUBDIR+= librumpnet # depends on librump 1711.130SpookaSUBDIR+= librumpvfs # depends on librump 1721.126Spooka 1731.175Splunky.if (${MKPAM} != "no") 1741.175SplunkySUBDIR+= libpam # depends on heimdal 1751.175Splunky.endif 1761.175Splunky 1771.175Splunky.if (${MKCRYPTO} != "no") 1781.175SplunkySUBDIR+= ../crypto/external/bsd/libsaslc # depends on heimdal, openssl 1791.175Splunky.endif 1801.175Splunky 1811.126Spooka#==================== 4th library dependency barrier ==================== 1821.126SpookaSUBDIR+= .WAIT 1831.158Splunky 1841.158SplunkySUBDIR+= libukfs # depends on librumpvfs, librump 1851.131Spooka 1861.131Spooka#==================== 5th library dependency barrier ==================== 1871.131SpookaSUBDIR+= .WAIT 1881.158Splunky 1891.158SplunkySUBDIR+= libp2k # depends on libukfs, librumpvfs, libpuffs 1901.158Splunky 1911.178Smbalmer# Lua bindings come last, they might depend on anything 1921.178SmbalmerSUBDIR+= lua 1931.178Smbalmer 1941.1Scgd.include <bsd.subdir.mk> 195