Home | History | Annotate | Line # | Download | only in lib
Makefile revision 1.223
      1 #	$NetBSD: Makefile,v 1.223 2015/06/22 00:06:38 matt 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 SUBDIR+=	../external/gpl3/${EXTERNAL_GCC_SUBDIR}/lib/libmudflap
     77 SUBDIR+=	../external/gpl3/${EXTERNAL_GCC_SUBDIR}/lib/libmudflapth
     78 # Should probably move GMP, MPFR and MPC builds into the GCC >= 4.5
     79 # specific build area, but we get better parallelism this way.
     80 # We don't build compat versions of these.
     81 . if !defined(MLIBDIR)
     82 SUBDIR+=	../external/lgpl3/gmp/lib/libgmp
     83 SUBDIR+=	../external/lgpl3/mpfr/lib/libmpfr
     84 SUBDIR+=	../external/lgpl3/mpc/lib/libmpc
     85 . endif
     86 .endif
     87 
     88 #
     89 # Libraries that depend upon any listed previously
     90 # (and those that depend upon these [and ...])
     91 #
     92 #==================== 1st library dependency barrier ====================
     93 SUBDIR+=	.WAIT
     94 
     95 SUBDIR+=	../external/public-domain/xz/lib	# depends on libpthread
     96 
     97 .if (${MKCRYPTO} != "no")
     98 SUBDIR+=	../crypto/external/bsd/netpgp/libmj
     99 SUBDIR+=	../crypto/external/bsd/netpgp/lib/verify # depends on libz
    100 .endif
    101 
    102 SUBDIR+=	../external/bsd/elftoolchain/lib/libdwarf # depends on libelf
    103 SUBDIR+=	../external/mit/lua/lib # depends on libm
    104 SUBDIR+=	libcurses	# depends on libterminfo
    105 SUBDIR+=	libdm		# depends on libprop
    106 SUBDIR+=	libedit		# depends on libterminfo
    107 SUBDIR+=	libexecinfo 	# depends on libelf
    108 SUBDIR+=	libppath	# depends on libprop
    109 SUBDIR+=	libperfuse	# depends on libpuffs
    110 SUBDIR+=	libquota	# depends on libprop and librpcsvc
    111 SUBDIR+=	librefuse	# depends on libpuffs
    112 SUBDIR+=	libisns 	# depends on libpthread
    113 .if (${MKRUMP} != "no")
    114 SUBDIR+=	librumpuser	# depends on libpthread
    115 SUBDIR+=	librumphijack	# depends on librumpclient and libpthread
    116 .endif
    117 
    118 .if (${MKNPF} != "no")
    119 SUBDIR+=	libnpf		# depends on libprop
    120 .endif
    121 
    122 .if (${MKCRYPTO} != "no")
    123 SUBDIR+=	../crypto/external/bsd/openssl/lib # depends on libcrypt
    124 .endif
    125 
    126 SUBDIR+=	../external/bsd/file/lib	# depends on libz
    127 
    128 .if (${MKISCSI} != "no")
    129 SUBDIR+=	../external/bsd/iscsi/lib	# depends on libpthread
    130 .endif
    131 
    132 .if (${MKLVM} != "no")
    133 SUBDIR+=	../external/gpl2/lvm2/lib	# depends on libprop
    134 .endif
    135 
    136 .if (${MKBINUTILS} != "no")
    137 SUBDIR+=	../external/gpl3/binutils/lib	# libbfd depends on libz
    138 .endif
    139 
    140 .if (${MKLIBCXX} != "no")
    141 SUBDIR+=	../external/bsd/libc++
    142 .endif
    143 
    144 .if (${MKGCC} != "no" && ${MKCXX} != "no" && ${MKLIBSTDCXX} != "no")
    145 SUBDIR+=	../external/gpl3/${EXTERNAL_GCC_SUBDIR}/lib/libstdc++-v3
    146 SUBDIR+=	../external/gpl3/${EXTERNAL_GCC_SUBDIR}/lib/libsupc++
    147 .endif
    148 
    149 #==================== 2nd library dependency barrier ====================
    150 SUBDIR+=	.WAIT
    151 
    152 SANITIZER_DIR=../external/gpl3/${EXTERNAL_GCC_SUBDIR}/lib/libasan
    153 .if exists(${SANITIZER_DIR})
    154 SUBDIR+=	${SANITIZER_DIR}
    155 .endif
    156 
    157 SUBDIR+=	../external/bsd/libarchive/lib	# depends on libxz
    158 
    159 .if (${MKNPF} != "no")
    160 SUBDIR+=	npf		# depends on libnpf
    161 .endif
    162 
    163 .if (${MKATF} != "no")
    164 SUBDIR+=	../external/bsd/atf/lib		# depends on libstdc++
    165 .endif
    166 
    167 .if (${MKKYUA} != "no")
    168 SUBDIR+=	../external/bsd/lutok/lib	# depends on lua and libstdc++
    169 .endif
    170 
    171 SUBDIR+=	libform		# depends on libcurses
    172 SUBDIR+=	libmenu		# depends on libcurses
    173 SUBDIR+=	libradius	# depends on libcrypto if (${MKCRYPTO} != "no")
    174 .if (${MKRUMP} != "no")
    175 SUBDIR+=	librump		# depends on librumpuser
    176 .endif
    177 
    178 .if (${MKKERBEROS} != "no")
    179 SUBDIR+=	../crypto/external/bsd/heimdal/lib	# depends on libcrypto
    180 							# libedit, libterminfo,
    181 .endif
    182 
    183 .if (${MKCRYPTO} != "no")
    184 SUBDIR+=	../crypto/external/bsd/openssh/lib # depends on libcrypto, libz
    185 SUBDIR+=	../crypto/external/bsd/netpgp/lib  # depends on libcrypto, ...
    186 .endif
    187 
    188 SUBDIR+=	../external/bsd/libevent/lib	# depends on libcrypto
    189 SUBDIR+=	../external/bsd/fetch/lib	# depends on libssl
    190 
    191 .if (${MKLDAP} != "no")
    192 SUBDIR+=	../external/bsd/openldap/lib	# depends on libcrypto, ...
    193 .endif
    194 
    195 #==================== 3rd library dependency barrier ====================
    196 SUBDIR+=	.WAIT
    197 
    198 SUBDIR+=	../external/bsd/bind/lib	# depends on heimdal, libcrypto
    199 
    200 .if (${MKRUMP} != "no")
    201 SUBDIR+=	librumpdev	# depends on librump
    202 SUBDIR+=	librumpnet	# depends on librump
    203 SUBDIR+=	librumpvfs	# depends on librump
    204 .endif
    205 
    206 .if (${MKPAM} != "no")
    207 SUBDIR+=	libpam		# depends on heimdal
    208 .endif
    209 
    210 .if (${MKCRYPTO} != "no")
    211 SUBDIR+=	../crypto/external/bsd/libsaslc	# depends on heimdal, openssl
    212 .endif
    213 
    214 SUBDIR+=	../external/bsd/mdocml/lib
    215 
    216 .if (${MKRUMP} != "no")
    217 #==================== 4th library dependency barrier ====================
    218 SUBDIR+=	.WAIT
    219 
    220 SUBDIR+=	libukfs		# depends on librumpvfs, librump
    221 
    222 .if (${MKTPM} != "no")
    223 SUBDIR+=	../crypto/external/cpl/trousers/lib
    224 .endif
    225 
    226 #==================== 5th library dependency barrier ====================
    227 SUBDIR+=	.WAIT
    228 
    229 SUBDIR+=	libp2k		# depends on libukfs, librumpvfs, libpuffs
    230 
    231 .if (${MKTPM} != "no")
    232 SUBDIR+=	../crypto/external/cpl/tpm-tools/lib	# depends on trousers
    233 .endif
    234 
    235 .if !defined(BSD_MK_COMPAT_FILE)
    236 SUBDIR+=	../sys/rump/dev/lib
    237 SUBDIR+=	../sys/rump/fs/lib
    238 SUBDIR+=	../sys/rump/kern/lib
    239 SUBDIR+=	../sys/rump/net/lib
    240 .endif
    241 .endif
    242 
    243 # Lua bindings come last, they might depend on anything
    244 SUBDIR+=	lua
    245 
    246 # Needed by rump and rescue which are outside the smbfs tree
    247 SUBDIR+=	../external/bsd/smbfs/lib
    248 
    249 .include <bsd.buildinstall.mk>
    250 .include <bsd.subdir.mk>
    251