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