Makefile revision 1.169       1 #	$NetBSD: Makefile,v 1.169 2011/06/22 05:16:37 mrg Exp $
      2 #	from: @(#)Makefile	5.25.1.1 (Berkeley) 5/7/91
      3 
      4 .include <bsd.own.mk>
      5 
      6 SUBDIR=		csu
      7 
      8 .if (${MKGCC} != "no")
      9 . if ${HAVE_GCC} == 4
     10 .  if (${USE_COMPILERCRTSTUFF} == "yes")
     11 SUBDIR+=	../gnu/lib/crtstuff4
     12 .  endif
     13 SUBDIR+=	../gnu/lib/libgcc4
     14 . else
     15 .  if (${USE_COMPILERCRTSTUFF} == "yes")
     16 # XXX not yet
     17 #SUBDIR+=	../external/gpl3/gcc/lib/crtstuff
     18 .  endif
     19 #SUBDIR+=	../external/gpl3/gcc/lib/libgcc
     20 . endif
     21 .endif
     22 
     23 SUBDIR+=	libc
     24 SUBDIR+=	.WAIT
     25 
     26 #
     27 # The SUBDIRs above are included here for completeness but should be built
     28 # and installed prior to make(dependall) in this file, as libraries listed
     29 # below will depend on versions from DESTDIR only.
     30 #
     31 
     32 SUBDIR+=	i18n_module
     33 
     34 SUBDIR+=	libarch \
     35 		libbluetooth libbsdmalloc libbz2 \
     36 		libcompat libcrypt \
     37 		libintl libipsec libisns libkvm libm \
     38 		libossaudio libpci libpmc libposix libprop libpthread \
     39 		libpthread_dbg libpuffs libresolv librmt librpcsvc librt \
     40 		librumpclient libtelnet libterminfo \
     41 		libusbhid libutil libwrap liby libz
     42 
     43 .if (${MKSKEY} != "no")
     44 SUBDIR+=	libskey
     45 .endif
     46 
     47 .if (${MKCRYPTO} != "no")
     48 SUBDIR+=	../crypto/external/bsd/netpgp/libmj
     49 .endif
     50 
     51 .if (${MKMDNS} != "no")
     52 SUBDIR+=	../external/apache2/mDNSResponder/lib
     53 .endif
     54 
     55 SUBDIR+=	../external/bsd/am-utils/lib
     56 
     57 .if (${MKATF} != "no")
     58 SUBDIR+=	../external/bsd/atf/lib
     59 .endif
     60 
     61 SUBDIR+=	../external/bsd/flex/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 
     70 SUBDIR+=	../external/public-domain/xz/lib
     71 
     72 SUBDIR+=	../gnu/lib/libmalloc
     73 
     74 .if (${MKGCC} != "no")
     75 . if ${HAVE_GCC} == 4
     76 SUBDIR+=	../gnu/lib/libobjc4
     77 . endif
     78 .endif
     79 
     80 . if ${HAVE_GCC} >= 45
     81 # XXX not yet
     82 #SUBDIR+=	../external/lgpl3/gmp/lib/libgmp
     83 #SUBDIR+=	../external/lgpl3/mpfr/lib/libmpfr
     84 #SUBDIR+=	../external/lgpl2/mpc/lib/libmpc
     85 .endif
     86 
     87 #
     88 # Libraries that depend upon any listed previously
     89 # (and those that depend upon these [and ...])
     90 #
     91 #==================== 1st library dependency barrier ====================
     92 SUBDIR+=	.WAIT
     93 
     94 SUBDIR+=	libcurses	# depends on libterminfo
     95 SUBDIR+=	libdm		# depends on libprop
     96 SUBDIR+=	libedit		# depends on libterminfo
     97 SUBDIR+=	libquota	# depends on libprop and librpcsvc
     98 SUBDIR+=	librefuse	# depends on libpuffs
     99 SUBDIR+=	libperfuse	# depends on libpuffs
    100 SUBDIR+=	librumpuser	# depends on libpthread
    101 
    102 .if (${MKNPF} != "no")
    103 SUBDIR+=	libnpf		# depends on libprop
    104 .endif
    105 
    106 .if (${MKCRYPTO} != "no")
    107 SUBDIR+=	../crypto/external/bsd/openssl/lib # depends on libcrypt
    108 .endif
    109 
    110 SUBDIR+=	../external/bsd/file/lib	# depends on libz
    111 
    112 .if (${MKISCSI} != "no")
    113 SUBDIR+=	../external/bsd/iscsi/lib	# depends on libpthread
    114 .endif
    115 
    116 SUBDIR+=	../external/bsd/libarchive/lib	# depends on libxz
    117 
    118 .if (${MKLVM} != "no")
    119 SUBDIR+=	../external/gpl2/lvm2/lib	# depends on libprop
    120 .endif
    121 
    122 .if (${MKBINUTILS} != "no")
    123 SUBDIR+=	../external/gpl3/binutils/lib	# libbfd depends on libz
    124 .endif
    125 
    126 .if (${MKGCC} != "no" && ${MKCXX} != "no")
    127 . if ${HAVE_GCC} == 4
    128 SUBDIR+=	../gnu/lib/libstdc++-v3_4	# depends on libm
    129 SUBDIR+=	../gnu/lib/libsupc++4
    130 . endif
    131 .endif
    132 
    133 #==================== 2nd library dependency barrier ====================
    134 SUBDIR+=	.WAIT
    135 
    136 SUBDIR+=	libform		# depends on libcurses
    137 
    138 .if (${MKKERBEROS} != "no")
    139 SUBDIR+=	../crypto/external/bsd/heimdal/lib	# depends on libcrypto
    140 							# libedit, libterminfo,
    141 .endif
    142 
    143 SUBDIR+=	libmenu		# depends on libcurses
    144 SUBDIR+=	libradius	# depends on libcrypto if (${MKCRYPTO} != "no")
    145 SUBDIR+=	librump		# depends on librumpuser
    146 
    147 .if (${MKCRYPTO} != "no")
    148 SUBDIR+=	../crypto/external/bsd/openssh/lib # depends on libcrypto, libz
    149 SUBDIR+=	../crypto/external/bsd/netpgp/lib  # depends on libcrypto, ...
    150 .endif
    151 
    152 SUBDIR+=	../external/bsd/bind/lib	# depends on libcrypto
    153 SUBDIR+=	../external/bsd/fetch/lib	# depends on libssl
    154 
    155 .if (${MKLDAP} != "no")
    156 SUBDIR+=	../external/bsd/openldap/lib	# depends on libcrypto, ...
    157 .endif
    158 
    159 SUBDIR+=	librumphijack
    160 
    161 #==================== 3rd library dependency barrier ====================
    162 SUBDIR+=	.WAIT
    163 
    164 SUBDIR+=	librumpdev	# depends on librump
    165 SUBDIR+=	librumpnet	# depends on librump
    166 SUBDIR+=	librumpvfs	# depends on librump
    167 
    168 #==================== 4th library dependency barrier ====================
    169 SUBDIR+=	.WAIT
    170 
    171 SUBDIR+=	libukfs		# depends on librumpvfs, librump
    172 
    173 #==================== 5th library dependency barrier ====================
    174 SUBDIR+=	.WAIT
    175 
    176 SUBDIR+=	libp2k		# depends on libukfs, librumpvfs, libpuffs
    177 
    178 .if (${MKPAM} != "no")
    179 SUBDIR+=	libpam		# depends on libkafs, libkrb5, ...
    180 .endif
    181 
    182 #==================== 6th library dependency barrier ====================
    183 SUBDIR+=	.WAIT
    184 
    185 .if (${MKCRYPTO} != "no")
    186 SUBDIR+=	../crypto/external/bsd/libsaslc		# depends on gssapi
    187 .endif
    188 
    189 .include <bsd.subdir.mk>
    190