Makefile revision 1.166
1# $NetBSD: Makefile,v 1.166 2011/04/15 18:05:44 elric 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 (${MKSKEY} != "no") 36SUBDIR+= libskey 37.endif 38 39.if (${MKCRYPTO} != "no") 40SUBDIR+= ../crypto/external/bsd/netpgp/libmj 41.endif 42 43.if (${MKMDNS} != "no") 44SUBDIR+= ../external/apache2/mDNSResponder/lib 45.endif 46 47SUBDIR+= ../external/bsd/am-utils/lib 48 49.if (${MKATF} != "no") 50SUBDIR+= ../external/bsd/atf/lib 51.endif 52 53SUBDIR+= ../external/bsd/flex/lib 54SUBDIR+= ../external/bsd/libdwarf/lib 55SUBDIR+= ../external/bsd/libelf/lib 56SUBDIR+= ../external/bsd/libevent/lib 57SUBDIR+= ../external/bsd/liblzf/lib 58SUBDIR+= ../external/bsd/libpcap/lib 59 60SUBDIR+= ../external/mit/lua/lib 61 62SUBDIR+= ../external/public-domain/xz/lib 63 64SUBDIR+= ../gnu/lib/libmalloc 65 66.if (${MKGCC} != "no") 67SUBDIR+= ../gnu/lib/libobjc4 68.endif 69 70# 71# Libraries that depend upon any listed previously 72# (and those that depend upon these [and ...]) 73# 74#==================== 1st library dependency barrier ==================== 75SUBDIR+= .WAIT 76 77SUBDIR+= libcurses # depends on libterminfo 78SUBDIR+= libdm # depends on libprop 79SUBDIR+= libedit # depends on libterminfo 80SUBDIR+= libquota # depends on libprop and librpcsvc 81SUBDIR+= librefuse # depends on libpuffs 82SUBDIR+= librumpuser # depends on libpthread 83 84.if (${MKNPF} != "no") 85SUBDIR+= libnpf # depends on libprop 86.endif 87 88.if (${MKCRYPTO} != "no") 89SUBDIR+= ../crypto/external/bsd/openssl/lib # depends on libcrypt 90.endif 91 92SUBDIR+= ../external/bsd/file/lib # depends on libz 93 94.if (${MKISCSI} != "no") 95SUBDIR+= ../external/bsd/iscsi/lib # depends on libpthread 96.endif 97 98SUBDIR+= ../external/bsd/libarchive/lib # depends on libxz 99 100.if (${MKLVM} != "no") 101SUBDIR+= ../external/gpl2/lvm2/lib # depends on libprop 102.endif 103 104.if (${MKBINUTILS} != "no") 105SUBDIR+= ../external/gpl3/binutils/lib # libbfd depends on libz 106.endif 107 108.if (${MKGCC} != "no" && ${MKCXX} != "no") 109SUBDIR+= ../gnu/lib/libstdc++-v3_4 # depends on libm 110SUBDIR+= ../gnu/lib/libsupc++4 111.endif 112 113#==================== 2nd library dependency barrier ==================== 114SUBDIR+= .WAIT 115 116SUBDIR+= libform # depends on libcurses 117 118.if (${MKKERBEROS} != "no") 119SUBDIR+= ../crypto/external/bsd/heimdal/lib # depends on libcrypto 120 # libedit, libterminfo, 121.endif 122 123SUBDIR+= libmenu # depends on libcurses 124SUBDIR+= libradius # depends on libcrypto if (${MKCRYPTO} != "no") 125SUBDIR+= librump # depends on librumpuser 126 127.if (${MKCRYPTO} != "no") 128SUBDIR+= ../crypto/external/bsd/openssh/lib # depends on libcrypto, libz 129SUBDIR+= ../crypto/external/bsd/netpgp/lib # depends on libcrypto, ... 130.endif 131 132SUBDIR+= ../external/bsd/bind/lib # depends on libcrypto 133SUBDIR+= ../external/bsd/fetch/lib # depends on libssl 134 135.if (${MKLDAP} != "no") 136SUBDIR+= ../external/bsd/openldap/lib # depends on libcrypto, ... 137.endif 138 139SUBDIR+= librumphijack 140 141#==================== 3rd library dependency barrier ==================== 142SUBDIR+= .WAIT 143 144SUBDIR+= librumpdev # depends on librump 145SUBDIR+= librumpnet # depends on librump 146SUBDIR+= librumpvfs # depends on librump 147 148#==================== 4th library dependency barrier ==================== 149SUBDIR+= .WAIT 150 151SUBDIR+= libukfs # depends on librumpvfs, librump 152 153#==================== 5th library dependency barrier ==================== 154SUBDIR+= .WAIT 155 156SUBDIR+= libp2k # depends on libukfs, librumpvfs, libpuffs 157 158.if (${MKPAM} != "no") 159SUBDIR+= libpam # depends on libkafs, libkrb5, ... 160.endif 161 162#==================== 6th library dependency barrier ==================== 163SUBDIR+= .WAIT 164 165.if (${MKCRYPTO} != "no") 166SUBDIR+= ../crypto/external/bsd/libsaslc # depends on gssapi 167.endif 168 169.include <bsd.subdir.mk> 170