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