Home | History | Annotate | Line # | Download | only in lib
Makefile revision 1.215.2.3
      1  1.215.2.3    martin #	$NetBSD: Makefile,v 1.215.2.3 2016/03/06 18:05:09 martin Exp $
      2        1.8   mycroft #	from: @(#)Makefile	5.25.1.1 (Berkeley) 5/7/91
      3       1.21       cgd 
      4       1.62   thorpej .include <bsd.own.mk>
      5       1.62   thorpej 
      6      1.188     joerg SUBDIR=		csu .WAIT
      7      1.155    plunky 
      8      1.155    plunky .if (${MKGCC} != "no")
      9      1.211       mrg SUBDIR+=	../external/gpl3/${EXTERNAL_GCC_SUBDIR}/lib/libgcc .WAIT
     10      1.155    plunky .endif
     11      1.155    plunky 
     12      1.155    plunky SUBDIR+=	libc
     13      1.155    plunky SUBDIR+=	.WAIT
     14      1.155    plunky 
     15      1.155    plunky #
     16      1.155    plunky # The SUBDIRs above are included here for completeness but should be built
     17      1.155    plunky # and installed prior to make(dependall) in this file, as libraries listed
     18      1.155    plunky # below will depend on versions from DESTDIR only.
     19      1.155    plunky #
     20      1.155    plunky 
     21      1.158    plunky SUBDIR+=	i18n_module
     22      1.158    plunky 
     23      1.158    plunky SUBDIR+=	libarch \
     24      1.158    plunky 		libbluetooth libbsdmalloc libbz2 \
     25      1.184      matt 		libcompat libcrypt \
     26      1.207     joerg 		libintl libipsec libkvm libm \
     27      1.158    plunky 		libossaudio libpci libpmc libposix libprop libpthread \
     28      1.158    plunky 		libpthread_dbg libpuffs libresolv librmt librpcsvc librt \
     29      1.187  christos 		libtelnet libterminfo \
     30      1.158    plunky 		libusbhid libutil libwrap liby libz
     31      1.158    plunky 
     32      1.206      matt .if !defined(BSD_MK_COMPAT_FILE)
     33      1.206      matt SUBDIR+=	libkern
     34      1.206      matt .endif
     35      1.206      matt 
     36      1.201      matt .if (${MACHINE_CPU} == "arm")
     37      1.201      matt LIBC_MACHINE_ARCH?=${MACHINE_ARCH}
     38      1.201      matt .if empty(LIBC_MACHINE_ARCH:M*hf*)
     39      1.197      matt SUBDIR+=	libc_vfp
     40      1.197      matt .endif
     41      1.201      matt .endif
     42      1.187  christos .if (${MKRUMP} != "no")
     43      1.187  christos SUBDIR+=	librumpclient
     44      1.187  christos .endif
     45      1.158    plunky .if (${MKSKEY} != "no")
     46      1.158    plunky SUBDIR+=	libskey
     47      1.158    plunky .endif
     48       1.60   thorpej 
     49      1.155    plunky .if (${MKMDNS} != "no")
     50      1.155    plunky SUBDIR+=	../external/apache2/mDNSResponder/lib
     51      1.155    plunky .endif
     52      1.155    plunky 
     53      1.155    plunky SUBDIR+=	../external/bsd/am-utils/lib
     54      1.155    plunky 
     55      1.155    plunky SUBDIR+=	../external/bsd/flex/lib
     56      1.180  christos SUBDIR+=	../external/bsd/tre/lib
     57      1.212  christos SUBDIR+=	../external/bsd/elftoolchain/lib/libelf
     58      1.163      matt SUBDIR+=	../external/bsd/liblzf/lib
     59      1.158    plunky SUBDIR+=	../external/bsd/libpcap/lib
     60      1.155    plunky 
     61      1.214    plunky .if ${MKSLJIT} != "no"
     62      1.214    plunky SUBDIR+=	../external/bsd/sljit/lib
     63      1.214    plunky SUBDIR+=	libbpfjit
     64      1.214    plunky .endif
     65      1.214    plunky 
     66      1.182      tron SUBDIR+=	../external/mit/expat/lib
     67      1.155    plunky 
     68      1.179     joerg SUBDIR+=	../external/public-domain/sqlite/lib
     69      1.155    plunky SUBDIR+=	../external/public-domain/xz/lib
     70      1.155    plunky 
     71      1.155    plunky SUBDIR+=	../gnu/lib/libmalloc
     72      1.155    plunky 
     73      1.155    plunky .if (${MKGCC} != "no")
     74      1.211       mrg SUBDIR+=	../external/gpl3/${EXTERNAL_GCC_SUBDIR}/lib/libobjc
     75      1.211       mrg SUBDIR+=	../external/gpl3/${EXTERNAL_GCC_SUBDIR}/lib/libgomp
     76      1.173       mrg # Should probably move GMP, MPFR and MPC builds into the GCC >= 4.5
     77      1.173       mrg # specific build area, but we get better parallelism this way.
     78      1.215       mrg # We don't build compat versions of these.
     79      1.215       mrg . if !defined(MLIBDIR)
     80      1.172      matt SUBDIR+=	../external/lgpl3/gmp/lib/libgmp
     81      1.174    plunky SUBDIR+=	../external/lgpl3/mpfr/lib/libmpfr
     82      1.209       mrg SUBDIR+=	../external/lgpl3/mpc/lib/libmpc
     83      1.174    plunky . endif
     84      1.155    plunky .endif
     85      1.144  christos 
     86       1.89     lukem #
     87       1.89     lukem # Libraries that depend upon any listed previously
     88       1.93     lukem # (and those that depend upon these [and ...])
     89       1.89     lukem #
     90       1.97  christos #==================== 1st library dependency barrier ====================
     91       1.97  christos SUBDIR+=	.WAIT
     92       1.97  christos 
     93      1.208       mrg .if (${MKCRYPTO} != "no")
     94      1.208       mrg SUBDIR+=	../crypto/external/bsd/netpgp/libmj
     95      1.208       mrg SUBDIR+=	../crypto/external/bsd/netpgp/lib/verify # depends on libz
     96      1.208       mrg .endif
     97      1.208       mrg 
     98  1.215.2.3    martin SUBDIR+=	../external/bsd/blacklist/lib		# depends on libpthread
     99      1.212  christos SUBDIR+=	../external/bsd/elftoolchain/lib/libdwarf # depends on libelf
    100      1.208       mrg SUBDIR+=	../external/mit/lua/lib # depends on libm
    101      1.158    plunky SUBDIR+=	libcurses	# depends on libterminfo
    102      1.162      haad SUBDIR+=	libdm		# depends on libprop
    103      1.158    plunky SUBDIR+=	libedit		# depends on libterminfo
    104      1.184      matt SUBDIR+=	libexecinfo 	# depends on libelf
    105      1.176    dyoung SUBDIR+=	libppath	# depends on libprop
    106      1.175    plunky SUBDIR+=	libperfuse	# depends on libpuffs
    107      1.165    bouyer SUBDIR+=	libquota	# depends on libprop and librpcsvc
    108      1.113     pooka SUBDIR+=	librefuse	# depends on libpuffs
    109      1.207     joerg SUBDIR+=	libisns 	# depends on libpthread
    110      1.187  christos .if (${MKRUMP} != "no")
    111      1.126     pooka SUBDIR+=	librumpuser	# depends on libpthread
    112      1.175    plunky SUBDIR+=	librumphijack	# depends on librumpclient and libpthread
    113      1.187  christos .endif
    114      1.126     pooka 
    115      1.161     rmind .if (${MKNPF} != "no")
    116      1.161     rmind SUBDIR+=	libnpf		# depends on libprop
    117      1.161     rmind .endif
    118      1.161     rmind 
    119      1.148       mrg .if (${MKCRYPTO} != "no")
    120      1.158    plunky SUBDIR+=	../crypto/external/bsd/openssl/lib # depends on libcrypt
    121      1.148       mrg .endif
    122      1.139       mrg 
    123      1.155    plunky SUBDIR+=	../external/bsd/file/lib	# depends on libz
    124      1.155    plunky 
    125      1.155    plunky .if (${MKISCSI} != "no")
    126      1.155    plunky SUBDIR+=	../external/bsd/iscsi/lib	# depends on libpthread
    127      1.155    plunky .endif
    128      1.155    plunky 
    129      1.155    plunky SUBDIR+=	../external/bsd/libarchive/lib	# depends on libxz
    130      1.155    plunky 
    131      1.163      matt .if (${MKLVM} != "no")
    132      1.163      matt SUBDIR+=	../external/gpl2/lvm2/lib	# depends on libprop
    133      1.163      matt .endif
    134      1.163      matt 
    135      1.155    plunky .if (${MKBINUTILS} != "no")
    136      1.155    plunky SUBDIR+=	../external/gpl3/binutils/lib	# libbfd depends on libz
    137      1.155    plunky .endif
    138      1.155    plunky 
    139      1.202     joerg .if (${MKLIBCXX} != "no")
    140      1.202     joerg SUBDIR+=	../external/bsd/libc++
    141      1.202     joerg .endif
    142      1.202     joerg 
    143      1.203     joerg .if (${MKGCC} != "no" && ${MKCXX} != "no" && ${MKLIBSTDCXX} != "no")
    144      1.211       mrg SUBDIR+=	../external/gpl3/${EXTERNAL_GCC_SUBDIR}/lib/libstdc++-v3
    145      1.211       mrg SUBDIR+=	../external/gpl3/${EXTERNAL_GCC_SUBDIR}/lib/libsupc++
    146      1.155    plunky .endif
    147  1.215.2.1    martin .if (${HAVE_GCC:U} == "48")
    148  1.215.2.1    martin SUBDIR+=	../external/gpl3/${EXTERNAL_GCC_SUBDIR}/lib/libasan
    149  1.215.2.1    martin .endif
    150      1.155    plunky 
    151       1.97  christos #==================== 2nd library dependency barrier ====================
    152       1.97  christos SUBDIR+=	.WAIT
    153       1.97  christos 
    154      1.208       mrg .if (${MKNPF} != "no")
    155      1.208       mrg SUBDIR+=	npf		# depends on libnpf
    156      1.208       mrg .endif
    157      1.208       mrg 
    158      1.185  christos .if (${MKATF} != "no")
    159      1.186  christos SUBDIR+=	../external/bsd/atf/lib		# depends on libstdc++
    160      1.185  christos .endif
    161      1.185  christos 
    162      1.198      jmmv .if (${MKKYUA} != "no")
    163      1.198      jmmv SUBDIR+=	../external/bsd/lutok/lib	# depends on lua and libstdc++
    164      1.198      jmmv .endif
    165      1.198      jmmv 
    166      1.158    plunky SUBDIR+=	libform		# depends on libcurses
    167      1.175    plunky SUBDIR+=	libmenu		# depends on libcurses
    168      1.175    plunky SUBDIR+=	libradius	# depends on libcrypto if (${MKCRYPTO} != "no")
    169      1.187  christos .if (${MKRUMP} != "no")
    170      1.175    plunky SUBDIR+=	librump		# depends on librumpuser
    171      1.187  christos .endif
    172      1.158    plunky 
    173      1.100  christos .if (${MKKERBEROS} != "no")
    174      1.166     elric SUBDIR+=	../crypto/external/bsd/heimdal/lib	# depends on libcrypto
    175      1.166     elric 							# libedit, libterminfo,
    176      1.100  christos .endif
    177      1.100  christos 
    178      1.158    plunky .if (${MKCRYPTO} != "no")
    179      1.158    plunky SUBDIR+=	../crypto/external/bsd/openssh/lib # depends on libcrypto, libz
    180      1.158    plunky SUBDIR+=	../crypto/external/bsd/netpgp/lib  # depends on libcrypto, ...
    181      1.158    plunky .endif
    182      1.158    plunky 
    183      1.199  christos SUBDIR+=	../external/bsd/libevent/lib	# depends on libcrypto
    184      1.158    plunky SUBDIR+=	../external/bsd/fetch/lib	# depends on libssl
    185      1.158    plunky 
    186      1.158    plunky .if (${MKLDAP} != "no")
    187      1.158    plunky SUBDIR+=	../external/bsd/openldap/lib	# depends on libcrypto, ...
    188      1.158    plunky .endif
    189      1.158    plunky 
    190      1.124     lukem #==================== 3rd library dependency barrier ====================
    191      1.124     lukem SUBDIR+=	.WAIT
    192      1.124     lukem 
    193      1.204     joerg SUBDIR+=	../external/bsd/bind/lib	# depends on heimdal, libcrypto
    194      1.204     joerg 
    195      1.187  christos .if (${MKRUMP} != "no")
    196      1.143     pooka SUBDIR+=	librumpdev	# depends on librump
    197      1.128     pooka SUBDIR+=	librumpnet	# depends on librump
    198      1.130     pooka SUBDIR+=	librumpvfs	# depends on librump
    199      1.187  christos .endif
    200      1.126     pooka 
    201      1.175    plunky .if (${MKPAM} != "no")
    202      1.175    plunky SUBDIR+=	libpam		# depends on heimdal
    203      1.175    plunky .endif
    204      1.175    plunky 
    205      1.175    plunky .if (${MKCRYPTO} != "no")
    206      1.175    plunky SUBDIR+=	../crypto/external/bsd/libsaslc	# depends on heimdal, openssl
    207      1.175    plunky .endif
    208      1.175    plunky 
    209      1.181     joerg SUBDIR+=	../external/bsd/mdocml/lib
    210      1.181     joerg 
    211      1.187  christos .if (${MKRUMP} != "no")
    212      1.126     pooka #==================== 4th library dependency barrier ====================
    213      1.126     pooka SUBDIR+=	.WAIT
    214      1.158    plunky 
    215      1.158    plunky SUBDIR+=	libukfs		# depends on librumpvfs, librump
    216      1.131     pooka 
    217      1.190  christos .if (${MKTPM} != "no")
    218      1.190  christos SUBDIR+=	../crypto/external/cpl/trousers/lib
    219      1.190  christos .endif
    220      1.190  christos 
    221      1.131     pooka #==================== 5th library dependency barrier ====================
    222      1.131     pooka SUBDIR+=	.WAIT
    223      1.158    plunky 
    224      1.158    plunky SUBDIR+=	libp2k		# depends on libukfs, librumpvfs, libpuffs
    225      1.188     joerg 
    226      1.192  christos .if (${MKTPM} != "no")
    227      1.192  christos SUBDIR+=	../crypto/external/cpl/tpm-tools/lib	# depends on trousers
    228      1.192  christos .endif
    229      1.192  christos 
    230      1.188     joerg .if !defined(BSD_MK_COMPAT_FILE)
    231      1.188     joerg SUBDIR+=	../sys/rump/dev/lib
    232      1.188     joerg SUBDIR+=	../sys/rump/fs/lib
    233      1.188     joerg SUBDIR+=	../sys/rump/kern/lib
    234      1.188     joerg SUBDIR+=	../sys/rump/net/lib
    235      1.188     joerg .endif
    236      1.187  christos .endif
    237      1.158    plunky 
    238      1.178   mbalmer # Lua bindings come last, they might depend on anything
    239      1.178   mbalmer SUBDIR+=	lua
    240      1.178   mbalmer 
    241      1.210  christos # Needed by rump and rescue which are outside the smbfs tree
    242      1.210  christos SUBDIR+=	../external/bsd/smbfs/lib
    243      1.210  christos 
    244      1.195     joerg .include <bsd.buildinstall.mk>
    245        1.1       cgd .include <bsd.subdir.mk>
    246