Home | History | Annotate | Line # | Download | only in lib
Makefile revision 1.179
      1 #	$NetBSD: Makefile,v 1.179 2011/10/13 22:08:20 joerg 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 SUBDIR+=	../external/gpl3/gcc/lib/crtstuff
     17 .  endif
     18 SUBDIR+=	../external/gpl3/gcc/lib/libgcc
     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 		librumpclient libtelnet libterminfo \
     40 		libusbhid libutil libwrap liby libz
     41 
     42 .if (${MKSKEY} != "no")
     43 SUBDIR+=	libskey
     44 .endif
     45 
     46 .if (${MKCRYPTO} != "no")
     47 SUBDIR+=	../crypto/external/bsd/netpgp/libmj
     48 .endif
     49 
     50 .if (${MKMDNS} != "no")
     51 SUBDIR+=	../external/apache2/mDNSResponder/lib
     52 .endif
     53 
     54 SUBDIR+=	../external/bsd/am-utils/lib
     55 
     56 .if (${MKATF} != "no")
     57 SUBDIR+=	../external/bsd/atf/lib
     58 .endif
     59 
     60 SUBDIR+=	../external/bsd/flex/lib
     61 SUBDIR+=	../external/bsd/libdwarf/lib
     62 SUBDIR+=	../external/bsd/libelf/lib
     63 SUBDIR+=	../external/bsd/libevent/lib
     64 SUBDIR+=	../external/bsd/liblzf/lib
     65 SUBDIR+=	../external/bsd/libpcap/lib
     66 
     67 SUBDIR+=	../external/mit/lua/lib
     68 
     69 SUBDIR+=	../external/public-domain/sqlite/lib
     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 . else
     78 SUBDIR+=	../external/gpl3/gcc/lib/libobjc
     79 SUBDIR+=	../external/gpl3/gcc/lib/libgomp
     80 . endif
     81 . if ${HAVE_GCC} >= 45 && !defined(MLIBDIR)
     82 # Should probably move GMP, MPFR and MPC builds into the GCC >= 4.5
     83 # specific build area, but we get better parallelism this way.
     84 SUBDIR+=	../external/lgpl3/gmp/lib/libgmp
     85 SUBDIR+=	../external/lgpl3/mpfr/lib/libmpfr
     86 SUBDIR+=	../external/lgpl2/mpc/lib/libmpc
     87 . endif
     88 .endif
     89 
     90 #
     91 # Libraries that depend upon any listed previously
     92 # (and those that depend upon these [and ...])
     93 #
     94 #==================== 1st library dependency barrier ====================
     95 SUBDIR+=	.WAIT
     96 
     97 SUBDIR+=	libcurses	# depends on libterminfo
     98 SUBDIR+=	libdm		# depends on libprop
     99 SUBDIR+=	libedit		# depends on libterminfo
    100 SUBDIR+=	libppath	# depends on libprop
    101 SUBDIR+=	libperfuse	# depends on libpuffs
    102 SUBDIR+=	libquota	# depends on libprop and librpcsvc
    103 SUBDIR+=	librefuse	# depends on libpuffs
    104 SUBDIR+=	librumpuser	# depends on libpthread
    105 SUBDIR+=	librumphijack	# depends on librumpclient and libpthread
    106 
    107 .if (${MKNPF} != "no")
    108 SUBDIR+=	libnpf		# depends on libprop
    109 .endif
    110 
    111 .if (${MKCRYPTO} != "no")
    112 SUBDIR+=	../crypto/external/bsd/openssl/lib # depends on libcrypt
    113 .endif
    114 
    115 SUBDIR+=	../external/bsd/file/lib	# depends on libz
    116 
    117 .if (${MKISCSI} != "no")
    118 SUBDIR+=	../external/bsd/iscsi/lib	# depends on libpthread
    119 .endif
    120 
    121 SUBDIR+=	../external/bsd/libarchive/lib	# depends on libxz
    122 
    123 .if (${MKLVM} != "no")
    124 SUBDIR+=	../external/gpl2/lvm2/lib	# depends on libprop
    125 .endif
    126 
    127 .if (${MKBINUTILS} != "no")
    128 SUBDIR+=	../external/gpl3/binutils/lib	# libbfd depends on libz
    129 .endif
    130 
    131 .if (${MKGCC} != "no" && ${MKCXX} != "no")
    132 . if ${HAVE_GCC} == 4
    133 SUBDIR+=	../gnu/lib/libstdc++-v3_4	# depends on libm
    134 SUBDIR+=	../gnu/lib/libsupc++4
    135 . else
    136 SUBDIR+=	../external/gpl3/gcc/lib/libstdc++-v3
    137 SUBDIR+=	../external/gpl3/gcc/lib/libsupc++
    138 . endif
    139 .endif
    140 
    141 #==================== 2nd library dependency barrier ====================
    142 SUBDIR+=	.WAIT
    143 
    144 SUBDIR+=	libform		# depends on libcurses
    145 SUBDIR+=	libmenu		# depends on libcurses
    146 SUBDIR+=	libradius	# depends on libcrypto if (${MKCRYPTO} != "no")
    147 SUBDIR+=	librump		# depends on librumpuser
    148 
    149 .if (${MKKERBEROS} != "no")
    150 SUBDIR+=	../crypto/external/bsd/heimdal/lib	# depends on libcrypto
    151 							# libedit, libterminfo,
    152 .endif
    153 
    154 .if (${MKCRYPTO} != "no")
    155 SUBDIR+=	../crypto/external/bsd/openssh/lib # depends on libcrypto, libz
    156 SUBDIR+=	../crypto/external/bsd/netpgp/lib  # depends on libcrypto, ...
    157 .endif
    158 
    159 SUBDIR+=	../external/bsd/bind/lib	# depends on libcrypto
    160 SUBDIR+=	../external/bsd/fetch/lib	# depends on libssl
    161 
    162 .if (${MKLDAP} != "no")
    163 SUBDIR+=	../external/bsd/openldap/lib	# depends on libcrypto, ...
    164 .endif
    165 
    166 #==================== 3rd library dependency barrier ====================
    167 SUBDIR+=	.WAIT
    168 
    169 SUBDIR+=	librumpdev	# depends on librump
    170 SUBDIR+=	librumpnet	# depends on librump
    171 SUBDIR+=	librumpvfs	# depends on librump
    172 
    173 .if (${MKPAM} != "no")
    174 SUBDIR+=	libpam		# depends on heimdal
    175 .endif
    176 
    177 .if (${MKCRYPTO} != "no")
    178 SUBDIR+=	../crypto/external/bsd/libsaslc	# depends on heimdal, openssl
    179 .endif
    180 
    181 #==================== 4th library dependency barrier ====================
    182 SUBDIR+=	.WAIT
    183 
    184 SUBDIR+=	libukfs		# depends on librumpvfs, librump
    185 
    186 #==================== 5th library dependency barrier ====================
    187 SUBDIR+=	.WAIT
    188 
    189 SUBDIR+=	libp2k		# depends on libukfs, librumpvfs, libpuffs
    190 
    191 # Lua bindings come last, they might depend on anything
    192 SUBDIR+=	lua
    193 
    194 .include <bsd.subdir.mk>
    195