Home | History | Annotate | Line # | Download | only in lib
Makefile revision 1.206
      1 #	$NetBSD: Makefile,v 1.206 2013/08/21 03:18:05 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 . 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 libisns 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 (${MKCRYPTO} != "no")
     60 SUBDIR+=	../crypto/external/bsd/netpgp/libmj
     61 SUBDIR+=	../crypto/external/bsd/netpgp/lib/verify
     62 .endif
     63 
     64 .if (${MKMDNS} != "no")
     65 SUBDIR+=	../external/apache2/mDNSResponder/lib
     66 .endif
     67 
     68 SUBDIR+=	../external/bsd/am-utils/lib
     69 
     70 SUBDIR+=	../external/bsd/flex/lib
     71 SUBDIR+=	../external/bsd/tre/lib
     72 SUBDIR+=	../external/bsd/libdwarf/lib
     73 SUBDIR+=	../external/bsd/libelf/lib
     74 SUBDIR+=	../external/bsd/liblzf/lib
     75 SUBDIR+=	../external/bsd/libpcap/lib
     76 
     77 SUBDIR+=	../external/mit/lua/lib
     78 SUBDIR+=	../external/mit/expat/lib
     79 
     80 SUBDIR+=	../external/public-domain/sqlite/lib
     81 SUBDIR+=	../external/public-domain/xz/lib
     82 
     83 SUBDIR+=	../gnu/lib/libmalloc
     84 
     85 .if (${MKGCC} != "no")
     86 . if ${HAVE_GCC} == 4
     87 SUBDIR+=	../gnu/lib/libobjc4
     88 . else
     89 SUBDIR+=	../external/gpl3/gcc/lib/libobjc
     90 SUBDIR+=	../external/gpl3/gcc/lib/libgomp
     91 . endif
     92 . if ${HAVE_GCC} >= 45 && !defined(MLIBDIR)
     93 # Should probably move GMP, MPFR and MPC builds into the GCC >= 4.5
     94 # specific build area, but we get better parallelism this way.
     95 SUBDIR+=	../external/lgpl3/gmp/lib/libgmp
     96 SUBDIR+=	../external/lgpl3/mpfr/lib/libmpfr
     97 SUBDIR+=	../external/lgpl2/mpc/lib/libmpc
     98 . endif
     99 .endif
    100 
    101 #
    102 # Libraries that depend upon any listed previously
    103 # (and those that depend upon these [and ...])
    104 #
    105 #==================== 1st library dependency barrier ====================
    106 SUBDIR+=	.WAIT
    107 
    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 .if (${MKRUMP} != "no")
    117 SUBDIR+=	librumpuser	# depends on libpthread
    118 SUBDIR+=	librumphijack	# depends on librumpclient and libpthread
    119 .endif
    120 
    121 .if (${MKNPF} != "no")
    122 SUBDIR+=	libnpf		# depends on libprop
    123 SUBDIR+=	npf
    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 (${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 .if ${MKSLJIT} != "no"
    215 SUBDIR+=	../external/bsd/sljit/lib
    216 SUBDIR+=	.WAIT
    217 SUBDIR+=	libbpfjit
    218 .endif
    219 
    220 SUBDIR+=	../external/bsd/mdocml/lib
    221 
    222 .if (${MKRUMP} != "no")
    223 #==================== 4th library dependency barrier ====================
    224 SUBDIR+=	.WAIT
    225 
    226 SUBDIR+=	libukfs		# depends on librumpvfs, librump
    227 
    228 .if (${MKTPM} != "no")
    229 SUBDIR+=	../crypto/external/cpl/trousers/lib
    230 .endif
    231 
    232 #==================== 5th library dependency barrier ====================
    233 SUBDIR+=	.WAIT
    234 
    235 SUBDIR+=	libp2k		# depends on libukfs, librumpvfs, libpuffs
    236 
    237 .if (${MKTPM} != "no")
    238 SUBDIR+=	../crypto/external/cpl/tpm-tools/lib	# depends on trousers
    239 .endif
    240 
    241 .if !defined(BSD_MK_COMPAT_FILE)
    242 SUBDIR+=	../sys/rump/dev/lib
    243 SUBDIR+=	../sys/rump/fs/lib
    244 SUBDIR+=	../sys/rump/kern/lib
    245 SUBDIR+=	../sys/rump/net/lib
    246 .endif
    247 .endif
    248 
    249 # Lua bindings come last, they might depend on anything
    250 SUBDIR+=	lua
    251 
    252 .include <bsd.buildinstall.mk>
    253 .include <bsd.subdir.mk>
    254