[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / lib

Annotation of src/lib/Makefile, Revision 1.266

1.266   ! mrg         1: #      $NetBSD: Makefile,v 1.265 2018/11/13 09:24:37 martin Exp $
1.8       mycroft     2: #      from: @(#)Makefile      5.25.1.1 (Berkeley) 5/7/91
1.21      cgd         3:
1.62      thorpej     4: .include <bsd.own.mk>
                      5:
1.188     joerg       6: SUBDIR=                csu .WAIT
1.155     plunky      7:
                      8: .if (${MKGCC} != "no")
1.211     mrg         9: SUBDIR+=       ../external/gpl3/${EXTERNAL_GCC_SUBDIR}/lib/libgcc .WAIT
1.155     plunky     10: .endif
                     11:
                     12: SUBDIR+=       libc
                     13: SUBDIR+=       .WAIT
                     14:
                     15: #
                     16: # The SUBDIRs above are included here for completeness but should be built
                     17: # and installed prior to make(dependall) in this file, as libraries listed
                     18: # below will depend on versions from DESTDIR only.
                     19: #
                     20:
1.158     plunky     21: SUBDIR+=       i18n_module
                     22:
                     23: SUBDIR+=       libarch \
                     24:                libbluetooth libbsdmalloc libbz2 \
1.184     matt       25:                libcompat libcrypt \
1.265     martin     26:                libintl libipsec libkvm libm \
1.259     maxv       27:                libossaudio libpci libposix libprop libpthread \
1.249     kamil      28:                libpuffs libresolv librmt librpcsvc librt \
1.187     christos   29:                libtelnet libterminfo \
1.158     plunky     30:                libusbhid libutil libwrap liby libz
                     31:
1.206     matt       32: .if !defined(BSD_MK_COMPAT_FILE)
                     33: SUBDIR+=       libkern
                     34: .endif
                     35:
1.226     matt       36: .if (${MACHINE_CPU} == "arm" || ${MACHINE_CPU} == "aarch64")
1.201     matt       37: LIBC_MACHINE_ARCH?=${MACHINE_ARCH}
1.228     joerg      38: LIBC_MACHINE_CPU?=${MACHINE_CPU}
                     39: .if ${LIBC_MACHINE_CPU} == "arm" && empty(LIBC_MACHINE_ARCH:M*hf*)
1.197     matt       40: SUBDIR+=       libc_vfp
                     41: .endif
1.201     matt       42: .endif
1.248     macallan   43: .if ${MACHINE_ARCH} == "mips64el" || ${MACHINE_ARCH} == "mips64eb"
1.247     macallan   44: SUBDIR+=       libc_fp
                     45: .endif
1.187     christos   46: .if (${MKRUMP} != "no")
                     47: SUBDIR+=       librumpclient
                     48: .endif
1.158     plunky     49: .if (${MKSKEY} != "no")
                     50: SUBDIR+=       libskey
                     51: .endif
1.60      thorpej    52:
1.265     martin     53: .if ${MACHINE_ARCH} == "x86_64" && ${MLIBDIR:Unone} != "i386"
                     54: SUBDIR+=       libnvmm
                     55: .endif
                     56:
1.266   ! mrg        57: SUBDIR+=       ../external/public-domain/sqlite/lib
        !            58:
1.155     plunky     59: .if (${MKMDNS} != "no")
                     60: SUBDIR+=       ../external/apache2/mDNSResponder/lib
                     61: .endif
                     62:
                     63: SUBDIR+=       ../external/bsd/am-utils/lib
                     64:
                     65: SUBDIR+=       ../external/bsd/flex/lib
1.180     christos   66: SUBDIR+=       ../external/bsd/tre/lib
1.212     christos   67: SUBDIR+=       ../external/bsd/elftoolchain/lib/libelf
1.163     matt       68: SUBDIR+=       ../external/bsd/liblzf/lib
1.158     plunky     69: SUBDIR+=       ../external/bsd/libpcap/lib
1.155     plunky     70:
1.214     plunky     71: .if ${MKSLJIT} != "no"
                     72: SUBDIR+=       ../external/bsd/sljit/lib
                     73: SUBDIR+=       libbpfjit
                     74: .endif
                     75:
1.261     christos   76: SUBDIR+=       ../external/bsd/libnv/lib
                     77:
1.224     matt       78: .if (${MKZFS} != "no")
                     79: SUBDIR+=        ../external/cddl/osnet/lib/libavl
                     80: SUBDIR+=        ../external/cddl/osnet/lib/libnvpair
                     81: SUBDIR+=        ../external/cddl/osnet/lib/libumem
                     82: SUBDIR+=        ../external/cddl/osnet/lib/libuutil
                     83: .endif
                     84:
1.182     tron       85: SUBDIR+=       ../external/mit/expat/lib
1.155     plunky     86:
1.238     christos   87: SUBDIR+=       ../external/gpl2/libmalloc
1.155     plunky     88:
                     89: .if (${MKGCC} != "no")
1.211     mrg        90: SUBDIR+=       ../external/gpl3/${EXTERNAL_GCC_SUBDIR}/lib/libobjc
                     91: SUBDIR+=       ../external/gpl3/${EXTERNAL_GCC_SUBDIR}/lib/libgomp
1.173     mrg        92: # Should probably move GMP, MPFR and MPC builds into the GCC >= 4.5
                     93: # specific build area, but we get better parallelism this way.
1.215     mrg        94: # We don't build compat versions of these.
1.252     mrg        95: . if !defined(MLIBDIR) && (${MKGCCCMDS} != "no")
1.172     matt       96: SUBDIR+=       ../external/lgpl3/gmp/lib/libgmp
1.174     plunky     97: SUBDIR+=       ../external/lgpl3/mpfr/lib/libmpfr
1.209     mrg        98: SUBDIR+=       ../external/lgpl3/mpc/lib/libmpc
1.174     plunky     99: . endif
1.155     plunky    100: .endif
1.144     christos  101:
1.89      lukem     102: #
                    103: # Libraries that depend upon any listed previously
1.93      lukem     104: # (and those that depend upon these [and ...])
1.89      lukem     105: #
1.97      christos  106: #==================== 1st library dependency barrier ====================
                    107: SUBDIR+=       .WAIT
                    108:
1.235     christos  109: .if ${MKDTRACE} != "no"
1.229     christos  110: SUBDIR+=       ../external/bsd/librtld_db/lib          # depends on libutil
1.234     christos  111: .endif
1.229     christos  112:
1.240     riastrad  113: .if ${MKCTF} != "no"
1.227     christos  114: SUBDIR+=        ../external/cddl/osnet/lib/libctf
                    115: .endif
                    116:
1.221     mrg       117: SUBDIR+=       ../external/public-domain/xz/lib        # depends on libpthread
1.208     mrg       118: SUBDIR+=       ../crypto/external/bsd/netpgp/libmj
                    119: SUBDIR+=       ../crypto/external/bsd/netpgp/lib/verify # depends on libz
1.237     christos  120: SUBDIR+=       ../external/bsd/blacklist/lib           # depends on libpthread
1.212     christos  121: SUBDIR+=       ../external/bsd/elftoolchain/lib/libdwarf # depends on libelf
1.208     mrg       122: SUBDIR+=       ../external/mit/lua/lib # depends on libm
1.158     plunky    123: SUBDIR+=       libcurses       # depends on libterminfo
1.162     haad      124: SUBDIR+=       libdm           # depends on libprop
1.158     plunky    125: SUBDIR+=       libedit         # depends on libterminfo
1.184     matt      126: SUBDIR+=       libexecinfo     # depends on libelf
1.176     dyoung    127: SUBDIR+=       libppath        # depends on libprop
1.175     plunky    128: SUBDIR+=       libperfuse      # depends on libpuffs
1.165     bouyer    129: SUBDIR+=       libquota        # depends on libprop and librpcsvc
1.113     pooka     130: SUBDIR+=       librefuse       # depends on libpuffs
1.207     joerg     131: SUBDIR+=       libisns         # depends on libpthread
1.187     christos  132: .if (${MKRUMP} != "no")
1.253     christos  133: SUBDIR+=       librumphijack   # depends on librumpclient and libpthread
                    134: SUBDIR+=       librumpres      # depends on librumpclient
1.126     pooka     135: SUBDIR+=       librumpuser     # depends on libpthread
1.187     christos  136: .endif
1.126     pooka     137:
1.161     rmind     138: .if (${MKNPF} != "no")
1.261     christos  139: SUBDIR+=       libnpf          # depends on libnv
1.161     rmind     140: .endif
                    141:
1.254     christos  142: SUBDIR+=       ../crypto/external/bsd/${EXTERNAL_OPENSSL_SUBDIR}/lib # depends on libcrypt
1.155     plunky    143: SUBDIR+=       ../external/bsd/file/lib        # depends on libz
                    144:
                    145: .if (${MKISCSI} != "no")
                    146: SUBDIR+=       ../external/bsd/iscsi/lib       # depends on libpthread
                    147: .endif
                    148:
1.224     matt      149: .if (${MKZFS} != "no")
1.257     chs       150: SUBDIR+=        ../external/cddl/osnet/lib/libzfs_core
1.224     matt      151: SUBDIR+=        ../external/cddl/osnet/lib/libzpool
                    152: .endif
                    153:
1.163     matt      154: .if (${MKLVM} != "no")
                    155: SUBDIR+=       ../external/gpl2/lvm2/lib       # depends on libprop
                    156: .endif
                    157:
1.155     plunky    158: .if (${MKBINUTILS} != "no")
1.239     christos  159: SUBDIR+=       ../external/gpl3/${EXTERNAL_BINUTILS_SUBDIR}/lib        # libbfd depends on libz
1.155     plunky    160: .endif
                    161:
1.202     joerg     162: .if (${MKLIBCXX} != "no")
                    163: SUBDIR+=       ../external/bsd/libc++
                    164: .endif
                    165:
1.203     joerg     166: .if (${MKGCC} != "no" && ${MKCXX} != "no" && ${MKLIBSTDCXX} != "no")
1.211     mrg       167: SUBDIR+=       ../external/gpl3/${EXTERNAL_GCC_SUBDIR}/lib/libstdc++-v3
                    168: SUBDIR+=       ../external/gpl3/${EXTERNAL_GCC_SUBDIR}/lib/libsupc++
1.155     plunky    169: .endif
1.222     christos  170:
                    171: #==================== 2nd library dependency barrier ====================
                    172: SUBDIR+=       .WAIT
                    173:
1.258     christos  174: .for sanitizer in asan lsan ubsan
1.245     christos  175: .if exists(../external/gpl3/${EXTERNAL_GCC_SUBDIR}/lib/lib${sanitizer})
                    176: SUBDIR+= ../external/gpl3/${EXTERNAL_GCC_SUBDIR}/lib/lib${sanitizer}
                    177: .endif
                    178: .endfor
1.155     plunky    179:
1.221     mrg       180: SUBDIR+=       ../external/bsd/libarchive/lib  # depends on libxz
                    181:
1.208     mrg       182: .if (${MKNPF} != "no")
                    183: SUBDIR+=       npf             # depends on libnpf
                    184: .endif
                    185:
1.185     christos  186: .if (${MKATF} != "no")
1.186     christos  187: SUBDIR+=       ../external/bsd/atf/lib         # depends on libstdc++
1.185     christos  188: .endif
                    189:
1.198     jmmv      190: .if (${MKKYUA} != "no")
                    191: SUBDIR+=       ../external/bsd/lutok/lib       # depends on lua and libstdc++
                    192: .endif
                    193:
1.158     plunky    194: SUBDIR+=       libform         # depends on libcurses
1.175     plunky    195: SUBDIR+=       libmenu         # depends on libcurses
1.236     kamil     196: SUBDIR+=       libpanel        # depends on libcurses
1.251     riastrad  197: SUBDIR+=       libradius       # depends on libcrypto
1.187     christos  198: .if (${MKRUMP} != "no")
1.175     plunky    199: SUBDIR+=       librump         # depends on librumpuser
1.187     christos  200: .endif
1.158     plunky    201:
1.100     christos  202: .if (${MKKERBEROS} != "no")
1.166     elric     203: SUBDIR+=       ../crypto/external/bsd/heimdal/lib      # depends on libcrypto
                    204:                                                        # libedit, libterminfo,
1.100     christos  205: .endif
                    206:
1.158     plunky    207: SUBDIR+=       ../crypto/external/bsd/openssh/lib # depends on libcrypto, libz
                    208: SUBDIR+=       ../crypto/external/bsd/netpgp/lib  # depends on libcrypto, ...
1.199     christos  209: SUBDIR+=       ../external/bsd/libevent/lib    # depends on libcrypto
1.235     christos  210: .if ${MKDTRACE} != "no"
1.234     christos  211: SUBDIR+=       ../external/bsd/libproc/lib     # depends on libstdc++, libctf
                    212: .endif
1.158     plunky    213: SUBDIR+=       ../external/bsd/fetch/lib       # depends on libssl
                    214:
                    215: .if (${MKLDAP} != "no")
                    216: SUBDIR+=       ../external/bsd/openldap/lib    # depends on libcrypto, ...
                    217: .endif
                    218:
1.257     chs       219: .if (${MKZFS} != "no")
                    220: SUBDIR+=        ../external/cddl/osnet/lib/libzfs
                    221: .endif
                    222:
1.256     sevan     223: SUBDIR+=       ../libexec/httpd/libbozohttpd   # depends on libssl & libcrypto
                    224:
1.124     lukem     225: #==================== 3rd library dependency barrier ====================
                    226: SUBDIR+=       .WAIT
                    227:
1.255     christos  228: SUBDIR+=       ../crypto/external/bsd/netpgp/bindings/lua  # depends on netpgp/lib
1.260     christos  229: SUBDIR+=       ../external/mpl/bind/lib        # depends on heimdal, libcrypto
1.251     riastrad  230: .if ${MKUNBOUND} != "no"
1.246     christos  231: SUBDIR+=       ../external/bsd/unbound/lib     # depends on libcrypto
                    232: .endif
1.204     joerg     233:
1.230     christos  234: .if ${MKDTRACE} != "no"
                    235: SUBDIR+=        ../external/cddl/osnet/lib/libdtrace   # depends on libproc
                    236: .endif
                    237:
1.187     christos  238: .if (${MKRUMP} != "no")
1.143     pooka     239: SUBDIR+=       librumpdev      # depends on librump
1.128     pooka     240: SUBDIR+=       librumpnet      # depends on librump
1.130     pooka     241: SUBDIR+=       librumpvfs      # depends on librump
1.187     christos  242: .endif
1.126     pooka     243:
1.175     plunky    244: .if (${MKPAM} != "no")
                    245: SUBDIR+=       libpam          # depends on heimdal
                    246: .endif
                    247:
                    248: SUBDIR+=       ../crypto/external/bsd/libsaslc # depends on heimdal, openssl
1.181     joerg     249: SUBDIR+=       ../external/bsd/mdocml/lib
                    250:
1.187     christos  251: .if (${MKRUMP} != "no")
1.126     pooka     252: #==================== 4th library dependency barrier ====================
                    253: SUBDIR+=       .WAIT
1.158     plunky    254:
                    255: SUBDIR+=       libukfs         # depends on librumpvfs, librump
1.131     pooka     256:
1.190     christos  257: .if (${MKTPM} != "no")
                    258: SUBDIR+=       ../crypto/external/cpl/trousers/lib
                    259: .endif
                    260:
1.131     pooka     261: #==================== 5th library dependency barrier ====================
                    262: SUBDIR+=       .WAIT
1.158     plunky    263:
                    264: SUBDIR+=       libp2k          # depends on libukfs, librumpvfs, libpuffs
1.188     joerg     265:
1.192     christos  266: .if (${MKTPM} != "no")
                    267: SUBDIR+=       ../crypto/external/cpl/tpm-tools/lib    # depends on trousers
                    268: .endif
                    269:
1.188     joerg     270: .if !defined(BSD_MK_COMPAT_FILE)
                    271: SUBDIR+=       ../sys/rump/dev/lib
                    272: SUBDIR+=       ../sys/rump/fs/lib
                    273: SUBDIR+=       ../sys/rump/kern/lib
                    274: SUBDIR+=       ../sys/rump/net/lib
                    275: .endif
1.187     christos  276: .endif
1.158     plunky    277:
1.178     mbalmer   278: # Lua bindings come last, they might depend on anything
                    279: SUBDIR+=       lua
                    280:
1.210     christos  281: # Needed by rump and rescue which are outside the smbfs tree
                    282: SUBDIR+=       ../external/bsd/smbfs/lib
                    283:
1.251     riastrad  284: .for S in ${SUBDIR}
                    285: .if ${S} != ".WAIT"
                    286: SUBLIB_${S}!=  cd ${S} && ${MAKE} -V LIB
                    287: SUBDEP_${S}!=  cd ${S} && ${MAKE} -V LIBDPLIBS
                    288: .endif
                    289: .endfor
                    290:
                    291: showdeps:
                    292: .for S in ${SUBDIR}
                    293: .if ${S} != ".WAIT"
                    294: .for DL DD in ${SUBDEP_${S}}
                    295:        @echo ${S} ${SUBLIB_${S}} ${DL} ${DD:C,^${.CURDIR}/,,}
                    296: .endfor
                    297: .endif
                    298: .endfor
                    299:
1.195     joerg     300: .include <bsd.buildinstall.mk>
1.1       cgd       301: .include <bsd.subdir.mk>

CVSweb <webmaster@jp.NetBSD.org>