Makefile revision 1.169
1# $NetBSD: Makefile,v 1.169 2011/06/22 05:16:37 mrg Exp $ 2# from: @(#)Makefile 5.25.1.1 (Berkeley) 5/7/91 3 4.include <bsd.own.mk> 5 6SUBDIR= csu 7 8.if (${MKGCC} != "no") 9. if ${HAVE_GCC} == 4 10. if (${USE_COMPILERCRTSTUFF} == "yes") 11SUBDIR+= ../gnu/lib/crtstuff4 12. endif 13SUBDIR+= ../gnu/lib/libgcc4 14. else 15. if (${USE_COMPILERCRTSTUFF} == "yes") 16# XXX not yet 17#SUBDIR+= ../external/gpl3/gcc/lib/crtstuff 18. endif 19#SUBDIR+= ../external/gpl3/gcc/lib/libgcc 20. endif 21.endif 22 23SUBDIR+= libc 24SUBDIR+= .WAIT 25 26# 27# The SUBDIRs above are included here for completeness but should be built 28# and installed prior to make(dependall) in this file, as libraries listed 29# below will depend on versions from DESTDIR only. 30# 31 32SUBDIR+= i18n_module 33 34SUBDIR+= libarch \ 35 libbluetooth libbsdmalloc libbz2 \ 36 libcompat libcrypt \ 37 libintl libipsec libisns libkvm libm \ 38 libossaudio libpci libpmc libposix libprop libpthread \ 39 libpthread_dbg libpuffs libresolv librmt librpcsvc librt \ 40 librumpclient libtelnet libterminfo \ 41 libusbhid libutil libwrap liby libz 42 43.if (${MKSKEY} != "no") 44SUBDIR+= libskey 45.endif 46 47.if (${MKCRYPTO} != "no") 48SUBDIR+= ../crypto/external/bsd/netpgp/libmj 49.endif 50 51.if (${MKMDNS} != "no") 52SUBDIR+= ../external/apache2/mDNSResponder/lib 53.endif 54 55SUBDIR+= ../external/bsd/am-utils/lib 56 57.if (${MKATF} != "no") 58SUBDIR+= ../external/bsd/atf/lib 59.endif 60 61SUBDIR+= ../external/bsd/flex/lib 62SUBDIR+= ../external/bsd/libdwarf/lib 63SUBDIR+= ../external/bsd/libelf/lib 64SUBDIR+= ../external/bsd/libevent/lib 65SUBDIR+= ../external/bsd/liblzf/lib 66SUBDIR+= ../external/bsd/libpcap/lib 67 68SUBDIR+= ../external/mit/lua/lib 69 70SUBDIR+= ../external/public-domain/xz/lib 71 72SUBDIR+= ../gnu/lib/libmalloc 73 74.if (${MKGCC} != "no") 75. if ${HAVE_GCC} == 4 76SUBDIR+= ../gnu/lib/libobjc4 77. endif 78.endif 79 80. if ${HAVE_GCC} >= 45 81# XXX not yet 82#SUBDIR+= ../external/lgpl3/gmp/lib/libgmp 83#SUBDIR+= ../external/lgpl3/mpfr/lib/libmpfr 84#SUBDIR+= ../external/lgpl2/mpc/lib/libmpc 85.endif 86 87# 88# Libraries that depend upon any listed previously 89# (and those that depend upon these [and ...]) 90# 91#==================== 1st library dependency barrier ==================== 92SUBDIR+= .WAIT 93 94SUBDIR+= libcurses # depends on libterminfo 95SUBDIR+= libdm # depends on libprop 96SUBDIR+= libedit # depends on libterminfo 97SUBDIR+= libquota # depends on libprop and librpcsvc 98SUBDIR+= librefuse # depends on libpuffs 99SUBDIR+= libperfuse # depends on libpuffs 100SUBDIR+= librumpuser # depends on libpthread 101 102.if (${MKNPF} != "no") 103SUBDIR+= libnpf # depends on libprop 104.endif 105 106.if (${MKCRYPTO} != "no") 107SUBDIR+= ../crypto/external/bsd/openssl/lib # depends on libcrypt 108.endif 109 110SUBDIR+= ../external/bsd/file/lib # depends on libz 111 112.if (${MKISCSI} != "no") 113SUBDIR+= ../external/bsd/iscsi/lib # depends on libpthread 114.endif 115 116SUBDIR+= ../external/bsd/libarchive/lib # depends on libxz 117 118.if (${MKLVM} != "no") 119SUBDIR+= ../external/gpl2/lvm2/lib # depends on libprop 120.endif 121 122.if (${MKBINUTILS} != "no") 123SUBDIR+= ../external/gpl3/binutils/lib # libbfd depends on libz 124.endif 125 126.if (${MKGCC} != "no" && ${MKCXX} != "no") 127. if ${HAVE_GCC} == 4 128SUBDIR+= ../gnu/lib/libstdc++-v3_4 # depends on libm 129SUBDIR+= ../gnu/lib/libsupc++4 130. endif 131.endif 132 133#==================== 2nd library dependency barrier ==================== 134SUBDIR+= .WAIT 135 136SUBDIR+= libform # depends on libcurses 137 138.if (${MKKERBEROS} != "no") 139SUBDIR+= ../crypto/external/bsd/heimdal/lib # depends on libcrypto 140 # libedit, libterminfo, 141.endif 142 143SUBDIR+= libmenu # depends on libcurses 144SUBDIR+= libradius # depends on libcrypto if (${MKCRYPTO} != "no") 145SUBDIR+= librump # depends on librumpuser 146 147.if (${MKCRYPTO} != "no") 148SUBDIR+= ../crypto/external/bsd/openssh/lib # depends on libcrypto, libz 149SUBDIR+= ../crypto/external/bsd/netpgp/lib # depends on libcrypto, ... 150.endif 151 152SUBDIR+= ../external/bsd/bind/lib # depends on libcrypto 153SUBDIR+= ../external/bsd/fetch/lib # depends on libssl 154 155.if (${MKLDAP} != "no") 156SUBDIR+= ../external/bsd/openldap/lib # depends on libcrypto, ... 157.endif 158 159SUBDIR+= librumphijack 160 161#==================== 3rd library dependency barrier ==================== 162SUBDIR+= .WAIT 163 164SUBDIR+= librumpdev # depends on librump 165SUBDIR+= librumpnet # depends on librump 166SUBDIR+= librumpvfs # depends on librump 167 168#==================== 4th library dependency barrier ==================== 169SUBDIR+= .WAIT 170 171SUBDIR+= libukfs # depends on librumpvfs, librump 172 173#==================== 5th library dependency barrier ==================== 174SUBDIR+= .WAIT 175 176SUBDIR+= libp2k # depends on libukfs, librumpvfs, libpuffs 177 178.if (${MKPAM} != "no") 179SUBDIR+= libpam # depends on libkafs, libkrb5, ... 180.endif 181 182#==================== 6th library dependency barrier ==================== 183SUBDIR+= .WAIT 184 185.if (${MKCRYPTO} != "no") 186SUBDIR+= ../crypto/external/bsd/libsaslc # depends on gssapi 187.endif 188 189.include <bsd.subdir.mk> 190