Makefile revision 1.168
1# $NetBSD: Makefile,v 1.168 2011/06/21 04:04:13 mrg 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") 67. if ${HAVE_GCC} == 4 68SUBDIR+= ../gnu/lib/libobjc4 69. endif 70.endif 71 72. if ${HAVE_GCC} >= 45 73SUBDIR+= ../external/lgpl3/gmp/lib/libgmp 74SUBDIR+= ../external/lgpl3/mpfr/lib/libmpfr 75SUBDIR+= ../external/lgpl2/mpc/lib/libmpc 76.endif 77 78# 79# Libraries that depend upon any listed previously 80# (and those that depend upon these [and ...]) 81# 82#==================== 1st library dependency barrier ==================== 83SUBDIR+= .WAIT 84 85SUBDIR+= libcurses # depends on libterminfo 86SUBDIR+= libdm # depends on libprop 87SUBDIR+= libedit # depends on libterminfo 88SUBDIR+= libquota # depends on libprop and librpcsvc 89SUBDIR+= librefuse # depends on libpuffs 90SUBDIR+= libperfuse # 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") 118. if ${HAVE_GCC} == 4 119SUBDIR+= ../gnu/lib/libstdc++-v3_4 # depends on libm 120SUBDIR+= ../gnu/lib/libsupc++4 121. endif 122.endif 123 124#==================== 2nd library dependency barrier ==================== 125SUBDIR+= .WAIT 126 127SUBDIR+= libform # depends on libcurses 128 129.if (${MKKERBEROS} != "no") 130SUBDIR+= ../crypto/external/bsd/heimdal/lib # depends on libcrypto 131 # 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 155SUBDIR+= librumpdev # depends on librump 156SUBDIR+= librumpnet # depends on librump 157SUBDIR+= librumpvfs # depends on librump 158 159#==================== 4th library dependency barrier ==================== 160SUBDIR+= .WAIT 161 162SUBDIR+= libukfs # depends on librumpvfs, librump 163 164#==================== 5th library dependency barrier ==================== 165SUBDIR+= .WAIT 166 167SUBDIR+= libp2k # depends on libukfs, librumpvfs, libpuffs 168 169.if (${MKPAM} != "no") 170SUBDIR+= libpam # depends on libkafs, libkrb5, ... 171.endif 172 173#==================== 6th library dependency barrier ==================== 174SUBDIR+= .WAIT 175 176.if (${MKCRYPTO} != "no") 177SUBDIR+= ../crypto/external/bsd/libsaslc # depends on gssapi 178.endif 179 180.include <bsd.subdir.mk> 181