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