Home | History | Annotate | Line # | Download | only in lib
Makefile revision 1.213
      1 #	$NetBSD: Makefile,v 1.213 2014/04/22 13:20:58 joerg 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 . if ${HAVE_GCC} == 4
     10 SUBDIR+=	../gnu/lib/libgcc4 .WAIT
     11 . else
     12 SUBDIR+=	../external/gpl3/${EXTERNAL_GCC_SUBDIR}/lib/libgcc .WAIT
     13 . endif
     14 .endif
     15 
     16 SUBDIR+=	libc
     17 SUBDIR+=	.WAIT
     18 
     19 #
     20 # The SUBDIRs above are included here for completeness but should be built
     21 # and installed prior to make(dependall) in this file, as libraries listed
     22 # below will depend on versions from DESTDIR only.
     23 #
     24 
     25 SUBDIR+=	i18n_module
     26 
     27 SUBDIR+=	libarch \
     28 		libbluetooth libbsdmalloc libbz2 \
     29 		libcompat libcrypt \
     30 		libintl libipsec libkvm libm \
     31 		libossaudio libpci libpmc libposix libprop libpthread \
     32 		libpthread_dbg libpuffs libresolv librmt librpcsvc librt \
     33 		libtelnet libterminfo \
     34 		libusbhid libutil libwrap liby libz
     35 
     36 .if !defined(BSD_MK_COMPAT_FILE)
     37 SUBDIR+=	libkern
     38 .endif
     39 
     40 .if (${MACHINE_CPU} == "arm")
     41 LIBC_MACHINE_ARCH?=${MACHINE_ARCH}
     42 .if empty(LIBC_MACHINE_ARCH:M*hf*)
     43 SUBDIR+=	libc_vfp
     44 .endif
     45 .endif
     46 .if (${MKRUMP} != "no")
     47 SUBDIR+=	librumpclient
     48 .endif
     49 .if (${MKSKEY} != "no")
     50 SUBDIR+=	libskey
     51 .endif
     52 
     53 .if (${MKMDNS} != "no")
     54 SUBDIR+=	../external/apache2/mDNSResponder/lib
     55 .endif
     56 
     57 SUBDIR+=	../external/bsd/am-utils/lib
     58 
     59 SUBDIR+=	../external/bsd/flex/lib
     60 SUBDIR+=	../external/bsd/tre/lib
     61 SUBDIR+=	../external/bsd/elftoolchain/lib/libelf
     62 SUBDIR+=	../external/bsd/liblzf/lib
     63 SUBDIR+=	../external/bsd/libpcap/lib
     64 
     65 SUBDIR+=	../external/mit/expat/lib
     66 
     67 SUBDIR+=	../external/public-domain/sqlite/lib
     68 SUBDIR+=	../external/public-domain/xz/lib
     69 
     70 SUBDIR+=	../gnu/lib/libmalloc
     71 
     72 .if (${MKGCC} != "no")
     73 . if ${HAVE_GCC} == 4
     74 SUBDIR+=	../gnu/lib/libobjc4
     75 . else
     76 SUBDIR+=	../external/gpl3/${EXTERNAL_GCC_SUBDIR}/lib/libobjc
     77 SUBDIR+=	../external/gpl3/${EXTERNAL_GCC_SUBDIR}/lib/libgomp
     78 . endif
     79 . if ${HAVE_GCC} >= 45 && !defined(MLIBDIR)
     80 # Should probably move GMP, MPFR and MPC builds into the GCC >= 4.5
     81 # specific build area, but we get better parallelism this way.
     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 .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 SUBDIR+=	../external/bsd/libarchive/lib	# depends on libxz
    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 . if ${HAVE_GCC} == 4
    146 SUBDIR+=	../gnu/lib/libstdc++-v3_4	# depends on libm
    147 SUBDIR+=	../gnu/lib/libsupc++4
    148 . else
    149 SUBDIR+=	../external/gpl3/${EXTERNAL_GCC_SUBDIR}/lib/libstdc++-v3
    150 SUBDIR+=	../external/gpl3/${EXTERNAL_GCC_SUBDIR}/lib/libsupc++
    151 . endif
    152 .endif
    153 
    154 #==================== 2nd library dependency barrier ====================
    155 SUBDIR+=	.WAIT
    156 
    157 .if (${MKNPF} != "no")
    158 SUBDIR+=	npf		# depends on libnpf
    159 .endif
    160 
    161 .if (${MKATF} != "no")
    162 SUBDIR+=	../external/bsd/atf/lib		# depends on libstdc++
    163 .endif
    164 
    165 .if (${MKKYUA} != "no")
    166 SUBDIR+=	../external/bsd/lutok/lib	# depends on lua and libstdc++
    167 .endif
    168 
    169 SUBDIR+=	libform		# depends on libcurses
    170 SUBDIR+=	libmenu		# depends on libcurses
    171 SUBDIR+=	libradius	# depends on libcrypto if (${MKCRYPTO} != "no")
    172 .if (${MKRUMP} != "no")
    173 SUBDIR+=	librump		# depends on librumpuser
    174 .endif
    175 
    176 .if (${MKKERBEROS} != "no")
    177 SUBDIR+=	../crypto/external/bsd/heimdal/lib	# depends on libcrypto
    178 							# libedit, libterminfo,
    179 .endif
    180 
    181 .if (${MKCRYPTO} != "no")
    182 SUBDIR+=	../crypto/external/bsd/openssh/lib # depends on libcrypto, libz
    183 SUBDIR+=	../crypto/external/bsd/netpgp/lib  # depends on libcrypto, ...
    184 .endif
    185 
    186 SUBDIR+=	../external/bsd/libevent/lib	# depends on libcrypto
    187 SUBDIR+=	../external/bsd/fetch/lib	# depends on libssl
    188 
    189 .if (${MKLDAP} != "no")
    190 SUBDIR+=	../external/bsd/openldap/lib	# depends on libcrypto, ...
    191 .endif
    192 
    193 #==================== 3rd library dependency barrier ====================
    194 SUBDIR+=	.WAIT
    195 
    196 SUBDIR+=	../external/bsd/bind/lib	# depends on heimdal, libcrypto
    197 
    198 .if (${MKRUMP} != "no")
    199 SUBDIR+=	librumpdev	# depends on librump
    200 SUBDIR+=	librumpnet	# depends on librump
    201 SUBDIR+=	librumpvfs	# depends on librump
    202 .endif
    203 
    204 .if (${MKPAM} != "no")
    205 SUBDIR+=	libpam		# depends on heimdal
    206 .endif
    207 
    208 .if (${MKCRYPTO} != "no")
    209 SUBDIR+=	../crypto/external/bsd/libsaslc	# depends on heimdal, openssl
    210 .endif
    211 
    212 .if ${MKSLJIT} != "no"
    213 SUBDIR+=	../external/bsd/sljit/lib
    214 SUBDIR+=	.WAIT
    215 SUBDIR+=	libbpfjit
    216 .endif
    217 
    218 SUBDIR+=	../external/bsd/mdocml/lib
    219 
    220 .if (${MKRUMP} != "no")
    221 #==================== 4th library dependency barrier ====================
    222 SUBDIR+=	.WAIT
    223 
    224 SUBDIR+=	libukfs		# depends on librumpvfs, librump
    225 
    226 .if (${MKTPM} != "no")
    227 SUBDIR+=	../crypto/external/cpl/trousers/lib
    228 .endif
    229 
    230 #==================== 5th library dependency barrier ====================
    231 SUBDIR+=	.WAIT
    232 
    233 SUBDIR+=	libp2k		# depends on libukfs, librumpvfs, libpuffs
    234 
    235 .if (${MKTPM} != "no")
    236 SUBDIR+=	../crypto/external/cpl/tpm-tools/lib	# depends on trousers
    237 .endif
    238 
    239 .if !defined(BSD_MK_COMPAT_FILE)
    240 SUBDIR+=	../sys/rump/dev/lib
    241 SUBDIR+=	../sys/rump/fs/lib
    242 SUBDIR+=	../sys/rump/kern/lib
    243 SUBDIR+=	../sys/rump/net/lib
    244 .endif
    245 .endif
    246 
    247 # Lua bindings come last, they might depend on anything
    248 SUBDIR+=	lua
    249 
    250 # Needed by rump and rescue which are outside the smbfs tree
    251 SUBDIR+=	../external/bsd/smbfs/lib
    252 
    253 .include <bsd.buildinstall.mk>
    254 .include <bsd.subdir.mk>
    255