Home | History | Annotate | Line # | Download | only in lib
Makefile revision 1.197
      1 #	$NetBSD: Makefile,v 1.197 2013/01/28 18:57:09 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 (${MACHINE_ARCH:C/e[bl]$//} == "arm")
     43 SUBDIR+=	libc_vfp
     44 .endif
     45 .if (${MKRUMP} != "no")
     46 SUBDIR+=	librumpclient
     47 .endif
     48 .if (${MKSKEY} != "no")
     49 SUBDIR+=	libskey
     50 .endif
     51 
     52 .if (${MKCRYPTO} != "no")
     53 SUBDIR+=	../crypto/external/bsd/netpgp/libmj
     54 SUBDIR+=	../crypto/external/bsd/netpgp/lib/verify
     55 .endif
     56 
     57 .if (${MKMDNS} != "no")
     58 SUBDIR+=	../external/apache2/mDNSResponder/lib
     59 .endif
     60 
     61 SUBDIR+=	../external/bsd/am-utils/lib
     62 
     63 SUBDIR+=	../external/bsd/flex/lib
     64 SUBDIR+=	../external/bsd/tre/lib
     65 SUBDIR+=	../external/bsd/libdwarf/lib
     66 SUBDIR+=	../external/bsd/libelf/lib
     67 SUBDIR+=	../external/bsd/libevent/lib
     68 SUBDIR+=	../external/bsd/liblzf/lib
     69 SUBDIR+=	../external/bsd/libpcap/lib
     70 
     71 SUBDIR+=	../external/mit/lua/lib
     72 SUBDIR+=	../external/mit/expat/lib
     73 
     74 SUBDIR+=	../external/public-domain/sqlite/lib
     75 SUBDIR+=	../external/public-domain/xz/lib
     76 
     77 SUBDIR+=	../gnu/lib/libmalloc
     78 
     79 .if (${MKGCC} != "no")
     80 . if ${HAVE_GCC} == 4
     81 SUBDIR+=	../gnu/lib/libobjc4
     82 . else
     83 SUBDIR+=	../external/gpl3/gcc/lib/libobjc
     84 SUBDIR+=	../external/gpl3/gcc/lib/libgomp
     85 . endif
     86 . if ${HAVE_GCC} >= 45 && !defined(MLIBDIR)
     87 # Should probably move GMP, MPFR and MPC builds into the GCC >= 4.5
     88 # specific build area, but we get better parallelism this way.
     89 SUBDIR+=	../external/lgpl3/gmp/lib/libgmp
     90 SUBDIR+=	../external/lgpl3/mpfr/lib/libmpfr
     91 SUBDIR+=	../external/lgpl2/mpc/lib/libmpc
     92 . endif
     93 .endif
     94 
     95 #
     96 # Libraries that depend upon any listed previously
     97 # (and those that depend upon these [and ...])
     98 #
     99 #==================== 1st library dependency barrier ====================
    100 SUBDIR+=	.WAIT
    101 
    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 .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 SUBDIR+=	npf
    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 (${MKGCC} != "no" && ${MKCXX} != "no")
    141 . if ${HAVE_GCC} == 4
    142 SUBDIR+=	../gnu/lib/libstdc++-v3_4	# depends on libm
    143 SUBDIR+=	../gnu/lib/libsupc++4
    144 . else
    145 SUBDIR+=	../external/gpl3/gcc/lib/libstdc++-v3
    146 SUBDIR+=	../external/gpl3/gcc/lib/libsupc++
    147 . endif
    148 .endif
    149 
    150 #==================== 2nd library dependency barrier ====================
    151 SUBDIR+=	.WAIT
    152 
    153 .if (${MKATF} != "no")
    154 SUBDIR+=	../external/bsd/atf/lib		# depends on libstdc++
    155 .endif
    156 
    157 SUBDIR+=	libform		# depends on libcurses
    158 SUBDIR+=	libmenu		# depends on libcurses
    159 SUBDIR+=	libradius	# depends on libcrypto if (${MKCRYPTO} != "no")
    160 .if (${MKRUMP} != "no")
    161 SUBDIR+=	librump		# depends on librumpuser
    162 .endif
    163 
    164 .if (${MKKERBEROS} != "no")
    165 SUBDIR+=	../crypto/external/bsd/heimdal/lib	# depends on libcrypto
    166 							# libedit, libterminfo,
    167 .endif
    168 
    169 .if (${MKCRYPTO} != "no")
    170 SUBDIR+=	../crypto/external/bsd/openssh/lib # depends on libcrypto, libz
    171 SUBDIR+=	../crypto/external/bsd/netpgp/lib  # depends on libcrypto, ...
    172 .endif
    173 
    174 SUBDIR+=	../external/bsd/bind/lib	# depends on libcrypto
    175 SUBDIR+=	../external/bsd/fetch/lib	# depends on libssl
    176 
    177 .if (${MKLDAP} != "no")
    178 SUBDIR+=	../external/bsd/openldap/lib	# depends on libcrypto, ...
    179 .endif
    180 
    181 #==================== 3rd library dependency barrier ====================
    182 SUBDIR+=	.WAIT
    183 
    184 .if (${MKRUMP} != "no")
    185 SUBDIR+=	librumpdev	# depends on librump
    186 SUBDIR+=	librumpnet	# depends on librump
    187 SUBDIR+=	librumpvfs	# depends on librump
    188 .endif
    189 
    190 .if (${MKPAM} != "no")
    191 SUBDIR+=	libpam		# depends on heimdal
    192 .endif
    193 
    194 .if (${MKCRYPTO} != "no")
    195 SUBDIR+=	../crypto/external/bsd/libsaslc	# depends on heimdal, openssl
    196 .endif
    197 
    198 .if ${MKSLJIT} != "no"
    199 SUBDIR+=	../external/bsd/sljit/lib
    200 SUBDIR+=	.WAIT
    201 SUBDIR+=	libbpfjit
    202 .endif
    203 
    204 SUBDIR+=	../external/bsd/mdocml/lib
    205 
    206 .if (${MKRUMP} != "no")
    207 #==================== 4th library dependency barrier ====================
    208 SUBDIR+=	.WAIT
    209 
    210 SUBDIR+=	libukfs		# depends on librumpvfs, librump
    211 
    212 .if (${MKTPM} != "no")
    213 SUBDIR+=	../crypto/external/cpl/trousers/lib
    214 .endif
    215 
    216 #==================== 5th library dependency barrier ====================
    217 SUBDIR+=	.WAIT
    218 
    219 SUBDIR+=	libp2k		# depends on libukfs, librumpvfs, libpuffs
    220 
    221 .if (${MKTPM} != "no")
    222 SUBDIR+=	../crypto/external/cpl/tpm-tools/lib	# depends on trousers
    223 .endif
    224 
    225 .if !defined(BSD_MK_COMPAT_FILE)
    226 SUBDIR+=	../sys/rump/dev/lib
    227 SUBDIR+=	../sys/rump/fs/lib
    228 SUBDIR+=	../sys/rump/kern/lib
    229 SUBDIR+=	../sys/rump/net/lib
    230 .endif
    231 .endif
    232 
    233 # Lua bindings come last, they might depend on anything
    234 SUBDIR+=	lua
    235 
    236 .include <bsd.buildinstall.mk>
    237 .include <bsd.subdir.mk>
    238