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