Makefile revision 1.165
1# $NetBSD: Makefile,v 1.165 2011/03/24 17:05:43 bouyer 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+= libquota # depends on libprop and librpcsvc 91SUBDIR+= librefuse # depends on libpuffs 92SUBDIR+= librumpuser # depends on libpthread 93 94.if (${MKNPF} != "no") 95SUBDIR+= libnpf # depends on libprop 96.endif 97 98.if (${MKCRYPTO} != "no") 99SUBDIR+= ../crypto/external/bsd/openssl/lib # depends on libcrypt 100.endif 101 102SUBDIR+= ../external/bsd/file/lib # depends on libz 103 104.if (${MKISCSI} != "no") 105SUBDIR+= ../external/bsd/iscsi/lib # depends on libpthread 106.endif 107 108SUBDIR+= ../external/bsd/libarchive/lib # depends on libxz 109 110.if (${MKLVM} != "no") 111SUBDIR+= ../external/gpl2/lvm2/lib # depends on libprop 112.endif 113 114.if (${MKBINUTILS} != "no") 115SUBDIR+= ../external/gpl3/binutils/lib # libbfd depends on libz 116.endif 117 118.if (${MKGCC} != "no" && ${MKCXX} != "no") 119SUBDIR+= ../gnu/lib/libstdc++-v3_4 # depends on libm 120SUBDIR+= ../gnu/lib/libsupc++4 121.endif 122 123#==================== 2nd library dependency barrier ==================== 124SUBDIR+= .WAIT 125 126SUBDIR+= libform # depends on libcurses 127 128.if (${MKKERBEROS} != "no") 129SUBDIR+= libhx509 # depends on libcrypto, libasn1, libroken 130SUBDIR+= libsl # depends on libedit, libterminfo 131SUBDIR+= libss # depends on libedit, libterminfo, ... 132.endif 133 134SUBDIR+= libmenu # depends on libcurses 135SUBDIR+= libradius # depends on libcrypto if (${MKCRYPTO} != "no") 136SUBDIR+= librump # depends on librumpuser 137 138.if (${MKCRYPTO} != "no") 139SUBDIR+= ../crypto/external/bsd/openssh/lib # depends on libcrypto, libz 140SUBDIR+= ../crypto/external/bsd/netpgp/lib # depends on libcrypto, ... 141.endif 142 143SUBDIR+= ../external/bsd/bind/lib # depends on libcrypto 144SUBDIR+= ../external/bsd/fetch/lib # depends on libssl 145 146.if (${MKLDAP} != "no") 147SUBDIR+= ../external/bsd/openldap/lib # depends on libcrypto, ... 148.endif 149 150SUBDIR+= librumphijack 151 152#==================== 3rd library dependency barrier ==================== 153SUBDIR+= .WAIT 154 155.if (${MKKERBEROS} != "no") 156SUBDIR+= libkrb5 # depends on libhx509, libcrypto, libasn1, ... 157.endif 158 159SUBDIR+= librumpdev # depends on librump 160SUBDIR+= librumpnet # depends on librump 161SUBDIR+= librumpvfs # depends on librump 162 163#==================== 4th library dependency barrier ==================== 164SUBDIR+= .WAIT 165 166.if (${MKKERBEROS} != "no") 167SUBDIR+= libhdb # depends on libkrb5, libasn1, libroken 168SUBDIR+= libheimntlm # depends on libkrb5, libasn1, libroken 169SUBDIR+= libkafs # depends on libkrb5, libroken 170.endif 171 172SUBDIR+= libukfs # depends on librumpvfs, librump 173 174#==================== 5th library dependency barrier ==================== 175SUBDIR+= .WAIT 176 177.if (${MKKERBEROS} != "no") 178SUBDIR+= libgssapi # depends on libheimntlm 179SUBDIR+= libkadm5clnt # depends on libhdb, libkrb5, libroken 180SUBDIR+= libkadm5srv # depends on libhdb, libkrb5, libroken 181.endif 182 183SUBDIR+= libp2k # depends on libukfs, librumpvfs, libpuffs 184 185.if (${MKPAM} != "no") 186SUBDIR+= libpam # depends on libkafs, libkrb5, ... 187.endif 188 189#==================== 6th library dependency barrier ==================== 190SUBDIR+= .WAIT 191 192.if (${MKCRYPTO} != "no") 193SUBDIR+= ../crypto/external/bsd/libsaslc # depends on gssapi 194.endif 195 196.include <bsd.subdir.mk> 197