1 # $NetBSD: Makefile,v 1.134 2009/04/12 17:09:46 christos Exp $ 2 # from: @(#)Makefile 5.25.1.1 (Berkeley) 5/7/91 3 4 .include <bsd.own.mk> 5 6 SUBDIR= csu libc .WAIT libarch \ 7 libbsdmalloc libbluetooth libbz2 \ 8 libcompat libcrypt \ 9 libcurses libevent libintl libkvm libl libm \ 10 libossaudio libpcap libpci libpmc libposix libprop libpthread \ 11 libpthread_dbg libpuffs libresolv librmt librpcsvc librt libsdp \ 12 libterm libusbhid libutil libwrap liby libz 13 14 # libform and libmenu need libcurses 15 SUBDIR+= .WAIT libform libmenu 16 17 .if (${MKATF} != "no") 18 SUBDIR+= ../external/bsd/atf/lib/libatf-c ../external/bsd/atf/lib/libatf-c++ 19 .endif 20 21 .if (${MKSKEY} != "no") 22 SUBDIR+= libskey 23 .endif 24 25 # XXX Crypto bits must be done before libtelnet. 26 27 .if (${MKCRYPTO} != "no") 28 # OpenSSL libraries. 29 SUBDIR+= libcrypto libdes 30 31 .if (${MKCRYPTO_IDEA} != "no") 32 SUBDIR+= libcrypto_idea 33 .endif # MKCRYPTO_IDEA != no 34 35 .if (${MKCRYPTO_MDC2} != "no") 36 SUBDIR+= libcrypto_mdc2 37 .endif # MKCRYPTO_MDC2 != no 38 39 .if (${MKCRYPTO_RC5} != "no") 40 SUBDIR+= libcrypto_rc5 41 .endif # MKCRYPTO_RC5 != no 42 43 .endif # MKCRYPTO != no 44 45 .if (${MKKERBEROS} != "no") 46 # Heimdal Kerberos 5 libraries 47 SUBDIR+= .WAIT libroken libvers libcom_err .WAIT libasn1 48 SUBDIR+= .WAIT libhx509 49 50 .endif # MKKERBEROS != no 51 52 SUBDIR+= libtelnet 53 54 # IPv6/IPsec 55 SUBDIR+= libipsec 56 57 # I18N modules 58 SUBDIR+= i18n_module 59 60 61 # 62 # Libraries that depend upon any listed previously 63 # (and those that depend upon these [and ...]) 64 # 65 #==================== 1st library dependency barrier ==================== 66 SUBDIR+= .WAIT 67 68 SUBDIR+= libedit # depends on libterm 69 70 SUBDIR+= libmagic # depends on libz 71 72 SUBDIR+= libradius # depends on libcrypto - only if ${MKCRYPTO} 73 74 .if (${MKISCSI} != "no") 75 SUBDIR+= libiscsi # depends on libpthread 76 .endif 77 78 .if (${MKCRYPTO} != "no") 79 SUBDIR+= libssl # depends on libcrypto 80 SUBDIR+= libssh # depends on libcrypto 81 .endif 82 83 .if (${MKKERBEROS} != "no") 84 SUBDIR+= libkrb5 # depends on libcrypto and more 85 .endif 86 87 SUBDIR+= librefuse # depends on libpuffs 88 SUBDIR+= librumpuser # depends on libpthread 89 90 #==================== 2nd library dependency barrier ==================== 91 SUBDIR+= .WAIT 92 93 .if (${MKKERBEROS} != "no") 94 # Heimdal Kerberos 5 libraries depending on libkrb5 and more 95 SUBDIR+= libheimntlm 96 SUBDIR+= .WAIT libgssapi libhdb 97 SUBDIR+= .WAIT libkadm5srv libkadm5clnt libkafs libsl libss 98 .endif 99 100 .if (${MKLDAP} != "no") 101 # depends on libcrypto - only if ${MKCRYPTO} 102 SUBDIR+= ../external/bsd/openldap/lib 103 .endif 104 105 SUBDIR+= librump # depends on librumpuser 106 107 #==================== 3rd library dependency barrier ==================== 108 SUBDIR+= .WAIT 109 110 .if (${MKPAM} != "no") 111 SUBDIR+= libpam # depends on libkrb5, libkafs and more 112 .endif 113 114 SUBDIR+= librumpnet # depends on librump 115 SUBDIR+= librumpvfs # depends on librump 116 117 #==================== 4th library dependency barrier ==================== 118 SUBDIR+= .WAIT 119 SUBDIR+= libukfs # depends on librump and librumpvfs 120 121 #==================== 5th library dependency barrier ==================== 122 SUBDIR+= .WAIT 123 SUBDIR+= libp2k # depends on libpuffs, librumpvfs and libukfs 124 125 .include <bsd.subdir.mk> 126