Home | History | Annotate | Line # | Download | only in lib
Makefile revision 1.156
      1 #	$NetBSD: Makefile,v 1.156 2010/12/05 05:58:12 christos 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 (${USE_COMPILERCRTSTUFF} == "yes")
     10 SUBDIR+=	../gnu/lib/crtstuff4
     11 .endif
     12 SUBDIR+=	../gnu/lib/libgcc4
     13 .endif
     14 
     15 SUBDIR+=	libc
     16 SUBDIR+=	.WAIT
     17 
     18 #
     19 # The SUBDIRs above are included here for completeness but should be built
     20 # and installed prior to make(dependall) in this file, as libraries listed
     21 # below will depend on versions from DESTDIR only.
     22 #
     23 
     24 SUBDIR+=libarch \
     25 	libbsdmalloc libbluetooth libbz2 \
     26 	libcompat libcrypt \
     27 	libintl libkvm libm \
     28 	libossaudio libpci libpmc libposix libprop libpthread \
     29 	libpthread_dbg libpuffs libresolv librmt librpcsvc librt \
     30 	librumpclient libterminfo libusbhid libutil libwrap liby libz
     31 
     32 SUBDIR+=	../external/bsd/libpcap/lib
     33 
     34 .if (${MKMDNS} != "no")
     35 SUBDIR+=	../external/apache2/mDNSResponder/lib
     36 .endif
     37 
     38 SUBDIR+=	../external/bsd/am-utils/lib
     39 
     40 .if (${MKATF} != "no")
     41 SUBDIR+=	../external/bsd/atf/lib
     42 .endif
     43 
     44 SUBDIR+=	../external/bsd/flex/lib
     45 SUBDIR+=	../external/bsd/libdwarf/lib
     46 SUBDIR+=	../external/bsd/libelf/lib
     47 SUBDIR+=	../external/bsd/libevent/lib
     48 
     49 SUBDIR+=	../external/mit/lua/lib
     50 
     51 SUBDIR+=	../external/public-domain/xz/lib
     52 
     53 SUBDIR+=	../gnu/lib/libmalloc
     54 
     55 .if (${MKGCC} != "no")
     56 SUBDIR+=	../gnu/lib/libobjc4
     57 .endif
     58 
     59 # libcurses needs libtermlib
     60 SUBDIR+=	.WAIT libcurses
     61 
     62 # libform and libmenu need libcurses
     63 SUBDIR+=	.WAIT libform libmenu 
     64 
     65 .if (${MKSKEY} != "no")
     66 SUBDIR+= libskey
     67 .endif
     68 
     69 # XXX Crypto bits must be done before libtelnet.
     70 
     71 .if (${MKCRYPTO} != "no")
     72 SUBDIR+=	../crypto/external/bsd/openssl/lib
     73 .endif	# MKCRYPTO != no
     74 
     75 .if (${MKKERBEROS} != "no")
     76 # Heimdal Kerberos 5 libraries
     77 SUBDIR+= .WAIT libroken libvers libcom_err .WAIT libasn1
     78 SUBDIR+= .WAIT libhx509
     79 
     80 .endif	# MKKERBEROS != no
     81 
     82 SUBDIR+=	libtelnet
     83 
     84 # IPv6/IPsec
     85 SUBDIR+=	libipsec
     86 
     87 # I18N modules
     88 SUBDIR+=	i18n_module
     89 
     90 
     91 #
     92 # Libraries that depend upon any listed previously
     93 # (and those that depend upon these [and ...])
     94 #
     95 #==================== 1st library dependency barrier ====================
     96 SUBDIR+=	.WAIT
     97 
     98 SUBDIR+=	libedit		# depends on libterm
     99 
    100 SUBDIR+=	libradius	# depends on libcrypto - only if ${MKCRYPTO}
    101 
    102 
    103 .if (${MKKERBEROS} != "no")
    104 SUBDIR+=	libkrb5		# depends on libcrypto and more
    105 .endif
    106 
    107 SUBDIR+=	librefuse	# depends on libpuffs
    108 SUBDIR+=	librumpuser	# depends on libpthread
    109 
    110 .if (${MKCRYPTO} != "no")
    111 # these depend on libcrypto*, libz and libbz2
    112 SUBDIR+=	../crypto/external/bsd/openssh/lib
    113 SUBDIR+=	../crypto/external/bsd/netpgp/libmj
    114 SUBDIR+=	.WAIT
    115 SUBDIR+=	../crypto/external/bsd/netpgp/lib
    116 .endif
    117 
    118 SUBDIR+=	../external/bsd/bind/lib	# depends on libcrypto
    119 SUBDIR+=	../external/bsd/fetch/lib	# depends on libssl
    120 SUBDIR+=	../external/bsd/file/lib	# depends on libz
    121 
    122 .if (${MKISCSI} != "no")
    123 SUBDIR+=	../external/bsd/iscsi/lib	# depends on libpthread
    124 .endif
    125 
    126 SUBDIR+=	../external/bsd/libarchive/lib	# depends on libxz
    127 
    128 .if (${MKLDAP} != "no")
    129 SUBDIR+=	../external/bsd/openldap/lib
    130 .endif
    131 
    132 .if (${MKBINUTILS} != "no")
    133 SUBDIR+=	../external/gpl3/binutils/lib	# libbfd depends on libz
    134 .endif
    135 
    136 .if (${MKGCC} != "no" && ${MKCXX} != "no")
    137 SUBDIR+=	../gnu/lib/libstdc++-v3_4	# depends on libm
    138 SUBDIR+=	../gnu/lib/libsupc++4
    139 .endif
    140 
    141 #==================== 2nd library dependency barrier ====================
    142 SUBDIR+=	.WAIT
    143 
    144 .if (${MKKERBEROS} != "no")
    145 # Heimdal Kerberos 5 libraries depending on libkrb5 and more
    146 SUBDIR+=	libheimntlm
    147 SUBDIR+=	.WAIT libgssapi libhdb
    148 SUBDIR+=	.WAIT libkadm5srv libkadm5clnt libkafs libsl libss
    149 .endif
    150 
    151 SUBDIR+=	librump		# depends on librumpuser
    152 
    153 #==================== 3rd library dependency barrier ====================
    154 SUBDIR+=	.WAIT
    155 
    156 .if (${MKPAM} != "no")
    157 SUBDIR+=	libpam		# depends on libkrb5, libkafs and more
    158 .endif
    159 
    160 .if (${MKCRYPTO} != "no")
    161 SUBDIR+=	librumpcrypto	# depends on librump
    162 .endif
    163 SUBDIR+=	librumpdev	# depends on librump
    164 SUBDIR+=	librumpnet	# depends on librump
    165 SUBDIR+=	librumpvfs	# depends on librump
    166 
    167 #==================== 4th library dependency barrier ====================
    168 SUBDIR+=	.WAIT
    169 SUBDIR+=	libukfs		# depends on librump and librumpvfs
    170 
    171 #==================== 5th library dependency barrier ====================
    172 SUBDIR+=	.WAIT
    173 SUBDIR+=	libp2k		# depends on libpuffs, librumpvfs and libukfs
    174 
    175 .include <bsd.subdir.mk>
    176