Home | History | Annotate | Line # | Download | only in lib
Makefile revision 1.221
      1 #	$NetBSD: Makefile,v 1.221 2015/04/17 22:17:23 mrg Exp $
      2 #	from: @(#)Makefile	5.25.1.1 (Berkeley) 5/7/91
      3 
      4 .include <bsd.own.mk>
      5 
      6 SUBDIR=		csu .WAIT
      7 
      8 .if (${MKGCC} != "no")
      9 SUBDIR+=	../external/gpl3/${EXTERNAL_GCC_SUBDIR}/lib/libgcc .WAIT
     10 .endif
     11 
     12 SUBDIR+=	libc
     13 SUBDIR+=	.WAIT
     14 
     15 #
     16 # The SUBDIRs above are included here for completeness but should be built
     17 # and installed prior to make(dependall) in this file, as libraries listed
     18 # below will depend on versions from DESTDIR only.
     19 #
     20 
     21 SUBDIR+=	i18n_module
     22 
     23 SUBDIR+=	libarch \
     24 		libbluetooth libbsdmalloc libbz2 \
     25 		libcompat libcrypt \
     26 		libintl libipsec libkvm libm \
     27 		libossaudio libpci libpmc libposix libprop libpthread \
     28 		libpthread_dbg libpuffs libresolv librmt librpcsvc librt \
     29 		libtelnet libterminfo \
     30 		libusbhid libutil libwrap liby libz
     31 
     32 .if !defined(BSD_MK_COMPAT_FILE)
     33 SUBDIR+=	libkern
     34 .endif
     35 
     36 .if (${MACHINE_CPU} == "arm")
     37 LIBC_MACHINE_ARCH?=${MACHINE_ARCH}
     38 .if empty(LIBC_MACHINE_ARCH:M*hf*)
     39 SUBDIR+=	libc_vfp
     40 .endif
     41 .endif
     42 .if (${MKRUMP} != "no")
     43 SUBDIR+=	librumpclient
     44 .endif
     45 .if (${MKSKEY} != "no")
     46 SUBDIR+=	libskey
     47 .endif
     48 
     49 .if (${MKMDNS} != "no")
     50 SUBDIR+=	../external/apache2/mDNSResponder/lib
     51 .endif
     52 
     53 SUBDIR+=	../external/bsd/am-utils/lib
     54 SUBDIR+=	../external/bsd/blacklist/lib
     55 
     56 SUBDIR+=	../external/bsd/flex/lib
     57 SUBDIR+=	../external/bsd/tre/lib
     58 SUBDIR+=	../external/bsd/elftoolchain/lib/libelf
     59 SUBDIR+=	../external/bsd/liblzf/lib
     60 SUBDIR+=	../external/bsd/libpcap/lib
     61 
     62 .if ${MKSLJIT} != "no"
     63 SUBDIR+=	../external/bsd/sljit/lib
     64 SUBDIR+=	libbpfjit
     65 .endif
     66 
     67 SUBDIR+=	../external/mit/expat/lib
     68 
     69 SUBDIR+=	../external/public-domain/sqlite/lib
     70 
     71 SUBDIR+=	../gnu/lib/libmalloc
     72 
     73 .if (${MKGCC} != "no")
     74 SUBDIR+=	../external/gpl3/${EXTERNAL_GCC_SUBDIR}/lib/libobjc
     75 SUBDIR+=	../external/gpl3/${EXTERNAL_GCC_SUBDIR}/lib/libgomp
     76 # Should probably move GMP, MPFR and MPC builds into the GCC >= 4.5
     77 # specific build area, but we get better parallelism this way.
     78 # We don't build compat versions of these.
     79 . if !defined(MLIBDIR)
     80 SUBDIR+=	../external/lgpl3/gmp/lib/libgmp
     81 SUBDIR+=	../external/lgpl3/mpfr/lib/libmpfr
     82 SUBDIR+=	../external/lgpl3/mpc/lib/libmpc
     83 . endif
     84 .endif
     85 
     86 #
     87 # Libraries that depend upon any listed previously
     88 # (and those that depend upon these [and ...])
     89 #
     90 #==================== 1st library dependency barrier ====================
     91 SUBDIR+=	.WAIT
     92 
     93 SUBDIR+=	../external/public-domain/xz/lib	# depends on libpthread
     94 
     95 .if (${MKCRYPTO} != "no")
     96 SUBDIR+=	../crypto/external/bsd/netpgp/libmj
     97 SUBDIR+=	../crypto/external/bsd/netpgp/lib/verify # depends on libz
     98 .endif
     99 
    100 SUBDIR+=	../external/bsd/elftoolchain/lib/libdwarf # depends on libelf
    101 SUBDIR+=	../external/mit/lua/lib # depends on libm
    102 SUBDIR+=	libcurses	# depends on libterminfo
    103 SUBDIR+=	libdm		# depends on libprop
    104 SUBDIR+=	libedit		# depends on libterminfo
    105 SUBDIR+=	libexecinfo 	# depends on libelf
    106 SUBDIR+=	libppath	# depends on libprop
    107 SUBDIR+=	libperfuse	# depends on libpuffs
    108 SUBDIR+=	libquota	# depends on libprop and librpcsvc
    109 SUBDIR+=	librefuse	# depends on libpuffs
    110 SUBDIR+=	libisns 	# depends on libpthread
    111 .if (${MKRUMP} != "no")
    112 SUBDIR+=	librumpuser	# depends on libpthread
    113 SUBDIR+=	librumphijack	# depends on librumpclient and libpthread
    114 .endif
    115 
    116 .if (${MKNPF} != "no")
    117 SUBDIR+=	libnpf		# depends on libprop
    118 .endif
    119 
    120 .if (${MKCRYPTO} != "no")
    121 SUBDIR+=	../crypto/external/bsd/openssl/lib # depends on libcrypt
    122 .endif
    123 
    124 SUBDIR+=	../external/bsd/file/lib	# depends on libz
    125 
    126 .if (${MKISCSI} != "no")
    127 SUBDIR+=	../external/bsd/iscsi/lib	# depends on libpthread
    128 .endif
    129 
    130 .if (${MKLVM} != "no")
    131 SUBDIR+=	../external/gpl2/lvm2/lib	# depends on libprop
    132 .endif
    133 
    134 .if (${MKBINUTILS} != "no")
    135 SUBDIR+=	../external/gpl3/binutils/lib	# libbfd depends on libz
    136 .endif
    137 
    138 .if (${MKLIBCXX} != "no")
    139 SUBDIR+=	../external/bsd/libc++
    140 .endif
    141 
    142 .if (${MKGCC} != "no" && ${MKCXX} != "no" && ${MKLIBSTDCXX} != "no")
    143 SUBDIR+=	../external/gpl3/${EXTERNAL_GCC_SUBDIR}/lib/libstdc++-v3
    144 SUBDIR+=	../external/gpl3/${EXTERNAL_GCC_SUBDIR}/lib/libsupc++
    145 .endif
    146 SANITIZER_DIR=../external/gpl3/${EXTERNAL_GCC_SUBDIR}/lib/libasan
    147 .if exists(${SANITIZER_DIR})
    148 SUBDIR+=	${SANITIZER_DIR}
    149 .endif
    150 
    151 #==================== 2nd library dependency barrier ====================
    152 SUBDIR+=	.WAIT
    153 
    154 SUBDIR+=	../external/bsd/libarchive/lib	# depends on libxz
    155 
    156 .if (${MKNPF} != "no")
    157 SUBDIR+=	npf		# depends on libnpf
    158 .endif
    159 
    160 .if (${MKATF} != "no")
    161 SUBDIR+=	../external/bsd/atf/lib		# depends on libstdc++
    162 .endif
    163 
    164 .if (${MKKYUA} != "no")
    165 SUBDIR+=	../external/bsd/lutok/lib	# depends on lua and libstdc++
    166 .endif
    167 
    168 SUBDIR+=	libform		# depends on libcurses
    169 SUBDIR+=	libmenu		# depends on libcurses
    170 SUBDIR+=	libradius	# depends on libcrypto if (${MKCRYPTO} != "no")
    171 .if (${MKRUMP} != "no")
    172 SUBDIR+=	librump		# depends on librumpuser
    173 .endif
    174 
    175 .if (${MKKERBEROS} != "no")
    176 SUBDIR+=	../crypto/external/bsd/heimdal/lib	# depends on libcrypto
    177 							# libedit, libterminfo,
    178 .endif
    179 
    180 .if (${MKCRYPTO} != "no")
    181 SUBDIR+=	../crypto/external/bsd/openssh/lib # depends on libcrypto, libz
    182 SUBDIR+=	../crypto/external/bsd/netpgp/lib  # depends on libcrypto, ...
    183 .endif
    184 
    185 SUBDIR+=	../external/bsd/libevent/lib	# depends on libcrypto
    186 SUBDIR+=	../external/bsd/fetch/lib	# depends on libssl
    187 
    188 .if (${MKLDAP} != "no")
    189 SUBDIR+=	../external/bsd/openldap/lib	# depends on libcrypto, ...
    190 .endif
    191 
    192 #==================== 3rd library dependency barrier ====================
    193 SUBDIR+=	.WAIT
    194 
    195 SUBDIR+=	../external/bsd/bind/lib	# depends on heimdal, libcrypto
    196 
    197 .if (${MKRUMP} != "no")
    198 SUBDIR+=	librumpdev	# depends on librump
    199 SUBDIR+=	librumpnet	# depends on librump
    200 SUBDIR+=	librumpvfs	# depends on librump
    201 .endif
    202 
    203 .if (${MKPAM} != "no")
    204 SUBDIR+=	libpam		# depends on heimdal
    205 .endif
    206 
    207 .if (${MKCRYPTO} != "no")
    208 SUBDIR+=	../crypto/external/bsd/libsaslc	# depends on heimdal, openssl
    209 .endif
    210 
    211 SUBDIR+=	../external/bsd/mdocml/lib
    212 
    213 .if (${MKRUMP} != "no")
    214 #==================== 4th library dependency barrier ====================
    215 SUBDIR+=	.WAIT
    216 
    217 SUBDIR+=	libukfs		# depends on librumpvfs, librump
    218 
    219 .if (${MKTPM} != "no")
    220 SUBDIR+=	../crypto/external/cpl/trousers/lib
    221 .endif
    222 
    223 #==================== 5th library dependency barrier ====================
    224 SUBDIR+=	.WAIT
    225 
    226 SUBDIR+=	libp2k		# depends on libukfs, librumpvfs, libpuffs
    227 
    228 .if (${MKTPM} != "no")
    229 SUBDIR+=	../crypto/external/cpl/tpm-tools/lib	# depends on trousers
    230 .endif
    231 
    232 .if !defined(BSD_MK_COMPAT_FILE)
    233 SUBDIR+=	../sys/rump/dev/lib
    234 SUBDIR+=	../sys/rump/fs/lib
    235 SUBDIR+=	../sys/rump/kern/lib
    236 SUBDIR+=	../sys/rump/net/lib
    237 .endif
    238 .endif
    239 
    240 # Lua bindings come last, they might depend on anything
    241 SUBDIR+=	lua
    242 
    243 # Needed by rump and rescue which are outside the smbfs tree
    244 SUBDIR+=	../external/bsd/smbfs/lib
    245 
    246 .include <bsd.buildinstall.mk>
    247 .include <bsd.subdir.mk>
    248