Makefile revision 1.196
1# $NetBSD: Makefile,v 1.196 2012/11/20 16:33:06 agc Exp $ 2# from: @(#)Makefile 5.25.1.1 (Berkeley) 5/7/91 3 4.include <bsd.own.mk> 5 6SUBDIR= csu .WAIT 7 8.if (${MKGCC} != "no") 9. if ${HAVE_GCC} == 4 10. if (${USE_COMPILERCRTSTUFF} == "yes") 11SUBDIR+= ../gnu/lib/crtstuff4 .WAIT 12. endif 13SUBDIR+= ../gnu/lib/libgcc4 .WAIT 14. else 15. if (${USE_COMPILERCRTSTUFF} == "yes") 16SUBDIR+= ../external/gpl3/gcc/lib/crtstuff .WAIT 17. endif 18SUBDIR+= ../external/gpl3/gcc/lib/libgcc .WAIT 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 libtelnet libterminfo \ 40 libusbhid libutil libwrap liby libz 41 42.if (${MKRUMP} != "no") 43SUBDIR+= librumpclient 44.endif 45.if (${MKSKEY} != "no") 46SUBDIR+= libskey 47.endif 48 49.if (${MKCRYPTO} != "no") 50SUBDIR+= ../crypto/external/bsd/netpgp/libmj 51SUBDIR+= ../crypto/external/bsd/netpgp/lib/verify 52.endif 53 54.if (${MKMDNS} != "no") 55SUBDIR+= ../external/apache2/mDNSResponder/lib 56.endif 57 58SUBDIR+= ../external/bsd/am-utils/lib 59 60SUBDIR+= ../external/bsd/flex/lib 61SUBDIR+= ../external/bsd/tre/lib 62SUBDIR+= ../external/bsd/libdwarf/lib 63SUBDIR+= ../external/bsd/libelf/lib 64SUBDIR+= ../external/bsd/libevent/lib 65SUBDIR+= ../external/bsd/liblzf/lib 66SUBDIR+= ../external/bsd/libpcap/lib 67 68SUBDIR+= ../external/mit/lua/lib 69SUBDIR+= ../external/mit/expat/lib 70 71SUBDIR+= ../external/public-domain/sqlite/lib 72SUBDIR+= ../external/public-domain/xz/lib 73 74SUBDIR+= ../gnu/lib/libmalloc 75 76.if (${MKGCC} != "no") 77. if ${HAVE_GCC} == 4 78SUBDIR+= ../gnu/lib/libobjc4 79. else 80SUBDIR+= ../external/gpl3/gcc/lib/libobjc 81SUBDIR+= ../external/gpl3/gcc/lib/libgomp 82. endif 83. if ${HAVE_GCC} >= 45 && !defined(MLIBDIR) 84# Should probably move GMP, MPFR and MPC builds into the GCC >= 4.5 85# specific build area, but we get better parallelism this way. 86SUBDIR+= ../external/lgpl3/gmp/lib/libgmp 87SUBDIR+= ../external/lgpl3/mpfr/lib/libmpfr 88SUBDIR+= ../external/lgpl2/mpc/lib/libmpc 89. endif 90.endif 91 92# 93# Libraries that depend upon any listed previously 94# (and those that depend upon these [and ...]) 95# 96#==================== 1st library dependency barrier ==================== 97SUBDIR+= .WAIT 98 99SUBDIR+= libcurses # depends on libterminfo 100SUBDIR+= libdm # depends on libprop 101SUBDIR+= libedit # depends on libterminfo 102SUBDIR+= libexecinfo # depends on libelf 103SUBDIR+= libppath # depends on libprop 104SUBDIR+= libperfuse # depends on libpuffs 105SUBDIR+= libquota # depends on libprop and librpcsvc 106SUBDIR+= librefuse # depends on libpuffs 107.if (${MKRUMP} != "no") 108SUBDIR+= librumpuser # depends on libpthread 109SUBDIR+= librumphijack # depends on librumpclient and libpthread 110.endif 111 112.if (${MKNPF} != "no") 113SUBDIR+= libnpf # depends on libprop 114SUBDIR+= npf 115.endif 116 117.if (${MKCRYPTO} != "no") 118SUBDIR+= ../crypto/external/bsd/openssl/lib # depends on libcrypt 119.endif 120 121SUBDIR+= ../external/bsd/file/lib # depends on libz 122 123.if (${MKISCSI} != "no") 124SUBDIR+= ../external/bsd/iscsi/lib # depends on libpthread 125.endif 126 127SUBDIR+= ../external/bsd/libarchive/lib # depends on libxz 128 129.if (${MKLVM} != "no") 130SUBDIR+= ../external/gpl2/lvm2/lib # depends on libprop 131.endif 132 133.if (${MKBINUTILS} != "no") 134SUBDIR+= ../external/gpl3/binutils/lib # libbfd depends on libz 135.endif 136 137.if (${MKGCC} != "no" && ${MKCXX} != "no") 138. if ${HAVE_GCC} == 4 139SUBDIR+= ../gnu/lib/libstdc++-v3_4 # depends on libm 140SUBDIR+= ../gnu/lib/libsupc++4 141. else 142SUBDIR+= ../external/gpl3/gcc/lib/libstdc++-v3 143SUBDIR+= ../external/gpl3/gcc/lib/libsupc++ 144. endif 145.endif 146 147#==================== 2nd library dependency barrier ==================== 148SUBDIR+= .WAIT 149 150.if (${MKATF} != "no") 151SUBDIR+= ../external/bsd/atf/lib # depends on libstdc++ 152.endif 153 154SUBDIR+= libform # depends on libcurses 155SUBDIR+= libmenu # depends on libcurses 156SUBDIR+= libradius # depends on libcrypto if (${MKCRYPTO} != "no") 157.if (${MKRUMP} != "no") 158SUBDIR+= librump # depends on librumpuser 159.endif 160 161.if (${MKKERBEROS} != "no") 162SUBDIR+= ../crypto/external/bsd/heimdal/lib # depends on libcrypto 163 # libedit, libterminfo, 164.endif 165 166.if (${MKCRYPTO} != "no") 167SUBDIR+= ../crypto/external/bsd/openssh/lib # depends on libcrypto, libz 168SUBDIR+= ../crypto/external/bsd/netpgp/lib # depends on libcrypto, ... 169.endif 170 171SUBDIR+= ../external/bsd/bind/lib # depends on libcrypto 172SUBDIR+= ../external/bsd/fetch/lib # depends on libssl 173 174.if (${MKLDAP} != "no") 175SUBDIR+= ../external/bsd/openldap/lib # depends on libcrypto, ... 176.endif 177 178#==================== 3rd library dependency barrier ==================== 179SUBDIR+= .WAIT 180 181.if (${MKRUMP} != "no") 182SUBDIR+= librumpdev # depends on librump 183SUBDIR+= librumpnet # depends on librump 184SUBDIR+= librumpvfs # depends on librump 185.endif 186 187.if (${MKPAM} != "no") 188SUBDIR+= libpam # depends on heimdal 189.endif 190 191.if (${MKCRYPTO} != "no") 192SUBDIR+= ../crypto/external/bsd/libsaslc # depends on heimdal, openssl 193.endif 194 195.if ${MKSLJIT} != "no" 196SUBDIR+= ../external/bsd/sljit/lib 197SUBDIR+= .WAIT 198SUBDIR+= libbpfjit 199.endif 200 201SUBDIR+= ../external/bsd/mdocml/lib 202 203.if (${MKRUMP} != "no") 204#==================== 4th library dependency barrier ==================== 205SUBDIR+= .WAIT 206 207SUBDIR+= libukfs # depends on librumpvfs, librump 208 209.if (${MKTPM} != "no") 210SUBDIR+= ../crypto/external/cpl/trousers/lib 211.endif 212 213#==================== 5th library dependency barrier ==================== 214SUBDIR+= .WAIT 215 216SUBDIR+= libp2k # depends on libukfs, librumpvfs, libpuffs 217 218.if (${MKTPM} != "no") 219SUBDIR+= ../crypto/external/cpl/tpm-tools/lib # depends on trousers 220.endif 221 222.if !defined(BSD_MK_COMPAT_FILE) 223SUBDIR+= ../sys/rump/dev/lib 224SUBDIR+= ../sys/rump/fs/lib 225SUBDIR+= ../sys/rump/kern/lib 226SUBDIR+= ../sys/rump/net/lib 227.endif 228.endif 229 230# Lua bindings come last, they might depend on anything 231SUBDIR+= lua 232 233.include <bsd.buildinstall.mk> 234.include <bsd.subdir.mk> 235