1# $NetBSD: Makefile,v 1.179 2011/10/13 22:08:20 joerg 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/sqlite/lib 70SUBDIR+= ../external/public-domain/xz/lib 71 72SUBDIR+= ../gnu/lib/libmalloc 73 74.if (${MKGCC} != "no") 75. if ${HAVE_GCC} == 4 76SUBDIR+= ../gnu/lib/libobjc4 77. else 78SUBDIR+= ../external/gpl3/gcc/lib/libobjc 79SUBDIR+= ../external/gpl3/gcc/lib/libgomp 80. endif 81. if ${HAVE_GCC} >= 45 && !defined(MLIBDIR) 82# Should probably move GMP, MPFR and MPC builds into the GCC >= 4.5 83# specific build area, but we get better parallelism this way. 84SUBDIR+= ../external/lgpl3/gmp/lib/libgmp 85SUBDIR+= ../external/lgpl3/mpfr/lib/libmpfr 86SUBDIR+= ../external/lgpl2/mpc/lib/libmpc 87. endif 88.endif 89 90# 91# Libraries that depend upon any listed previously 92# (and those that depend upon these [and ...]) 93# 94#==================== 1st library dependency barrier ==================== 95SUBDIR+= .WAIT 96 97SUBDIR+= libcurses # depends on libterminfo 98SUBDIR+= libdm # depends on libprop 99SUBDIR+= libedit # depends on libterminfo 100SUBDIR+= libppath # depends on libprop 101SUBDIR+= libperfuse # depends on libpuffs 102SUBDIR+= libquota # depends on libprop and librpcsvc 103SUBDIR+= librefuse # depends on libpuffs 104SUBDIR+= librumpuser # depends on libpthread 105SUBDIR+= librumphijack # depends on librumpclient and libpthread 106 107.if (${MKNPF} != "no") 108SUBDIR+= libnpf # depends on libprop 109.endif 110 111.if (${MKCRYPTO} != "no") 112SUBDIR+= ../crypto/external/bsd/openssl/lib # depends on libcrypt 113.endif 114 115SUBDIR+= ../external/bsd/file/lib # depends on libz 116 117.if (${MKISCSI} != "no") 118SUBDIR+= ../external/bsd/iscsi/lib # depends on libpthread 119.endif 120 121SUBDIR+= ../external/bsd/libarchive/lib # depends on libxz 122 123.if (${MKLVM} != "no") 124SUBDIR+= ../external/gpl2/lvm2/lib # depends on libprop 125.endif 126 127.if (${MKBINUTILS} != "no") 128SUBDIR+= ../external/gpl3/binutils/lib # libbfd depends on libz 129.endif 130 131.if (${MKGCC} != "no" && ${MKCXX} != "no") 132. if ${HAVE_GCC} == 4 133SUBDIR+= ../gnu/lib/libstdc++-v3_4 # depends on libm 134SUBDIR+= ../gnu/lib/libsupc++4 135. else 136SUBDIR+= ../external/gpl3/gcc/lib/libstdc++-v3 137SUBDIR+= ../external/gpl3/gcc/lib/libsupc++ 138. endif 139.endif 140 141#==================== 2nd library dependency barrier ==================== 142SUBDIR+= .WAIT 143 144SUBDIR+= libform # depends on libcurses 145SUBDIR+= libmenu # depends on libcurses 146SUBDIR+= libradius # depends on libcrypto if (${MKCRYPTO} != "no") 147SUBDIR+= librump # depends on librumpuser 148 149.if (${MKKERBEROS} != "no") 150SUBDIR+= ../crypto/external/bsd/heimdal/lib # depends on libcrypto 151 # libedit, libterminfo, 152.endif 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 166#==================== 3rd library dependency barrier ==================== 167SUBDIR+= .WAIT 168 169SUBDIR+= librumpdev # depends on librump 170SUBDIR+= librumpnet # depends on librump 171SUBDIR+= librumpvfs # depends on librump 172 173.if (${MKPAM} != "no") 174SUBDIR+= libpam # depends on heimdal 175.endif 176 177.if (${MKCRYPTO} != "no") 178SUBDIR+= ../crypto/external/bsd/libsaslc # depends on heimdal, openssl 179.endif 180 181#==================== 4th library dependency barrier ==================== 182SUBDIR+= .WAIT 183 184SUBDIR+= libukfs # depends on librumpvfs, librump 185 186#==================== 5th library dependency barrier ==================== 187SUBDIR+= .WAIT 188 189SUBDIR+= libp2k # depends on libukfs, librumpvfs, libpuffs 190 191# Lua bindings come last, they might depend on anything 192SUBDIR+= lua 193 194.include <bsd.subdir.mk> 195