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