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