1# $NetBSD: Makefile,v 1.173 2011/07/21 03:13:30 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 ${HAVE_GCC} == 4 10. if (${USE_COMPILERCRTSTUFF} == "yes") 11SUBDIR+= ../gnu/lib/crtstuff4 12. endif 13SUBDIR+= ../gnu/lib/libgcc4 14. else 15. if (${USE_COMPILERCRTSTUFF} == "yes") 16SUBDIR+= ../external/gpl3/gcc/lib/crtstuff 17. endif 18SUBDIR+= ../external/gpl3/gcc/lib/libgcc 19. endif 20.endif 21 22SUBDIR+= libc 23SUBDIR+= .WAIT 24 25# 26# The SUBDIRs above are included here for completeness but should be built 27# and installed prior to make(dependall) in this file, as libraries listed 28# below will depend on versions from DESTDIR only. 29# 30 31SUBDIR+= i18n_module 32 33SUBDIR+= libarch \ 34 libbluetooth libbsdmalloc libbz2 \ 35 libcompat libcrypt \ 36 libintl libipsec libisns libkvm libm \ 37 libossaudio libpci libpmc libposix libprop libpthread \ 38 libpthread_dbg libpuffs libresolv librmt librpcsvc librt \ 39 librumpclient libtelnet libterminfo \ 40 libusbhid libutil libwrap liby libz 41 42.if (${MKSKEY} != "no") 43SUBDIR+= libskey 44.endif 45 46.if (${MKCRYPTO} != "no") 47SUBDIR+= ../crypto/external/bsd/netpgp/libmj 48.endif 49 50.if (${MKMDNS} != "no") 51SUBDIR+= ../external/apache2/mDNSResponder/lib 52.endif 53 54SUBDIR+= ../external/bsd/am-utils/lib 55 56.if (${MKATF} != "no") 57SUBDIR+= ../external/bsd/atf/lib 58.endif 59 60SUBDIR+= ../external/bsd/flex/lib 61SUBDIR+= ../external/bsd/libdwarf/lib 62SUBDIR+= ../external/bsd/libelf/lib 63SUBDIR+= ../external/bsd/libevent/lib 64SUBDIR+= ../external/bsd/liblzf/lib 65SUBDIR+= ../external/bsd/libpcap/lib 66 67SUBDIR+= ../external/mit/lua/lib 68 69SUBDIR+= ../external/public-domain/xz/lib 70 71SUBDIR+= ../gnu/lib/libmalloc 72 73.if (${MKGCC} != "no") 74. if ${HAVE_GCC} == 4 75SUBDIR+= ../gnu/lib/libobjc4 76. else 77SUBDIR+= ../external/gpl3/gcc/lib/libobjc 78. endif 79.endif 80 81# Should probably move GMP, MPFR and MPC builds into the GCC >= 4.5 82# specific build area, but we get better parallelism this way. 83.if defined(HAVE_GCC) && ${HAVE_GCC} >= 45 && !defined(MLIBDIR) 84SUBDIR+= ../external/lgpl3/gmp/lib/libgmp 85.endif 86 87# 88# Libraries that depend upon any listed previously 89# (and those that depend upon these [and ...]) 90# 91#==================== 1st library dependency barrier ==================== 92SUBDIR+= .WAIT 93 94SUBDIR+= libcurses # depends on libterminfo 95SUBDIR+= libdm # depends on libprop 96SUBDIR+= libedit # depends on libterminfo 97SUBDIR+= libquota # depends on libprop and librpcsvc 98SUBDIR+= librefuse # depends on libpuffs 99SUBDIR+= libperfuse # depends on libpuffs 100SUBDIR+= librumpuser # depends on libpthread 101 102.if (${MKNPF} != "no") 103SUBDIR+= libnpf # depends on libprop 104.endif 105 106.if (${MKCRYPTO} != "no") 107SUBDIR+= ../crypto/external/bsd/openssl/lib # depends on libcrypt 108.endif 109 110SUBDIR+= ../external/bsd/file/lib # depends on libz 111 112.if (${MKISCSI} != "no") 113SUBDIR+= ../external/bsd/iscsi/lib # depends on libpthread 114.endif 115 116SUBDIR+= ../external/bsd/libarchive/lib # depends on libxz 117 118.if (${MKLVM} != "no") 119SUBDIR+= ../external/gpl2/lvm2/lib # depends on libprop 120.endif 121 122.if (${MKBINUTILS} != "no") 123SUBDIR+= ../external/gpl3/binutils/lib # libbfd depends on libz 124.endif 125 126.if (${MKGCC} != "no" && ${MKCXX} != "no") 127. if ${HAVE_GCC} == 4 128SUBDIR+= ../gnu/lib/libstdc++-v3_4 # depends on libm 129SUBDIR+= ../gnu/lib/libsupc++4 130. else 131SUBDIR+= ../external/gpl3/gcc/lib/libstdc++-v3 132SUBDIR+= ../external/gpl3/gcc/lib/libsupc++ 133. endif 134.endif 135 136.if defined(HAVE_GCC) && ${HAVE_GCC} >= 45 && !defined(MLIBDIR) 137SUBDIR+= ../external/lgpl3/mpfr/lib/libmpfr 138.endif 139 140#==================== 2nd library dependency barrier ==================== 141SUBDIR+= .WAIT 142 143SUBDIR+= libform # depends on libcurses 144 145.if (${MKKERBEROS} != "no") 146SUBDIR+= ../crypto/external/bsd/heimdal/lib # depends on libcrypto 147 # libedit, libterminfo, 148.endif 149 150SUBDIR+= libmenu # depends on libcurses 151SUBDIR+= libradius # depends on libcrypto if (${MKCRYPTO} != "no") 152SUBDIR+= librump # depends on librumpuser 153 154.if (${MKCRYPTO} != "no") 155SUBDIR+= ../crypto/external/bsd/openssh/lib # depends on libcrypto, libz 156SUBDIR+= ../crypto/external/bsd/netpgp/lib # depends on libcrypto, ... 157.endif 158 159SUBDIR+= ../external/bsd/bind/lib # depends on libcrypto 160SUBDIR+= ../external/bsd/fetch/lib # depends on libssl 161 162.if (${MKLDAP} != "no") 163SUBDIR+= ../external/bsd/openldap/lib # depends on libcrypto, ... 164.endif 165 166SUBDIR+= librumphijack 167 168.if defined(HAVE_GCC) && ${HAVE_GCC} >= 45 && !defined(MLIBDIR) 169SUBDIR+= ../external/lgpl2/mpc/lib/libmpc 170.endif 171 172#==================== 3rd library dependency barrier ==================== 173SUBDIR+= .WAIT 174 175SUBDIR+= librumpdev # depends on librump 176SUBDIR+= librumpnet # depends on librump 177SUBDIR+= librumpvfs # depends on librump 178 179#==================== 4th library dependency barrier ==================== 180SUBDIR+= .WAIT 181 182SUBDIR+= libukfs # depends on librumpvfs, librump 183 184#==================== 5th library dependency barrier ==================== 185SUBDIR+= .WAIT 186 187SUBDIR+= libp2k # depends on libukfs, librumpvfs, libpuffs 188 189.if (${MKPAM} != "no") 190SUBDIR+= libpam # depends on libkafs, libkrb5, ... 191.endif 192 193#==================== 6th library dependency barrier ==================== 194SUBDIR+= .WAIT 195 196.if (${MKCRYPTO} != "no") 197SUBDIR+= ../crypto/external/bsd/libsaslc # depends on gssapi 198.endif 199 200.include <bsd.subdir.mk> 201