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

Annotation of src/lib/Makefile, Revision 1.251

1.251   ! riastrad    1: #      $NetBSD: Makefile,v 1.250 2017/02/22 02:58:31 maya 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.207     joerg      26:                libintl libipsec libkvm libm \
1.158     plunky     27:                libossaudio libpci libpmc 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.155     plunky     53: .if (${MKMDNS} != "no")
                     54: SUBDIR+=       ../external/apache2/mDNSResponder/lib
                     55: .endif
                     56:
                     57: SUBDIR+=       ../external/bsd/am-utils/lib
                     58:
                     59: SUBDIR+=       ../external/bsd/flex/lib
1.180     christos   60: SUBDIR+=       ../external/bsd/tre/lib
1.212     christos   61: SUBDIR+=       ../external/bsd/elftoolchain/lib/libelf
1.163     matt       62: SUBDIR+=       ../external/bsd/liblzf/lib
1.158     plunky     63: SUBDIR+=       ../external/bsd/libpcap/lib
1.155     plunky     64:
1.214     plunky     65: .if ${MKSLJIT} != "no"
                     66: SUBDIR+=       ../external/bsd/sljit/lib
                     67: SUBDIR+=       libbpfjit
                     68: .endif
                     69:
1.224     matt       70: .if (${MKZFS} != "no")
                     71: SUBDIR+=        ../external/cddl/osnet/lib/libavl
                     72: SUBDIR+=        ../external/cddl/osnet/lib/libnvpair
                     73: SUBDIR+=        ../external/cddl/osnet/lib/libumem
                     74: SUBDIR+=        ../external/cddl/osnet/lib/libuutil
                     75: .endif
                     76:
1.182     tron       77: SUBDIR+=       ../external/mit/expat/lib
1.155     plunky     78:
1.179     joerg      79: SUBDIR+=       ../external/public-domain/sqlite/lib
1.155     plunky     80:
1.238     christos   81: SUBDIR+=       ../external/gpl2/libmalloc
1.155     plunky     82:
                     83: .if (${MKGCC} != "no")
1.211     mrg        84: SUBDIR+=       ../external/gpl3/${EXTERNAL_GCC_SUBDIR}/lib/libobjc
                     85: SUBDIR+=       ../external/gpl3/${EXTERNAL_GCC_SUBDIR}/lib/libgomp
1.173     mrg        86: # Should probably move GMP, MPFR and MPC builds into the GCC >= 4.5
                     87: # specific build area, but we get better parallelism this way.
1.215     mrg        88: # We don't build compat versions of these.
                     89: . if !defined(MLIBDIR)
1.172     matt       90: SUBDIR+=       ../external/lgpl3/gmp/lib/libgmp
1.174     plunky     91: SUBDIR+=       ../external/lgpl3/mpfr/lib/libmpfr
1.209     mrg        92: SUBDIR+=       ../external/lgpl3/mpc/lib/libmpc
1.174     plunky     93: . endif
1.155     plunky     94: .endif
1.144     christos   95:
1.89      lukem      96: #
                     97: # Libraries that depend upon any listed previously
1.93      lukem      98: # (and those that depend upon these [and ...])
1.89      lukem      99: #
1.97      christos  100: #==================== 1st library dependency barrier ====================
                    101: SUBDIR+=       .WAIT
                    102:
1.235     christos  103: .if ${MKDTRACE} != "no"
1.229     christos  104: SUBDIR+=       ../external/bsd/librtld_db/lib          # depends on libutil
1.234     christos  105: .endif
1.229     christos  106:
1.240     riastrad  107: .if ${MKCTF} != "no"
1.227     christos  108: SUBDIR+=        ../external/cddl/osnet/lib/libctf
                    109: .endif
                    110:
1.221     mrg       111: SUBDIR+=       ../external/public-domain/xz/lib        # depends on libpthread
1.208     mrg       112: SUBDIR+=       ../crypto/external/bsd/netpgp/libmj
                    113: SUBDIR+=       ../crypto/external/bsd/netpgp/lib/verify # depends on libz
1.237     christos  114: SUBDIR+=       ../external/bsd/blacklist/lib           # depends on libpthread
1.212     christos  115: SUBDIR+=       ../external/bsd/elftoolchain/lib/libdwarf # depends on libelf
1.208     mrg       116: SUBDIR+=       ../external/mit/lua/lib # depends on libm
1.158     plunky    117: SUBDIR+=       libcurses       # depends on libterminfo
1.162     haad      118: SUBDIR+=       libdm           # depends on libprop
1.158     plunky    119: SUBDIR+=       libedit         # depends on libterminfo
1.184     matt      120: SUBDIR+=       libexecinfo     # depends on libelf
1.176     dyoung    121: SUBDIR+=       libppath        # depends on libprop
1.175     plunky    122: SUBDIR+=       libperfuse      # depends on libpuffs
1.165     bouyer    123: SUBDIR+=       libquota        # depends on libprop and librpcsvc
1.113     pooka     124: SUBDIR+=       librefuse       # depends on libpuffs
1.207     joerg     125: SUBDIR+=       libisns         # depends on libpthread
1.187     christos  126: .if (${MKRUMP} != "no")
1.126     pooka     127: SUBDIR+=       librumpuser     # depends on libpthread
1.175     plunky    128: SUBDIR+=       librumphijack   # depends on librumpclient and libpthread
1.187     christos  129: .endif
1.126     pooka     130:
1.161     rmind     131: .if (${MKNPF} != "no")
                    132: SUBDIR+=       libnpf          # depends on libprop
                    133: .endif
                    134:
1.158     plunky    135: SUBDIR+=       ../crypto/external/bsd/openssl/lib # depends on libcrypt
1.155     plunky    136: SUBDIR+=       ../external/bsd/file/lib        # depends on libz
                    137:
                    138: .if (${MKISCSI} != "no")
                    139: SUBDIR+=       ../external/bsd/iscsi/lib       # depends on libpthread
                    140: .endif
                    141:
1.224     matt      142: .if (${MKZFS} != "no")
                    143: SUBDIR+=        ../external/cddl/osnet/lib/libzfs
                    144: SUBDIR+=        ../external/cddl/osnet/lib/libzpool
                    145: .endif
                    146:
1.163     matt      147: .if (${MKLVM} != "no")
                    148: SUBDIR+=       ../external/gpl2/lvm2/lib       # depends on libprop
                    149: .endif
                    150:
1.155     plunky    151: .if (${MKBINUTILS} != "no")
1.239     christos  152: SUBDIR+=       ../external/gpl3/${EXTERNAL_BINUTILS_SUBDIR}/lib        # libbfd depends on libz
1.155     plunky    153: .endif
                    154:
1.202     joerg     155: .if (${MKLIBCXX} != "no")
                    156: SUBDIR+=       ../external/bsd/libc++
                    157: .endif
                    158:
1.203     joerg     159: .if (${MKGCC} != "no" && ${MKCXX} != "no" && ${MKLIBSTDCXX} != "no")
1.211     mrg       160: SUBDIR+=       ../external/gpl3/${EXTERNAL_GCC_SUBDIR}/lib/libstdc++-v3
                    161: SUBDIR+=       ../external/gpl3/${EXTERNAL_GCC_SUBDIR}/lib/libsupc++
1.155     plunky    162: .endif
1.222     christos  163:
                    164: #==================== 2nd library dependency barrier ====================
                    165: SUBDIR+=       .WAIT
                    166:
1.245     christos  167: .for sanitizer in asan ubsan
                    168: .if exists(../external/gpl3/${EXTERNAL_GCC_SUBDIR}/lib/lib${sanitizer})
                    169: SUBDIR+= ../external/gpl3/${EXTERNAL_GCC_SUBDIR}/lib/lib${sanitizer}
                    170: .endif
                    171: .endfor
1.155     plunky    172:
1.221     mrg       173: SUBDIR+=       ../external/bsd/libarchive/lib  # depends on libxz
                    174:
1.208     mrg       175: .if (${MKNPF} != "no")
                    176: SUBDIR+=       npf             # depends on libnpf
                    177: .endif
                    178:
1.185     christos  179: .if (${MKATF} != "no")
1.186     christos  180: SUBDIR+=       ../external/bsd/atf/lib         # depends on libstdc++
1.185     christos  181: .endif
                    182:
1.198     jmmv      183: .if (${MKKYUA} != "no")
                    184: SUBDIR+=       ../external/bsd/lutok/lib       # depends on lua and libstdc++
                    185: .endif
                    186:
1.158     plunky    187: SUBDIR+=       libform         # depends on libcurses
1.175     plunky    188: SUBDIR+=       libmenu         # depends on libcurses
1.236     kamil     189: SUBDIR+=       libpanel        # depends on libcurses
1.251   ! riastrad  190: SUBDIR+=       libradius       # depends on libcrypto
1.187     christos  191: .if (${MKRUMP} != "no")
1.175     plunky    192: SUBDIR+=       librump         # depends on librumpuser
1.187     christos  193: .endif
1.158     plunky    194:
1.100     christos  195: .if (${MKKERBEROS} != "no")
1.166     elric     196: SUBDIR+=       ../crypto/external/bsd/heimdal/lib      # depends on libcrypto
                    197:                                                        # libedit, libterminfo,
1.100     christos  198: .endif
                    199:
1.158     plunky    200: SUBDIR+=       ../crypto/external/bsd/openssh/lib # depends on libcrypto, libz
                    201: SUBDIR+=       ../crypto/external/bsd/netpgp/lib  # depends on libcrypto, ...
1.199     christos  202: SUBDIR+=       ../external/bsd/libevent/lib    # depends on libcrypto
1.235     christos  203: .if ${MKDTRACE} != "no"
1.234     christos  204: SUBDIR+=       ../external/bsd/libproc/lib     # depends on libstdc++, libctf
                    205: .endif
1.158     plunky    206: SUBDIR+=       ../external/bsd/fetch/lib       # depends on libssl
                    207:
                    208: .if (${MKLDAP} != "no")
                    209: SUBDIR+=       ../external/bsd/openldap/lib    # depends on libcrypto, ...
                    210: .endif
                    211:
1.124     lukem     212: #==================== 3rd library dependency barrier ====================
                    213: SUBDIR+=       .WAIT
                    214:
1.204     joerg     215: SUBDIR+=       ../external/bsd/bind/lib        # depends on heimdal, libcrypto
1.251   ! riastrad  216: .if ${MKUNBOUND} != "no"
1.246     christos  217: SUBDIR+=       ../external/bsd/unbound/lib     # depends on libcrypto
                    218: .endif
1.204     joerg     219:
1.230     christos  220: .if ${MKDTRACE} != "no"
                    221: SUBDIR+=        ../external/cddl/osnet/lib/libdtrace   # depends on libproc
                    222: .endif
                    223:
1.187     christos  224: .if (${MKRUMP} != "no")
1.143     pooka     225: SUBDIR+=       librumpdev      # depends on librump
1.128     pooka     226: SUBDIR+=       librumpnet      # depends on librump
1.130     pooka     227: SUBDIR+=       librumpvfs      # depends on librump
1.187     christos  228: .endif
1.126     pooka     229:
1.175     plunky    230: .if (${MKPAM} != "no")
                    231: SUBDIR+=       libpam          # depends on heimdal
                    232: .endif
                    233:
                    234: SUBDIR+=       ../crypto/external/bsd/libsaslc # depends on heimdal, openssl
1.181     joerg     235: SUBDIR+=       ../external/bsd/mdocml/lib
                    236:
1.187     christos  237: .if (${MKRUMP} != "no")
1.126     pooka     238: #==================== 4th library dependency barrier ====================
                    239: SUBDIR+=       .WAIT
1.158     plunky    240:
                    241: SUBDIR+=       libukfs         # depends on librumpvfs, librump
1.131     pooka     242:
1.190     christos  243: .if (${MKTPM} != "no")
                    244: SUBDIR+=       ../crypto/external/cpl/trousers/lib
                    245: .endif
                    246:
1.131     pooka     247: #==================== 5th library dependency barrier ====================
                    248: SUBDIR+=       .WAIT
1.158     plunky    249:
                    250: SUBDIR+=       libp2k          # depends on libukfs, librumpvfs, libpuffs
1.188     joerg     251:
1.192     christos  252: .if (${MKTPM} != "no")
                    253: SUBDIR+=       ../crypto/external/cpl/tpm-tools/lib    # depends on trousers
                    254: .endif
                    255:
1.188     joerg     256: .if !defined(BSD_MK_COMPAT_FILE)
                    257: SUBDIR+=       ../sys/rump/dev/lib
                    258: SUBDIR+=       ../sys/rump/fs/lib
                    259: SUBDIR+=       ../sys/rump/kern/lib
                    260: SUBDIR+=       ../sys/rump/net/lib
                    261: .endif
1.187     christos  262: .endif
1.158     plunky    263:
1.178     mbalmer   264: # Lua bindings come last, they might depend on anything
                    265: SUBDIR+=       lua
                    266:
1.210     christos  267: # Needed by rump and rescue which are outside the smbfs tree
                    268: SUBDIR+=       ../external/bsd/smbfs/lib
                    269:
1.251   ! riastrad  270: .for S in ${SUBDIR}
        !           271: .if ${S} != ".WAIT"
        !           272: SUBLIB_${S}!=  cd ${S} && ${MAKE} -V LIB
        !           273: SUBDEP_${S}!=  cd ${S} && ${MAKE} -V LIBDPLIBS
        !           274: .endif
        !           275: .endfor
        !           276:
        !           277: showdeps:
        !           278: .for S in ${SUBDIR}
        !           279: .if ${S} != ".WAIT"
        !           280: .for DL DD in ${SUBDEP_${S}}
        !           281:        @echo ${S} ${SUBLIB_${S}} ${DL} ${DD:C,^${.CURDIR}/,,}
        !           282: .endfor
        !           283: .endif
        !           284: .endfor
        !           285:
1.195     joerg     286: .include <bsd.buildinstall.mk>
1.1       cgd       287: .include <bsd.subdir.mk>

CVSweb <webmaster@jp.NetBSD.org>