Home | History | Annotate | Line # | Download | only in lib
Makefile revision 1.200
      1 #	$NetBSD: Makefile,v 1.200 2013/04/12 16:32:37 skrll 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" || ${MACHINE_ARCH:C/e[bl]$//} == "earm")
     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/liblzf/lib
     68 SUBDIR+=	../external/bsd/libpcap/lib
     69 
     70 SUBDIR+=	../external/mit/lua/lib
     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/lgpl2/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 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 .if (${MKRUMP} != "no")
    110 SUBDIR+=	librumpuser	# depends on libpthread
    111 SUBDIR+=	librumphijack	# depends on librumpclient and libpthread
    112 .endif
    113 
    114 .if (${MKNPF} != "no")
    115 SUBDIR+=	libnpf		# depends on libprop
    116 SUBDIR+=	npf
    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 (${MKGCC} != "no" && ${MKCXX} != "no")
    140 . if ${HAVE_GCC} == 4
    141 SUBDIR+=	../gnu/lib/libstdc++-v3_4	# depends on libm
    142 SUBDIR+=	../gnu/lib/libsupc++4
    143 . else
    144 SUBDIR+=	../external/gpl3/gcc/lib/libstdc++-v3
    145 SUBDIR+=	../external/gpl3/gcc/lib/libsupc++
    146 . endif
    147 .endif
    148 
    149 #==================== 2nd library dependency barrier ====================
    150 SUBDIR+=	.WAIT
    151 
    152 .if (${MKATF} != "no")
    153 SUBDIR+=	../external/bsd/atf/lib		# depends on libstdc++
    154 .endif
    155 
    156 .if (${MKKYUA} != "no")
    157 SUBDIR+=	../external/bsd/lutok/lib	# depends on lua and libstdc++
    158 .endif
    159 
    160 SUBDIR+=	libform		# depends on libcurses
    161 SUBDIR+=	libmenu		# depends on libcurses
    162 SUBDIR+=	libradius	# depends on libcrypto if (${MKCRYPTO} != "no")
    163 .if (${MKRUMP} != "no")
    164 SUBDIR+=	librump		# depends on librumpuser
    165 .endif
    166 
    167 .if (${MKKERBEROS} != "no")
    168 SUBDIR+=	../crypto/external/bsd/heimdal/lib	# depends on libcrypto
    169 							# libedit, libterminfo,
    170 .endif
    171 
    172 .if (${MKCRYPTO} != "no")
    173 SUBDIR+=	../crypto/external/bsd/openssh/lib # depends on libcrypto, libz
    174 SUBDIR+=	../crypto/external/bsd/netpgp/lib  # depends on libcrypto, ...
    175 .endif
    176 
    177 SUBDIR+=	../external/bsd/libevent/lib	# depends on libcrypto
    178 SUBDIR+=	../external/bsd/bind/lib	# depends on libcrypto
    179 SUBDIR+=	../external/bsd/fetch/lib	# depends on libssl
    180 
    181 .if (${MKLDAP} != "no")
    182 SUBDIR+=	../external/bsd/openldap/lib	# depends on libcrypto, ...
    183 .endif
    184 
    185 #==================== 3rd library dependency barrier ====================
    186 SUBDIR+=	.WAIT
    187 
    188 .if (${MKRUMP} != "no")
    189 SUBDIR+=	librumpdev	# depends on librump
    190 SUBDIR+=	librumpnet	# depends on librump
    191 SUBDIR+=	librumpvfs	# depends on librump
    192 .endif
    193 
    194 .if (${MKPAM} != "no")
    195 SUBDIR+=	libpam		# depends on heimdal
    196 .endif
    197 
    198 .if (${MKCRYPTO} != "no")
    199 SUBDIR+=	../crypto/external/bsd/libsaslc	# depends on heimdal, openssl
    200 .endif
    201 
    202 .if ${MKSLJIT} != "no"
    203 SUBDIR+=	../external/bsd/sljit/lib
    204 SUBDIR+=	.WAIT
    205 SUBDIR+=	libbpfjit
    206 .endif
    207 
    208 SUBDIR+=	../external/bsd/mdocml/lib
    209 
    210 .if (${MKRUMP} != "no")
    211 #==================== 4th library dependency barrier ====================
    212 SUBDIR+=	.WAIT
    213 
    214 SUBDIR+=	libukfs		# depends on librumpvfs, librump
    215 
    216 .if (${MKTPM} != "no")
    217 SUBDIR+=	../crypto/external/cpl/trousers/lib
    218 .endif
    219 
    220 #==================== 5th library dependency barrier ====================
    221 SUBDIR+=	.WAIT
    222 
    223 SUBDIR+=	libp2k		# depends on libukfs, librumpvfs, libpuffs
    224 
    225 .if (${MKTPM} != "no")
    226 SUBDIR+=	../crypto/external/cpl/tpm-tools/lib	# depends on trousers
    227 .endif
    228 
    229 .if !defined(BSD_MK_COMPAT_FILE)
    230 SUBDIR+=	../sys/rump/dev/lib
    231 SUBDIR+=	../sys/rump/fs/lib
    232 SUBDIR+=	../sys/rump/kern/lib
    233 SUBDIR+=	../sys/rump/net/lib
    234 .endif
    235 .endif
    236 
    237 # Lua bindings come last, they might depend on anything
    238 SUBDIR+=	lua
    239 
    240 .include <bsd.buildinstall.mk>
    241 .include <bsd.subdir.mk>
    242