[BACK]Return to bsd.own.mk CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / share / mk

Annotation of src/share/mk/bsd.own.mk, Revision 1.675

1.675   ! tsutsui     1: #      $NetBSD: bsd.own.mk,v 1.674 2011/07/10 04:36:13 tsutsui Exp $
1.611     mrg         2:
                      3: # This needs to be before bsd.init.mk
                      4: .if defined(BSD_MK_COMPAT_FILE)
                      5: .include <${BSD_MK_COMPAT_FILE}>
                      6: .endif
1.64      lukem       7:
                      8: .if !defined(_BSD_OWN_MK_)
                      9: _BSD_OWN_MK_=1
1.24      thorpej    10:
1.169     tv         11: MAKECONF?=     /etc/mk.conf
1.205     tv         12: .-include "${MAKECONF}"
1.13      mycroft    13:
1.341     lukem      14: #
1.310     thorpej    15: # CPU model, derived from MACHINE_ARCH
1.341     lukem      16: #
1.624     mrg        17: MACHINE_CPU=   ${MACHINE_ARCH:C/mipse[bl]/mips/:C/mips64e[bl]/mips/:C/sh3e[bl]/sh3/:S/m68000/m68k/:S/armeb/arm/:S/powerpc64/powerpc/}
1.310     thorpej    18:
1.341     lukem      19: #
1.418     cl         20: # Subdirectory used below ${RELEASEDIR} when building a release
                     21: #
                     22: RELEASEMACHINEDIR?=    ${MACHINE}
                     23:
                     24: #
                     25: # Subdirectory or path component used for the following paths:
                     26: #   distrib/${RELEASEMACHINE}
                     27: #   distrib/notes/${RELEASEMACHINE}
                     28: #   etc/etc.${RELEASEMACHINE}
                     29: # Used when building a release.
                     30: #
                     31: RELEASEMACHINE?=       ${MACHINE}
                     32:
                     33: #
1.209     tv         34: # NEED_OWN_INSTALL_TARGET is set to "no" by pkgsrc/mk/bsd.pkg.mk to
                     35: # ensure that things defined by <bsd.own.mk> (default targets,
                     36: # INSTALL_FILE, etc.) are not conflicting with bsd.pkg.mk.
1.341     lukem      37: #
1.209     tv         38: NEED_OWN_INSTALL_TARGET?=      yes
                     39:
1.341     lukem      40: #
1.644     skrll      41: # This lists the platforms which do not have working in-tree toolchains.  For
                     42: # the in-tree gcc toolchain, this list is empty.
                     43: #
                     44: # If some future port is not supported by the in-tree toolchain, this should
                     45: # be set to "yes" for that port only.
1.341     lukem      46: #
1.448     mrg        47: TOOLCHAIN_MISSING?=    no
1.221     thorpej    48:
1.671     mrg        49: # default to GCC4.1
1.666     adam       50: .if !defined(HAVE_GCC) && !defined(HAVE_PCC)
1.519     gmcgarry   51: HAVE_GCC=      4
                     52: .endif
1.395     mrg        53:
1.643     skrll      54: .if \
                     55:     ${MACHINE_ARCH} == "i386" || \
1.673     matt       56:     ${MACHINE_ARCH} == "powerpc" || \
1.643     skrll      57:     ${MACHINE_ARCH} == "x86_64"
                     58: USE_COMPILERCRTSTUFF?= no
                     59: .endif
                     60: USE_COMPILERCRTSTUFF?= yes
                     61:
1.493     chs        62: # default to GDB6
1.476     christos   63: HAVE_GDB?=     6
1.456     christos   64:
1.594     skrll      65: # default to binutils 2.19
1.573     skrll      66: HAVE_BINUTILS?=        219
1.568     skrll      67:
1.222     perry      68: .if empty(.MAKEFLAGS:M-V*)
1.489     dsl        69: .if defined(MAKEOBJDIRPREFIX) || defined(MAKEOBJDIR)
                     70: PRINTOBJDIR=   ${MAKE} -r -V .OBJDIR -f /dev/null xxx
                     71: .else
1.488     drochner   72: PRINTOBJDIR=   ${MAKE} -V .OBJDIR
1.489     dsl        73: .endif
1.222     perry      74: .else
                     75: PRINTOBJDIR=   echo # prevent infinite recursion
                     76: .endif
                     77:
1.341     lukem      78: #
1.286     lukem      79: # Determine if running in the NetBSD source tree by checking for the
                     80: # existence of build.sh and tools/ in the current or a parent directory,
                     81: # and setting _SRC_TOP_ to the result.
                     82: #
1.287     lukem      83: .if !defined(_SRC_TOP_)                        # {
1.615     christos   84: _SRC_TOP_!= cd "${.CURDIR}"; while :; do \
1.200     jmc        85:                here=`pwd`; \
1.199     jmc        86:                [ -f build.sh  ] && [ -d tools ] && { echo $$here; break; }; \
                     87:                case $$here in /) echo ""; break;; esac; \
1.341     lukem      88:                cd ..; done
1.199     jmc        89:
                     90: .MAKEOVERRIDES+=       _SRC_TOP_
                     91:
1.287     lukem      92: .endif                                 # }
1.222     perry      93:
1.341     lukem      94: #
1.322     lukem      95: # If _SRC_TOP_ != "", we're within the NetBSD source tree, so set
1.288     lukem      96: # defaults for NETBSDSRCDIR and _SRC_TOP_OBJ_.
1.287     lukem      97: #
                     98: .if (${_SRC_TOP_} != "")               # {
                     99:
1.288     lukem     100: NETBSDSRCDIR?= ${_SRC_TOP_}
1.180     tv        101:
1.287     lukem     102: .if !defined(_SRC_TOP_OBJ_)
1.615     christos  103: _SRC_TOP_OBJ_!=                cd "${_SRC_TOP_}" && ${PRINTOBJDIR}
1.287     lukem     104: .MAKEOVERRIDES+=       _SRC_TOP_OBJ_
1.286     lukem     105: .endif
                    106:
1.322     lukem     107: .endif # _SRC_TOP_ != ""               # }
1.286     lukem     108:
                    109:
1.310     thorpej   110: .if (${_SRC_TOP_} != "") && \
1.406     lukem     111:     (${TOOLCHAIN_MISSING} == "no" || defined(EXTERNAL_TOOLCHAIN))
1.287     lukem     112: USETOOLS?=     yes
1.286     lukem     113: .endif
1.287     lukem     114: USETOOLS?=     no
                    115:
1.286     lukem     116:
1.468     matt      117: .if ${MACHINE_ARCH} == "mips" || ${MACHINE_ARCH} == "mips64" || \
1.495     scw       118:     ${MACHINE_ARCH} == "sh3"
1.180     tv        119: .BEGIN:
                    120:        @echo "Must set MACHINE_ARCH to one of ${MACHINE_ARCH}eb or ${MACHINE_ARCH}el"
                    121:        @false
1.310     thorpej   122: .elif defined(REQUIRETOOLS) && \
1.406     lukem     123:       (${TOOLCHAIN_MISSING} == "no" || defined(EXTERNAL_TOOLCHAIN)) && \
1.310     thorpej   124:       ${USETOOLS} == "no"
1.180     tv        125: .BEGIN:
1.203     tv        126:        @echo "USETOOLS=no, but this component requires a version-specific host toolchain"
1.180     tv        127:        @false
                    128: .endif
                    129:
1.341     lukem     130: #
1.204     tv        131: # Host platform information; may be overridden
1.341     lukem     132: #
1.204     tv        133: .if !defined(HOST_OSTYPE)
                    134: _HOST_OSNAME!= uname -s
                    135: _HOST_OSREL!=  uname -r
1.558     apb       136: # For _HOST_ARCH, if uname -p fails, or prints "unknown", or prints
                    137: # something that does not look like an identifier, then use uname -m.
                    138: _HOST_ARCH!=   uname -p 2>/dev/null
1.559     apb       139: _HOST_ARCH:=   ${HOST_ARCH:tW:C/.*[^-_A-Za-z0-9].*//:S/unknown//}
1.558     apb       140: .if empty(_HOST_ARCH)
                    141: _HOST_ARCH!=   uname -m
                    142: .endif
1.421     jmc       143: HOST_OSTYPE:=  ${_HOST_OSNAME}-${_HOST_OSREL:C/\([^\)]*\)//g:[*]:C/ /_/g}-${_HOST_ARCH:C/\([^\)]*\)//g:[*]:C/ /_/g}
1.204     tv        144: .MAKEOVERRIDES+= HOST_OSTYPE
1.558     apb       145: .endif # !defined(HOST_OSTYPE)
1.204     tv        146:
1.275     lukem     147: .if ${USETOOLS} == "yes"                                               # {
                    148:
1.341     lukem     149: #
1.204     tv        150: # Provide a default for TOOLDIR.
1.341     lukem     151: #
1.199     jmc       152: .if !defined(TOOLDIR)
1.339     lukem     153: TOOLDIR:=      ${_SRC_TOP_OBJ_}/tooldir.${HOST_OSTYPE}
1.204     tv        154: .MAKEOVERRIDES+= TOOLDIR
1.199     jmc       155: .endif
1.180     tv        156:
1.341     lukem     157: #
1.320     thorpej   158: # This is the prefix used for the NetBSD-sourced tools.
1.341     lukem     159: #
1.320     thorpej   160: _TOOL_PREFIX?= nb
                    161:
1.341     lukem     162: #
1.318     thorpej   163: # If an external toolchain base is specified, use it.
1.341     lukem     164: #
                    165: .if defined(EXTERNAL_TOOLCHAIN)                                                # {
1.318     thorpej   166: AR=            ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-ar
                    167: AS=            ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-as
                    168: LD=            ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-ld
                    169: NM=            ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-nm
                    170: OBJCOPY=       ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-objcopy
                    171: OBJDUMP=       ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-objdump
                    172: RANLIB=                ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-ranlib
                    173: SIZE=          ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-size
                    174: STRIP=         ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-strip
                    175:
1.667     joerg     176: TOOL_CC.gcc=           ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-gcc
                    177: TOOL_CPP.gcc=          ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-cpp
                    178: TOOL_CXX.gcc=          ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-c++
                    179: TOOL_FC.gcc=           ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-g77
                    180: TOOL_OBJC.gcc=         ${EXTERNAL_TOOLCHAIN}/bin/${MACHINE_GNU_PLATFORM}-gcc
1.341     lukem     181: .else                                                                  # } {
1.204     tv        182: # Define default locations for common tools.
1.341     lukem     183: .if ${USETOOLS_BINUTILS:Uyes} == "yes"                                 #  {
1.232     tv        184: AR=            ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-ar
                    185: AS=            ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-as
1.234     thorpej   186: LD=            ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-ld
                    187: NM=            ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-nm
                    188: OBJCOPY=       ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-objcopy
                    189: OBJDUMP=       ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-objdump
                    190: RANLIB=                ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-ranlib
                    191: SIZE=          ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-size
                    192: STRIP=         ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-strip
                    193:
1.667     joerg     194: # GCC supports C, C++, Fortran and Objective C
                    195: TOOL_CC.gcc=           ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-gcc
                    196: TOOL_CPP.gcc=          ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-cpp
                    197: TOOL_CXX.gcc=          ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-c++
                    198: TOOL_FC.gcc=           ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-g77
                    199: TOOL_OBJC.gcc=         ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-gcc
1.341     lukem     200: .endif                                                                 #  }
1.519     gmcgarry  201:
1.667     joerg     202: # Clang supports C, C++ and Objective C
                    203: TOOL_CC.clang=         ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-clang
                    204: TOOL_CPP.clang=                ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-clang-cpp
                    205: TOOL_CXX.clang=                ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-clang++
                    206: TOOL_OBJC.clang=       ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-clang
                    207:
                    208: # PCC supports C and Fortran
                    209: TOOL_CC.pcc=           ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-pcc
                    210: TOOL_CPP.pcc=          ${TOOLDIR}/libexec/${MACHINE_GNU_PLATFORM}-cpp
1.519     gmcgarry  211:
1.662     joerg     212: #
                    213: # Make sure DESTDIR is set, so that builds with these tools always
                    214: # get appropriate -nostdinc, -nostdlib, etc. handling.  The default is
                    215: # <empty string>, meaning start from /, the root directory.
                    216: #
                    217: DESTDIR?=
                    218:
                    219: .if !defined(HOSTPROG) && !defined(HOSTLIB)
                    220: .  if ${DESTDIR} != ""
1.659     mrg       221: CPPFLAGS+=     --sysroot=${DESTDIR}
1.657     christos  222: LDFLAGS+=      --sysroot=${DESTDIR}
1.662     joerg     223: .  else
1.661     christos  224: CPPFLAGS+=     --sysroot=/
                    225: LDFLAGS+=      --sysroot=/
1.662     joerg     226: .  endif
1.657     christos  227: .endif
1.341     lukem     228: .endif # EXTERNAL_TOOLCHAIN                                            # }
1.234     thorpej   229:
1.338     lukem     230: HOST_MKDEP=    ${TOOLDIR}/bin/${_TOOL_PREFIX}host-mkdep
                    231:
1.210     thorpej   232: DBSYM=         ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-dbsym
1.675   ! tsutsui   233: ELF2AOUT=      ${TOOLDIR}/bin/${_TOOL_PREFIX}m68k-elf2aout
1.320     thorpej   234: ELF2ECOFF=     ${TOOLDIR}/bin/${_TOOL_PREFIX}mips-elf2ecoff
1.496     joerg     235: INSTALL=       ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-install
1.320     thorpej   236: LEX=           ${TOOLDIR}/bin/${_TOOL_PREFIX}lex
1.215     tv        237: LINT=          CC=${CC:Q} ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-lint
1.338     lukem     238: LORDER=                NM=${NM:Q} MKTEMP=${TOOL_MKTEMP:Q} ${TOOLDIR}/bin/${_TOOL_PREFIX}lorder
1.320     thorpej   239: MKDEP=         CC=${CC:Q} ${TOOLDIR}/bin/${_TOOL_PREFIX}mkdep
1.483     christos  240: PAXCTL=                ${TOOLDIR}/bin/${_TOOL_PREFIX}paxctl
1.320     thorpej   241: TSORT=         ${TOOLDIR}/bin/${_TOOL_PREFIX}tsort -q
                    242: YACC=          ${TOOLDIR}/bin/${_TOOL_PREFIX}yacc
1.338     lukem     243:
1.426     jmc       244: TOOL_AMIGAAOUT2BB=     ${TOOLDIR}/bin/${_TOOL_PREFIX}amiga-aout2bb
                    245: TOOL_AMIGAELF2BB=      ${TOOLDIR}/bin/${_TOOL_PREFIX}amiga-elf2bb
                    246: TOOL_AMIGATXLT=                ${TOOLDIR}/bin/${_TOOL_PREFIX}amiga-txlt
1.338     lukem     247: TOOL_ASN1_COMPILE=     ${TOOLDIR}/bin/${_TOOL_PREFIX}asn1_compile
1.535     apb       248: TOOL_AWK=              ${TOOLDIR}/bin/${_TOOL_PREFIX}awk
1.338     lukem     249: TOOL_CAP_MKDB=         ${TOOLDIR}/bin/${_TOOL_PREFIX}cap_mkdb
                    250: TOOL_CAT=              ${TOOLDIR}/bin/${_TOOL_PREFIX}cat
                    251: TOOL_CKSUM=            ${TOOLDIR}/bin/${_TOOL_PREFIX}cksum
                    252: TOOL_COMPILE_ET=       ${TOOLDIR}/bin/${_TOOL_PREFIX}compile_et
                    253: TOOL_CONFIG=           ${TOOLDIR}/bin/${_TOOL_PREFIX}config
                    254: TOOL_CRUNCHGEN=                MAKE=${.MAKE:Q} ${TOOLDIR}/bin/${_TOOL_PREFIX}crunchgen
                    255: TOOL_CTAGS=            ${TOOLDIR}/bin/${_TOOL_PREFIX}ctags
1.620     darran    256: TOOL_CTFCONVERT=       ${TOOLDIR}/bin/${_TOOL_PREFIX}ctfconvert
                    257: TOOL_CTFMERGE=         ${TOOLDIR}/bin/${_TOOL_PREFIX}ctfmerge
1.338     lukem     258: TOOL_DB=               ${TOOLDIR}/bin/${_TOOL_PREFIX}db
1.532     apb       259: TOOL_DISKLABEL=                ${TOOLDIR}/bin/nbdisklabel-${MAKEWRAPPERMACHINE}
1.338     lukem     260: TOOL_EQN=              ${TOOLDIR}/bin/${_TOOL_PREFIX}eqn
1.532     apb       261: TOOL_FDISK=            ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-fdisk
1.338     lukem     262: TOOL_FGEN=             ${TOOLDIR}/bin/${_TOOL_PREFIX}fgen
1.439     thorpej   263: TOOL_GENASSYM=         ${TOOLDIR}/bin/${_TOOL_PREFIX}genassym
1.338     lukem     264: TOOL_GENCAT=           ${TOOLDIR}/bin/${_TOOL_PREFIX}gencat
1.446     jmc       265: TOOL_GMAKE=            ${TOOLDIR}/bin/${_TOOL_PREFIX}gmake
1.557     sketch    266: TOOL_GREP=             ${TOOLDIR}/bin/${_TOOL_PREFIX}grep
1.338     lukem     267: TOOL_GROFF=            PATH=${TOOLDIR}/lib/groff:$${PATH} ${TOOLDIR}/bin/${_TOOL_PREFIX}groff
                    268: TOOL_HEXDUMP=          ${TOOLDIR}/bin/${_TOOL_PREFIX}hexdump
1.427     jmc       269: TOOL_HP300MKBOOT=      ${TOOLDIR}/bin/${_TOOL_PREFIX}hp300-mkboot
1.510     skrll     270: TOOL_HP700MKBOOT=      ${TOOLDIR}/bin/${_TOOL_PREFIX}hp700-mkboot
1.338     lukem     271: TOOL_INDXBIB=          ${TOOLDIR}/bin/${_TOOL_PREFIX}indxbib
                    272: TOOL_INSTALLBOOT=      ${TOOLDIR}/bin/${_TOOL_PREFIX}installboot
                    273: TOOL_INSTALL_INFO=     ${TOOLDIR}/bin/${_TOOL_PREFIX}install-info
1.492     apb       274: TOOL_JOIN=             ${TOOLDIR}/bin/${_TOOL_PREFIX}join
1.338     lukem     275: TOOL_M4=               ${TOOLDIR}/bin/${_TOOL_PREFIX}m4
1.405     matt      276: TOOL_MACPPCFIXCOFF=    ${TOOLDIR}/bin/${_TOOL_PREFIX}macppc-fixcoff
1.338     lukem     277: TOOL_MAKEFS=           ${TOOLDIR}/bin/${_TOOL_PREFIX}makefs
                    278: TOOL_MAKEINFO=         ${TOOLDIR}/bin/${_TOOL_PREFIX}makeinfo
                    279: TOOL_MAKEWHATIS=       ${TOOLDIR}/bin/${_TOOL_PREFIX}makewhatis
1.588     joerg     280: TOOL_MANDOC_ASCII=     ${TOOLDIR}/bin/${_TOOL_PREFIX}mandoc -Tascii
1.653     njoly     281: TOOL_MANDOC_HTML=      ${TOOLDIR}/bin/${_TOOL_PREFIX}mandoc -Thtml
1.588     joerg     282: TOOL_MANDOC_LINT=      ${TOOLDIR}/bin/${_TOOL_PREFIX}mandoc -Tlint
1.338     lukem     283: TOOL_MDSETIMAGE=       ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-mdsetimage
                    284: TOOL_MENUC=            MENUDEF=${TOOLDIR}/share/misc ${TOOLDIR}/bin/${_TOOL_PREFIX}menuc
1.675   ! tsutsui   285: TOOL_M68KELF2AOUT=     ${TOOLDIR}/bin/${_TOOL_PREFIX}m68k-elf2aout
1.425     jmc       286: TOOL_MIPSELF2ECOFF=    ${TOOLDIR}/bin/${_TOOL_PREFIX}mips-elf2ecoff
1.338     lukem     287: TOOL_MKCSMAPPER=       ${TOOLDIR}/bin/${_TOOL_PREFIX}mkcsmapper
                    288: TOOL_MKESDB=           ${TOOLDIR}/bin/${_TOOL_PREFIX}mkesdb
                    289: TOOL_MKLOCALE=         ${TOOLDIR}/bin/${_TOOL_PREFIX}mklocale
                    290: TOOL_MKMAGIC=          ${TOOLDIR}/bin/${_TOOL_PREFIX}file
                    291: TOOL_MKTEMP=           ${TOOLDIR}/bin/${_TOOL_PREFIX}mktemp
1.650     matt      292: TOOL_MKUBOOTIMAGE=     ${TOOLDIR}/bin/${_TOOL_PREFIX}mkubootimage
1.338     lukem     293: TOOL_MSGC=             MSGDEF=${TOOLDIR}/share/misc ${TOOLDIR}/bin/${_TOOL_PREFIX}msgc
                    294: TOOL_MTREE=            ${TOOLDIR}/bin/${_TOOL_PREFIX}mtree
1.616     roy       295: TOOL_NBPERF=           ${TOOLDIR}/bin/${_TOOL_PREFIX}nbperf
1.338     lukem     296: TOOL_PAX=              ${TOOLDIR}/bin/${_TOOL_PREFIX}pax
                    297: TOOL_PIC=              ${TOOLDIR}/bin/${_TOOL_PREFIX}pic
1.632     mrg       298: TOOL_PIGZ=             ${TOOLDIR}/bin/${_TOOL_PREFIX}pigz
1.599     uebayasi  299: TOOL_PKG_CREATE=       ${TOOLDIR}/bin/${_TOOL_PREFIX}pkg_create
1.506     garbled   300: TOOL_POWERPCMKBOOTIMAGE=${TOOLDIR}/bin/${_TOOL_PREFIX}powerpc-mkbootimage
1.338     lukem     301: TOOL_PWD_MKDB=         ${TOOLDIR}/bin/${_TOOL_PREFIX}pwd_mkdb
                    302: TOOL_REFER=            ${TOOLDIR}/bin/${_TOOL_PREFIX}refer
                    303: TOOL_ROFF_ASCII=       PATH=${TOOLDIR}/lib/groff:$${PATH} ${TOOLDIR}/bin/${_TOOL_PREFIX}nroff
                    304: TOOL_ROFF_DVI=         ${TOOL_GROFF} -Tdvi
1.340     lukem     305: TOOL_ROFF_HTML=                ${TOOL_GROFF} -Tlatin1 -mdoc2html
1.338     lukem     306: TOOL_ROFF_PS=          ${TOOL_GROFF} -Tps
                    307: TOOL_ROFF_RAW=         ${TOOL_GROFF} -Z
1.501     nakayama  308: TOOL_RPCGEN=           RPCGEN_CPP=${CPP:Q} ${TOOLDIR}/bin/${_TOOL_PREFIX}rpcgen
1.454     gdamore   309: TOOL_SED=              ${TOOLDIR}/bin/${_TOOL_PREFIX}sed
1.656     elric     310: TOOL_SLC=              ${TOOLDIR}/bin/${_TOOL_PREFIX}slc
1.338     lukem     311: TOOL_SOELIM=           ${TOOLDIR}/bin/${_TOOL_PREFIX}soelim
1.532     apb       312: TOOL_SPARKCRC=         ${TOOLDIR}/bin/${_TOOL_PREFIX}sparkcrc
1.342     lukem     313: TOOL_STAT=             ${TOOLDIR}/bin/${_TOOL_PREFIX}stat
1.530     apb       314: TOOL_STRFILE=          ${TOOLDIR}/bin/${_TOOL_PREFIX}strfile
1.338     lukem     315: TOOL_SUNLABEL=         ${TOOLDIR}/bin/${_TOOL_PREFIX}sunlabel
                    316: TOOL_TBL=              ${TOOLDIR}/bin/${_TOOL_PREFIX}tbl
1.651     joerg     317: TOOL_TBLGEN=           ${TOOLDIR}/bin/${_TOOL_PREFIX}tblgen
1.616     roy       318: TOOL_TIC=              ${TOOLDIR}/bin/${_TOOL_PREFIX}tic
1.338     lukem     319: TOOL_UUDECODE=         ${TOOLDIR}/bin/${_TOOL_PREFIX}uudecode
                    320: TOOL_VGRIND=           ${TOOLDIR}/bin/${_TOOL_PREFIX}vgrind -f
                    321: TOOL_ZIC=              ${TOOLDIR}/bin/${_TOOL_PREFIX}zic
1.180     tv        322:
1.538     apb       323: .else  # USETOOLS != yes                                               # } {
                    324:
1.667     joerg     325: # Clang supports C, C++ and Objective C
                    326: TOOL_CC.clang=         clang
                    327: TOOL_CPP.clang=                clang-cpp
                    328: TOOL_CXX.clang=                clang++
                    329: TOOL_OBJC.clang=       clang
                    330:
                    331: # GCC supports C, C++, Fortran and Objective C
                    332: TOOL_CC.gcc=   gcc
                    333: TOOL_CPP.gcc=  cpp
                    334: TOOL_CXX.gcc=  c++
                    335: TOOL_FC.gcc=   g77
                    336: TOOL_OBJC.gcc= gcc
                    337:
                    338: # PCC supports C and Fortran
                    339: TOOL_CC.pcc=           pcc
                    340: TOOL_CPP.pcc=          /usr/libexec/pcpp
                    341:
1.538     apb       342: TOOL_AMIGAAOUT2BB=     amiga-aout2bb
                    343: TOOL_AMIGAELF2BB=      amiga-elf2bb
                    344: TOOL_AMIGATXLT=                amiga-txlt
                    345: TOOL_ASN1_COMPILE=     asn1_compile
                    346: TOOL_AWK=              awk
                    347: TOOL_CAP_MKDB=         cap_mkdb
                    348: TOOL_CAT=              cat
                    349: TOOL_CKSUM=            cksum
                    350: TOOL_COMPILE_ET=       compile_et
                    351: TOOL_CONFIG=           config
                    352: TOOL_CRUNCHGEN=                crunchgen
                    353: TOOL_CTAGS=            ctags
1.620     darran    354: TOOL_CTFCONVERT=       ctfconvert
                    355: TOOL_CTFMERGE=         ctfmerge
1.538     apb       356: TOOL_DB=               db
                    357: TOOL_DISKLABEL=                disklabel
                    358: TOOL_EQN=              eqn
                    359: TOOL_FDISK=            fdisk
                    360: TOOL_FGEN=             fgen
                    361: TOOL_GENASSYM=         genassym
                    362: TOOL_GENCAT=           gencat
                    363: TOOL_GMAKE=            gmake
1.557     sketch    364: TOOL_GREP=             grep
1.538     apb       365: TOOL_GROFF=            groff
                    366: TOOL_HEXDUMP=          hexdump
                    367: TOOL_HP300MKBOOT=      hp300-mkboot
                    368: TOOL_HP700MKBOOT=      hp700-mkboot
                    369: TOOL_INDXBIB=          indxbib
                    370: TOOL_INSTALLBOOT=      installboot
                    371: TOOL_INSTALL_INFO=     install-info
                    372: TOOL_JOIN=             join
                    373: TOOL_M4=               m4
                    374: TOOL_MACPPCFIXCOFF=    macppc-fixcoff
                    375: TOOL_MAKEFS=           makefs
                    376: TOOL_MAKEINFO=         makeinfo
                    377: TOOL_MAKEWHATIS=       /usr/libexec/makewhatis
1.629     joerg     378: TOOL_MANDOC_ASCII=     mandoc -Tascii
                    379: TOOL_MANDOC_HTML=      mandoc -Thtml -Oman=../html%S/%N.html -Ostyle=../style.css
                    380: TOOL_MANDOC_LINT=      mandoc -Tlint
1.538     apb       381: TOOL_MDSETIMAGE=       mdsetimage
                    382: TOOL_MENUC=            menuc
1.675   ! tsutsui   383: TOOL_M68KELF2AOUT=     m68k-elf2aout
1.538     apb       384: TOOL_MIPSELF2ECOFF=    mips-elf2ecoff
                    385: TOOL_MKCSMAPPER=       mkcsmapper
                    386: TOOL_MKESDB=           mkesdb
                    387: TOOL_MKLOCALE=         mklocale
                    388: TOOL_MKMAGIC=          file
                    389: TOOL_MKTEMP=           mktemp
1.650     matt      390: TOOL_MKUBOOTIMAGE=     mkubootimage
1.538     apb       391: TOOL_MSGC=             msgc
                    392: TOOL_MTREE=            mtree
1.616     roy       393: TOOL_NBPERF=           nbperf
1.538     apb       394: TOOL_PAX=              pax
                    395: TOOL_PIC=              pic
1.632     mrg       396: TOOL_PIGZ=             pigz
1.599     uebayasi  397: TOOL_PKG_CREATE=       pkg_create
1.538     apb       398: TOOL_POWERPCMKBOOTIMAGE=       powerpc-mkbootimage
                    399: TOOL_PWD_MKDB=         pwd_mkdb
                    400: TOOL_REFER=            refer
                    401: TOOL_ROFF_ASCII=       nroff
                    402: TOOL_ROFF_DVI=         ${TOOL_GROFF} -Tdvi
                    403: TOOL_ROFF_HTML=                ${TOOL_GROFF} -Tlatin1 -mdoc2html
                    404: TOOL_ROFF_PS=          ${TOOL_GROFF} -Tps
                    405: TOOL_ROFF_RAW=         ${TOOL_GROFF} -Z
                    406: TOOL_RPCGEN=           rpcgen
                    407: TOOL_SED=              sed
                    408: TOOL_SOELIM=           soelim
                    409: TOOL_SPARKCRC=         sparkcrc
                    410: TOOL_STAT=             stat
                    411: TOOL_STRFILE=          strfile
                    412: TOOL_SUNLABEL=         sunlabel
                    413: TOOL_TBL=              tbl
1.651     joerg     414: TOOL_TBLGEN=           llvm-tblgen
1.616     roy       415: TOOL_TIC=              tic
1.538     apb       416: TOOL_UUDECODE=         uudecode
                    417: TOOL_VGRIND=           vgrind -f
                    418: TOOL_ZIC=              zic
                    419:
                    420: .endif # USETOOLS != yes                                               # }
1.272     lukem     421:
1.667     joerg     422: # Fallback to ensure that all variables are defined to something
                    423: TOOL_CC.false=         false
                    424: TOOL_CPP.false=                false
                    425: TOOL_CXX.false=                false
                    426: TOOL_FC.false=         false
                    427: TOOL_OBJC.false=       false
                    428:
                    429: AVAILABLE_COMPILER?=   ${HAVE_PCC:Dpcc} ${HAVE_LLVM:Dclang} ${HAVE_GCC:Dgcc} false
                    430:
                    431: .for _t in CC CPP CXX FC OBJC
                    432: ACTIVE_${_t}=  ${AVAILABLE_COMPILER:@.c.@ ${ !defined(UNSUPPORTED_COMPILER.${.c.}) && defined(TOOL_${_t}.${.c.}) :? ${.c.} : }@:[1]}
                    433: SUPPORTED_${_t}=${AVAILABLE_COMPILER:Nfalse:@.c.@ ${ !defined(UNSUPPORTED_COMPILER.${.c.}) && defined(TOOL_${_t}.${.c.}) :? ${.c.} : }@}
                    434: .endfor
                    435: # make bugs prevent moving this into the .for loop
                    436: CC=            ${TOOL_CC.${ACTIVE_CC}}
                    437: CPP=           ${TOOL_CPP.${ACTIVE_CPP}}
                    438: CXX=           ${TOOL_CXX.${ACTIVE_CXX}}
                    439: FC=            ${TOOL_FC.${ACTIVE_FC}}
                    440: OBJC=          ${TOOL_OBJC.${ACTIVE_OBJC}}
                    441:
1.674     tsutsui   442: # OBJCOPY flags to create a.out binaries for old firmware
                    443: # shared among src/distrib and ${MACHINE}/conf/Makefile.${MACHINE}.inc
                    444: .if ${MACHINE_CPU} == "arm"
                    445: OBJCOPY_ELF2AOUT_FLAGS?=       \
                    446:        -O a.out-arm-netbsd     \
                    447:        -R .ident               \
                    448:        -R .ARM.attributes      \
                    449:        -R .arm.atpcs           \
                    450:        -R .comment             \
                    451:        -R .debug_abbrev        \
                    452:        -R .debug_info          \
                    453:        -R .debug_line          \
                    454:        -R .debug_frame         \
                    455:        -R .debug_loc           \
                    456:        -R .debug_pubnames      \
                    457:        -R .debug_aranges       \
                    458:        -R .debug_str           \
                    459:        -R .debug_pubtypes      \
                    460:        -R .note.netbsd.ident
                    461: .endif
                    462:
1.341     lukem     463: #
1.272     lukem     464: # Targets to check if DESTDIR or RELEASEDIR is provided
                    465: #
                    466: .if !target(check_DESTDIR)
                    467: check_DESTDIR: .PHONY .NOTMAIN
                    468: .if !defined(DESTDIR)
                    469:        @echo "setenv DESTDIR before doing that!"
                    470:        @false
                    471: .else
                    472:        @true
                    473: .endif
                    474: .endif
                    475:
                    476: .if !target(check_RELEASEDIR)
                    477: check_RELEASEDIR: .PHONY .NOTMAIN
                    478: .if !defined(RELEASEDIR)
                    479:        @echo "setenv RELEASEDIR before doing that!"
                    480:        @false
                    481: .else
                    482:        @true
                    483: .endif
                    484: .endif
                    485:
1.341     lukem     486: #
1.306     lukem     487: # Build a dynamically linked /bin and /sbin, with the necessary shared
                    488: # libraries moved from /usr/lib to /lib and the shared linker moved
                    489: # from /usr/libexec to /lib
                    490: #
1.315     thorpej   491: # Note that if the BINDIR is not /bin or /sbin, then we always use the
                    492: # non-DYNAMICROOT behavior (i.e. it is only enabled for programs in /bin
                    493: # and /sbin).  See <bsd.shlib.mk>.
                    494: #
1.311     lukem     495: MKDYNAMICROOT?=        yes
1.306     lukem     496:
1.341     lukem     497: #
1.287     lukem     498: # Where the system object and source trees are kept; can be configurable
                    499: # by the user in case they want them in ~/foosrc and ~/fooobj (for example).
                    500: #
                    501: BSDSRCDIR?=    /usr/src
                    502: BSDOBJDIR?=    /usr/obj
1.288     lukem     503: NETBSDSRCDIR?= ${BSDSRCDIR}
1.1       cgd       504:
1.61      lukem     505: BINGRP?=       wheel
                    506: BINOWN?=       root
1.1       cgd       507: BINMODE?=      555
1.4       mycroft   508: NONBINMODE?=   444
1.17      brezak    509:
1.646     pooka     510: # These are here mainly because we don't want suid root in case
                    511: # a Makefile defines BINMODE.
                    512: RUMPBINGRP?=   wheel
                    513: RUMPBINOWN?=   root
                    514: RUMPBINMODE?=  555
                    515: RUMPNONBINMODE?=444
                    516:
1.31      christos  517: MANDIR?=       /usr/share/man
1.61      lukem     518: MANGRP?=       wheel
                    519: MANOWN?=       root
1.4       mycroft   520: MANMODE?=      ${NONBINMODE}
1.524     lukem     521: MANINSTALL?=   catinstall htmlinstall maninstall
1.115     tv        522:
                    523: INFODIR?=      /usr/share/info
                    524: INFOGRP?=      wheel
                    525: INFOOWN?=      root
                    526: INFOMODE?=     ${NONBINMODE}
1.4       mycroft   527:
                    528: LIBDIR?=       /usr/lib
1.315     thorpej   529:
1.4       mycroft   530: LINTLIBDIR?=   /usr/libdata/lint
                    531: LIBGRP?=       ${BINGRP}
                    532: LIBOWN?=       ${BINOWN}
                    533: LIBMODE?=      ${NONBINMODE}
                    534:
1.135     simonb    535: DOCDIR?=       /usr/share/doc
1.136     simonb    536: HTMLDOCDIR?=   /usr/share/doc/html
1.61      lukem     537: DOCGRP?=       wheel
                    538: DOCOWN?=       root
1.135     simonb    539: DOCMODE?=      ${NONBINMODE}
1.15      jtc       540:
                    541: NLSDIR?=       /usr/share/nls
1.61      lukem     542: NLSGRP?=       wheel
                    543: NLSOWN?=       root
1.15      jtc       544: NLSMODE?=      ${NONBINMODE}
1.25      explorer  545:
1.508     ad        546: KMODULEGRP?=   wheel
                    547: KMODULEOWN?=   root
                    548: KMODULEMODE?=  ${NONBINMODE}
                    549:
1.155     itojun    550: LOCALEDIR?=    /usr/share/locale
                    551: LOCALEGRP?=    wheel
                    552: LOCALEOWN?=    root
                    553: LOCALEMODE?=   ${NONBINMODE}
1.1       cgd       554:
1.453     rpaulo    555: FIRMWAREDIR?=  /libdata/firmware
                    556: FIRMWAREGRP?=  wheel
                    557: FIRMWAREOWN?=  root
                    558: FIRMWAREMODE?= ${NONBINMODE}
                    559:
1.465     lukem     560: DEBUGDIR?=     /usr/libdata/debug
                    561: DEBUGGRP?=     wheel
                    562: DEBUGOWN?=     root
                    563: DEBUGMODE?=    ${NONBINMODE}
                    564:
1.341     lukem     565: #
                    566: # Data-driven table using make variables to control how
1.264     thorpej   567: # toolchain-dependent targets and shared libraries are built
                    568: # for different platforms and object formats.
                    569: #
1.296     thorpej   570: # OBJECT_FMT:          currently either "ELF" or "a.out".
1.264     thorpej   571: #
1.499     simonb    572: # All platforms are ELF.
1.341     lukem     573: #
1.264     thorpej   574: OBJECT_FMT=    ELF
                    575:
1.341     lukem     576: #
1.310     thorpej   577: # If this platform's toolchain is missing, we obviously cannot build it.
1.341     lukem     578: #
1.406     lukem     579: .if ${TOOLCHAIN_MISSING} != "no"
1.572     skrll     580: MKBINUTILS:= no
1.310     thorpej   581: MKGDB:= no
                    582: MKGCC:= no
                    583: .endif
                    584:
1.341     lukem     585: #
1.310     thorpej   586: # If we are using an external toolchain, we can still build the target's
1.572     skrll     587: # binutils, but we cannot build GCC's support libraries, since those are
1.310     thorpej   588: # tightly-coupled to the version of GCC being used.
1.341     lukem     589: #
1.310     thorpej   590: .if defined(EXTERNAL_TOOLCHAIN)
                    591: MKGCC:= no
                    592: .endif
                    593:
1.341     lukem     594: #
1.165     fredette  595: # The m68000 port is incomplete.
1.341     lukem     596: #
1.165     fredette  597: .if ${MACHINE_ARCH} == "m68000"
1.230     tv        598: NOPIC=         # defined
1.458     mrg       599: MKISCSI=       no
                    600: # XXX GCC 4 outputs mcount() calling sequences that try to load values
                    601: # from over 64KB away and this fails to assemble.
1.671     mrg       602: .if defined(HAVE_GCC)
1.458     mrg       603: NOPROFILE=     # defined
                    604: .endif
1.32      thorpej   605: .endif
1.122     simonb    606:
1.341     lukem     607: #
1.441     skrll     608: # The ia64 port is incomplete.
                    609: #
                    610: .if ${MACHINE_ARCH} == "ia64"
                    611: MKLINT=                no
1.472     skrll     612: MKGDB=         no
1.441     skrll     613: .endif
                    614:
                    615: #
1.327     thorpej   616: # On the MIPS, all libs are compiled with ABIcalls (and are thus PIC),
                    617: # not just shared libraries, so don't build the _pic version.
1.341     lukem     618: #
1.598     uebayasi  619: .if ${MACHINE_ARCH} == "mipsel" || ${MACHINE_ARCH} == "mipseb" || \
                    620:     ${MACHINE_ARCH} == "mips64el" || ${MACHINE_ARCH} == "mips64eb"
1.327     thorpej   621: MKPICLIB:=     no
                    622: .endif
                    623:
1.341     lukem     624: #
1.327     thorpej   625: # On VAX using ELF, all objects are PIC, not just shared libraries,
1.613     matt      626: # so don't build the _pic version.
1.341     lukem     627: #
1.494     matt      628: .if ${MACHINE_ARCH} == "vax"
                    629: MKPICLIB=      no
1.327     thorpej   630: .endif
                    631:
1.341     lukem     632: #
1.122     simonb    633: # Location of the file that contains the major and minor numbers of the
                    634: # version of a shared library.  If this file exists a shared library
                    635: # will be built by <bsd.lib.mk>.
1.341     lukem     636: #
1.122     simonb    637: SHLIB_VERSION_FILE?= ${.CURDIR}/shlib_version
1.69      tv        638:
1.341     lukem     639: #
1.69      tv        640: # GNU sources and packages sometimes see architecture names differently.
1.341     lukem     641: #
1.494     matt      642: GNU_ARCH.coldfire=m68k
1.560     drochner  643: GNU_ARCH.i386=i486
                    644: GCC_CONFIG_ARCH.i386=i486
1.563     ad        645: GCC_CONFIG_TUNE.i386=nocona
                    646: GCC_CONFIG_TUNE.x86_64=nocona
1.261     thorpej   647: GNU_ARCH.m68000=m68010
1.150     itojun    648: GNU_ARCH.sh3eb=sh
1.236     thorpej   649: GNU_ARCH.sh3el=shle
1.468     matt      650: GNU_ARCH.mips64eb=mips64
1.172     tv        651: MACHINE_GNU_ARCH=${GNU_ARCH.${MACHINE_ARCH}:U${MACHINE_ARCH}}
1.161     tv        652:
1.341     lukem     653: #
1.161     tv        654: # In order to identify NetBSD to GNU packages, we sometimes need
                    655: # an "elf" tag for historically a.out platforms.
1.341     lukem     656: #
1.633     mrg       657: .if (${MACHINE_GNU_ARCH} == "arm" || \
1.294     thorpej   658:      ${MACHINE_GNU_ARCH} == "armeb" || \
1.168     matt      659:      ${MACHINE_ARCH} == "i386" || \
1.494     matt      660:      ${MACHINE_CPU} == "m68k" || \
1.235     thorpej   661:      ${MACHINE_GNU_ARCH} == "sh" || \
1.236     thorpej   662:      ${MACHINE_GNU_ARCH} == "shle" || \
1.168     matt      663:      ${MACHINE_ARCH} == "sparc" || \
                    664:      ${MACHINE_ARCH} == "vax")
1.318     thorpej   665: MACHINE_GNU_PLATFORM?=${MACHINE_GNU_ARCH}--netbsdelf
1.161     tv        666: .else
1.318     thorpej   667: MACHINE_GNU_PLATFORM?=${MACHINE_GNU_ARCH}--netbsd
1.161     tv        668: .endif
1.153     itojun    669:
1.553     pooka     670: #
                    671: # Determine if arch uses native kernel modules with rump
                    672: #
                    673: .if ${MACHINE_ARCH} == "i386" || \
                    674:     ${MACHINE_ARCH} == "x86_64"
                    675: RUMPKMOD=      # defined
                    676: .endif
                    677:
1.160     tv        678: TARGETS+=      all clean cleandir depend dependall includes \
1.521     lukem     679:                install lint obj regress tags html
1.485     dsl       680: PHONY_NOTMAIN =        all clean cleandir depend dependall distclean includes \
1.669     drochner  681:                install lint obj regress beforedepend afterdepend \
1.142     phil      682:                beforeinstall afterinstall realinstall realdepend realall \
1.521     lukem     683:                html subdir-all subdir-install subdir-depend
1.485     dsl       684: .PHONY:                ${PHONY_NOTMAIN}
                    685: .NOTMAIN:      ${PHONY_NOTMAIN}
1.58      agc       686:
1.406     lukem     687: .if ${NEED_OWN_INSTALL_TARGET} != "no"
1.56      drochner  688: .if !target(install)
1.485     dsl       689: install:       beforeinstall .WAIT subdir-install realinstall .WAIT afterinstall
                    690: beforeinstall:
                    691: subdir-install:
                    692: realinstall:
                    693: afterinstall:
                    694: .endif
                    695: all:           realall subdir-all
                    696: subdir-all:
                    697: realall:
                    698: depend:                realdepend subdir-depend
                    699: subdir-depend:
                    700: realdepend:
                    701: distclean:     cleandir
                    702: cleandir:      clean
1.205     tv        703:
                    704: dependall:     .NOTMAIN realdepend .MAKE
1.615     christos  705:        @cd "${.CURDIR}"; ${MAKE} realall
1.132     mycroft   706: .endif
1.116     lukem     707:
1.341     lukem     708: #
1.116     lukem     709: # Define MKxxx variables (which are either yes or no) for users
1.350     lukem     710: # to set in /etc/mk.conf and override in the make environment.
1.116     lukem     711: # These should be tested with `== "no"' or `!= "no"'.
1.340     lukem     712: # The NOxxx variables should only be set by Makefiles.
1.116     lukem     713: #
1.466     lukem     714: # Please keep etc/Makefile and share/man/man5/mk.conf.5 in sync
                    715: # with changes to the MK* variables here.
                    716: #
1.116     lukem     717:
1.341     lukem     718: #
1.230     tv        719: # Supported NO* options (if defined, MK* will be forced to "no",
                    720: # regardless of user's mk.conf setting).
1.341     lukem     721: #
1.503     dholland  722: # Source makefiles should set NO*, and not MK*, and must do so before
                    723: # including bsd.own.mk.
                    724: #
1.422     lukem     725: .for var in \
1.534     apb       726:        NOCRYPTO NODOC NOHTML NOINFO NOLINKLIB NOLINT NOMAN NONLS NOOBJ NOPIC \
1.503     dholland  727:        NOPICINSTALL NOPROFILE NOSHARE NOSTATICLIB
                    728: .if defined(${var})
                    729: MK${var:S/^NO//}:=     no
1.230     tv        730: .endif
                    731: .endfor
1.268     ross      732:
1.341     lukem     733: #
                    734: # Older-style variables that enabled behaviour when set.
                    735: #
                    736: .for var in MANZ UNPRIVED UPDATE
                    737: .if defined(${var})
                    738: MK${var}:=     yes
1.268     ross      739: .endif
1.341     lukem     740: .endfor
1.230     tv        741:
1.536     mrg       742: #
                    743: # MK* options which have variable defaults.
                    744: #
1.613     matt      745: .if ${MACHINE_ARCH} == "x86_64" || ${MACHINE_ARCH} == "sparc64" || \
                    746:     ${MACHINE_ARCH} == "mips64eb" || ${MACHINE_ARCH} == "mips64el"
1.536     mrg       747: MKCOMPAT?=     yes
                    748: .else
                    749: # Don't let this build where it really isn't supported.
                    750: MKCOMPAT:=     no
                    751: .endif
                    752:
1.670     mrg       753: #.if ${MACHINE_ARCH} == "x86_64" || ${MACHINE_ARCH} == "i386" || \
                    754:
                    755: .if ${MACHINE} == "evbppc"
                    756: MKCOMPATMODULES?=      yes
                    757: .else
                    758: MKCOMPATMODULES:=      no
                    759: .endif
                    760:
1.341     lukem     761: #
1.647     matt      762: # Default mips64 to softfloat now.
1.649     pooka     763: # emips is always softfloat.
1.647     matt      764: #
1.649     pooka     765: .if ${MACHINE_ARCH} == "mips64eb" || ${MACHINE_ARCH} == "mips64el" || \
                    766:     ${MACHINE} == "emips"
1.647     matt      767: MKSOFTFLOAT?=  yes
                    768: .endif
                    769:
1.649     pooka     770: .if ${MACHINE} == "emips"
                    771: SOFTFLOAT_BITS=        32
                    772: .endif
                    773:
1.647     matt      774: #
1.572     skrll     775: # MK* backward compatibility.
                    776: #
                    777: .if defined(MKBFD)
                    778: MKBINUTILS?=   ${MKBFD}
                    779: .endif
                    780:
                    781: #
1.603     uebayasi  782: # We want to build zfs only for i386 and amd64 by default for now.
                    783: #
                    784: .if ${MACHINE} == "amd64" || ${MACHINE} == "i386"
1.621     he        785: MKZFS?=                yes
1.603     uebayasi  786: .endif
                    787:
                    788: #
1.230     tv        789: # MK* options which default to "yes".
1.341     lukem     790: #
1.600     uebayasi  791: _MKVARS.yes= \
1.514     gmcgarry  792:        MKATF \
1.572     skrll     793:        MKBINUTILS \
1.613     matt      794:        MKCATPAGES MKCRYPTO MKCOMPLEX MKCVS MKCXX \
1.504     lukem     795:        MKDOC \
1.613     matt      796:        MKGCC MKGCCCMDS MKGDB MKGROFF \
1.524     lukem     797:        MKHESIOD MKHTML \
1.504     lukem     798:        MKIEEEFP MKINET6 MKINFO MKIPFILTER MKISCSI \
                    799:        MKKERBEROS \
1.570     dyoung    800:        MKKMOD \
1.602     haad      801:        MKLDAP MKLINKLIB MKLINT MKLVM \
1.504     lukem     802:        MKMAN \
1.583     tsarna    803:        MKMDNS \
1.525     christos  804:        MKNLS \
1.640     rmind     805:        MKNPF \
1.504     lukem     806:        MKOBJ \
1.664     haad      807:        MKPAM MKPERFUSE \
1.519     gmcgarry  808:        MKPF MKPIC MKPICINSTALL MKPICLIB MKPOSTFIX MKPROFILE \
1.504     lukem     809:        MKSHARE MKSKEY MKSTATICLIB \
1.567     mrg       810:        MKX11FONTS \
1.504     lukem     811:        MKYP
1.600     uebayasi  812: .for var in ${_MKVARS.yes}
1.504     lukem     813: ${var}?=       yes
1.230     tv        814: .endfor
                    815:
1.341     lukem     816: #
1.606     he        817: # Exceptions to the above:
                    818: #
1.670     mrg       819: #.if ${MACHINE} == "evbppc"
                    820: #MKKMOD=               no
                    821: #.endif
1.606     he        822:
                    823: #
1.623     mrg       824: # MK* options which default to "no".  Note that MKZFS has a different
                    825: # default for some platforms, see above.
1.341     lukem     826: #
1.600     uebayasi  827: _MKVARS.no= \
1.663     joerg     828:        MKBSDGREP MKBSDTAR MKCRYPTO_IDEA MKCRYPTO_MDC2 MKCRYPTO_RC5 MKDEBUG \
                    829:        MKDEBUGLIB MKDTRACE MKEXTSRC \
1.590     joerg     830:        MKMANDOC MKMANZ MKOBJDIRS \
1.668     plunky    831:        MKLLVM MKPCC \
1.631     mrg       832:        MKPIGZGZIP \
1.648     he        833:        MKREPRO \
1.541     agc       834:        MKSOFTFLOAT MKSTRIPIDENT \
1.623     mrg       835:        MKUNPRIVED MKUPDATE MKX11 MKZFS
1.600     uebayasi  836: .for var in ${_MKVARS.no}
1.504     lukem     837: ${var}?=no
1.230     tv        838: .endfor
                    839:
1.341     lukem     840: #
1.544     mrg       841: # Do we default to XFree86 or Xorg for this platform?
                    842: #
1.637     tsutsui   843: .if \
                    844:     ${MACHINE} == "acorn32"    || \
                    845:     ${MACHINE} == "alpha"      || \
                    846:     ${MACHINE} == "amiga"      || \
                    847:     ${MACHINE} == "ews4800mips"        || \
                    848:     ${MACHINE} == "mac68k"     || \
                    849:     ${MACHINE} == "newsmips"   || \
                    850:     ${MACHINE} == "pmax"       || \
                    851:     ${MACHINE} == "sun3"       || \
                    852:     ${MACHINE} == "x68k"
1.555     abs       853: X11FLAVOUR?=   XFree86
                    854: .else
1.544     mrg       855: X11FLAVOUR?=   Xorg
                    856: .endif
                    857:
                    858: #
1.230     tv        859: # Force some options off if their dependencies are off.
1.341     lukem     860: #
                    861:
1.613     matt      862: .if ${MKCXX} == "no"
                    863: MKATF:=                no
                    864: MKGROFF:=      no
                    865: .endif
                    866:
1.230     tv        867: .if ${MKCRYPTO} == "no"
                    868: MKKERBEROS:=   no
1.634     mrg       869: MKLDAP:=       no
1.340     lukem     870: .endif
                    871:
                    872: .if ${MKMAN} == "no"
1.341     lukem     873: MKCATPAGES:=   no
1.340     lukem     874: MKHTML:=       no
1.116     lukem     875: .endif
                    876:
1.117     lukem     877: .if ${MKLINKLIB} == "no"
1.507     lukem     878: MKLINT:=       no
1.230     tv        879: MKPICINSTALL:= no
                    880: MKPROFILE:=    no
1.327     thorpej   881: .endif
                    882:
                    883: .if ${MKPIC} == "no"
                    884: MKPICLIB:=     no
1.116     lukem     885: .endif
                    886:
1.230     tv        887: .if ${MKOBJ} == "no"
                    888: MKOBJDIRS:=    no
1.116     lukem     889: .endif
                    890:
1.117     lukem     891: .if ${MKSHARE} == "no"
1.230     tv        892: MKCATPAGES:=   no
                    893: MKDOC:=                no
                    894: MKINFO:=       no
1.341     lukem     895: MKHTML:=       no
1.230     tv        896: MKMAN:=                no
                    897: MKNLS:=                no
1.116     lukem     898: .endif
1.276     thorpej   899:
1.341     lukem     900: #
                    901: # install(1) parameters.
                    902: #
                    903: COPY?=         -c
                    904: .if ${MKUPDATE} == "no"
                    905: PRESERVE?=
                    906: .else
                    907: PRESERVE?=     -p
                    908: .endif
                    909: RENAME?=       -r
                    910: HRDLINK?=      -l h
1.444     christos  911: SYMLINK?=      -l s
1.341     lukem     912:
                    913: METALOG?=      ${DESTDIR}/METALOG
                    914: METALOG.add?=  ${TOOL_CAT} -l >> ${METALOG}
                    915: .if (${_SRC_TOP_} != "")       # only set INSTPRIV if inside ${NETBSDSRCDIR}
                    916: .if ${MKUNPRIVED} != "no"
1.562     apb       917: INSTPRIV.unpriv=-U -M ${METALOG} -D ${DESTDIR} -h sha256
1.341     lukem     918: .else
                    919: INSTPRIV.unpriv=
                    920: .endif
                    921: INSTPRIV?=     ${INSTPRIV.unpriv} -N ${NETBSDSRCDIR}/etc
                    922: .endif
1.410     lukem     923: STRIPFLAG?=
1.341     lukem     924:
1.406     lukem     925: .if ${NEED_OWN_INSTALL_TARGET} != "no"
1.341     lukem     926: INSTALL_DIR?=          ${INSTALL} ${INSTPRIV} -d
                    927: INSTALL_FILE?=         ${INSTALL} ${INSTPRIV} ${COPY} ${PRESERVE} ${RENAME}
                    928: INSTALL_LINK?=         ${INSTALL} ${INSTPRIV} ${HRDLINK} ${RENAME}
                    929: INSTALL_SYMLINK?=      ${INSTALL} ${INSTPRIV} ${SYMLINK} ${RENAME}
                    930: HOST_INSTALL_FILE?=    ${INSTALL} ${COPY} ${PRESERVE} ${RENAME}
1.440     dyoung    931: HOST_INSTALL_DIR?=     ${INSTALL} -d
                    932: HOST_INSTALL_SYMLINK?= ${INSTALL} ${SYMLINK} ${RENAME}
1.341     lukem     933: .endif
                    934:
                    935: #
1.351     lukem     936: # Set defaults for the USE_xxx variables.
                    937: #
                    938:
                    939: #
1.433     lukem     940: # USE_* options which default to "no" and will be forced to "no" if their
                    941: # corresponding MK* variable is set to "no".
                    942: #
1.505     lukem     943: .for var in USE_SKEY
                    944: .if (${${var:S/USE_/MK/}} == "no")
                    945: ${var}:= no
                    946: .else
                    947: ${var}?= no
                    948: .endif
                    949: .endfor
1.433     lukem     950:
                    951: #
1.351     lukem     952: # USE_* options which default to "yes" unless their corresponding MK*
                    953: # variable is set to "no".
1.341     lukem     954: #
1.512     lukem     955: .for var in USE_HESIOD USE_INET6 USE_KERBEROS USE_LDAP USE_PAM USE_YP
1.504     lukem     956: .if (${${var:S/USE_/MK/}} == "no")
                    957: ${var}:= no
1.276     thorpej   958: .else
1.504     lukem     959: ${var}?= yes
1.276     thorpej   960: .endif
1.351     lukem     961: .endfor
                    962:
                    963: #
                    964: # USE_* options which default to "yes".
                    965: #
1.504     lukem     966: .for var in USE_JEMALLOC
                    967: ${var}?= yes
1.497     ad        968: .endfor
1.300     tron      969:
1.341     lukem     970: #
1.445     jmc       971: # USE_* options which default to "no".
                    972: #
1.639     mrg       973: # For now, disable pigz as compressor by default
1.641     ahoka     974: .for var in USE_PIGZGZIP USE_LIBTRE
1.639     mrg       975: ${var}?= no
                    976: .endfor
1.357     lukem     977:
1.672     matt      978: .if ${USE_PIGZGZIP} != "no"
                    979: TOOL_GZIP=             ${TOOL_PIGZ}
                    980: .else
                    981: TOOL_GZIP=             gzip
                    982: .endif
                    983:
1.357     lukem     984: #
1.522     mrg       985: # Where X11 sources are and where it is installed to.
1.357     lukem     986: #
1.587     apb       987: .if !defined(X11SRCDIR)
                    988: .if exists(${NETBSDSRCDIR}/../xsrc)
1.615     christos  989: X11SRCDIR!=            cd "${NETBSDSRCDIR}/../xsrc" && pwd
1.587     apb       990: .else
                    991: X11SRCDIR=             /usr/xsrc
                    992: .endif
                    993: .endif # !defined(X11SRCDIR)
                    994:
1.357     lukem     995: X11SRCDIR.xc?=         ${X11SRCDIR}/xfree/xc
                    996: X11SRCDIR.local?=      ${X11SRCDIR}/local
1.544     mrg       997: .if ${X11FLAVOUR} == "Xorg"
1.522     mrg       998: X11ROOTDIR?=           /usr/X11R7
                    999: .else
1.357     lukem    1000: X11ROOTDIR?=           /usr/X11R6
1.522     mrg      1001: .endif
1.357     lukem    1002: X11BINDIR?=            ${X11ROOTDIR}/bin
1.417     lukem    1003: X11ETCDIR?=            /etc/X11
1.357     lukem    1004: X11FONTDIR?=           ${X11ROOTDIR}/lib/X11/fonts
                   1005: X11INCDIR?=            ${X11ROOTDIR}/include
                   1006: X11LIBDIR?=            ${X11ROOTDIR}/lib/X11
                   1007: X11MANDIR?=            ${X11ROOTDIR}/man
1.635     mrg      1008: X11SHAREDIR?=          ${X11ROOTDIR}/share
1.357     lukem    1009: X11USRLIBDIR?=         ${X11ROOTDIR}/lib
1.417     lukem    1010:
1.516     mrg      1011: #
                   1012: # New modular-xorg based builds
                   1013: #
                   1014: X11SRCDIRMIT?=         ${X11SRCDIR}/external/mit
                   1015: .for _lib in \
                   1016:        FS ICE SM X11 XScrnSaver XTrap Xau Xcomposite Xcursor Xdamage \
1.564     mrg      1017:        Xdmcp Xevie Xext Xfixes Xfont Xft Xi Xinerama Xmu Xpm \
1.516     mrg      1018:        Xrandr Xrender Xres Xt Xtst Xv XvMC Xxf86dga Xxf86misc Xxf86vm drm \
1.635     mrg      1019:        fontenc xkbfile xkbui Xaw lbxutil Xfontcache pciaccess xcb
1.516     mrg      1020: X11SRCDIR.${_lib}?=            ${X11SRCDIRMIT}/lib${_lib}/dist
                   1021: .endfor
                   1022:
                   1023: .for _proto in \
                   1024:        xcmisc xext xf86bigfont bigreqs input kb x fonts fixes scrnsaver \
1.565     mrg      1025:        xinerama dri2 render resource record video xf86dga xf86misc \
1.635     mrg      1026:        xf86vidmode composite damage trap gl randr fontcache xf86dri \
                   1027:        xcb-
1.516     mrg      1028: X11SRCDIR.${_proto}proto?=             ${X11SRCDIRMIT}/${_proto}proto/dist
                   1029: .endfor
                   1030:
                   1031: .for _dir in \
                   1032:        xtrans fontconfig expat freetype evieext mkfontscale bdftopcf \
1.566     mrg      1033:        xkbcomp xorg-cf-files imake xorg-server xbiff xkbdata xkeyboard-config \
1.517     mrg      1034:        xbitmaps appres xeyes xev xedit sessreg pixman \
1.516     mrg      1035:        beforelight bitmap editres makedepend fonttosfnt fslsfonts \
1.546     cube     1036:        fstobdf MesaDemos MesaGLUT MesaLib ico iceauth lbxproxy listres lndir \
1.516     mrg      1037:        luit xproxymanagementprotocol mkfontdir oclock proxymngr rgb \
                   1038:        setxkbmap smproxy twm viewres x11perf xauth xcalc xclipboard \
                   1039:        xclock xcmsdb xconsole xcutsel xditview xdpyinfo xdriinfo xdm \
                   1040:        xfd xf86dga xfindproxy xfontsel xfwp xgamma xgc xhost xinit \
                   1041:        xkill xload xlogo xlsatoms xlsclients xlsfonts xmag xmessage \
                   1042:        xmh xmodmap xmore xman xprop xrandr xrdb xrefresh xset \
                   1043:        xsetmode xsetpointer xsetroot xsm xstdcmap xvidtune xvinfo \
                   1044:        xwininfo xwud xprehashprinterlist xplsprinters xkbprint xkbevd \
                   1045:        xterm xwd xfs xfsinfo xphelloworld xtrap xkbutils xkbcomp \
1.635     mrg      1046:        xkeyboard-config xinput xcb-util \
1.516     mrg      1047:        font-adobe-100dpi font-adobe-75dpi font-adobe-utopia-100dpi \
                   1048:        font-adobe-utopia-75dpi font-adobe-utopia-type1 \
                   1049:        font-alias \
                   1050:        font-bh-100dpi font-bh-75dpi font-bh-lucidatypewriter-100dpi \
                   1051:        font-bh-lucidatypewriter-75dpi font-bh-ttf font-bh-type1 \
                   1052:        font-bitstream-100dpi font-bitstream-75dpi font-bitstream-type1 \
                   1053:        font-cursor-misc font-daewoo-misc font-dec-misc font-ibm-type1 \
                   1054:        font-isas-misc font-jis-misc font-misc-misc font-mutt-misc \
1.554     tron     1055:        font-sony-misc font-util ttf-bitstream-vera encodings
1.516     mrg      1056: X11SRCDIR.${_dir}?=            ${X11SRCDIRMIT}/${_dir}/dist
                   1057: .endfor
                   1058:
1.518     mrg      1059: .for _i in \
1.652     mrg      1060:        elographics keyboard mouse synaptics vmmouse void ws
1.518     mrg      1061: X11SRCDIR.xf86-input-${_i}?=   ${X11SRCDIRMIT}/xf86-input-${_i}/dist
                   1062: .endfor
                   1063:
                   1064: .for _v in \
1.626     mrg      1065:        ag10e apm ark ast ati chips cirrus crime \
                   1066:        geode glint i128 i740 igs imstt intel mach64 mga \
                   1067:        neomagic newport nsc nv nvxbox openchrome pnozz \
                   1068:        r128 radeonhd rendition \
                   1069:        s3 s3virge savage siliconmotion sis suncg14 \
                   1070:        suncg6 sunffb sunleo suntcx \
                   1071:        tdfx tga trident tseng vesa vga via vmware wsfb
1.543     macallan 1072:
1.518     mrg      1073: X11SRCDIR.xf86-video-${_v}?=   ${X11SRCDIRMIT}/xf86-video-${_v}/dist
                   1074: .endfor
                   1075:
1.544     mrg      1076: .if ${X11FLAVOUR} == "Xorg"
1.516     mrg      1077: X11DRI?=                       yes
                   1078: .endif
                   1079:
                   1080: X11DRI?=                       no
                   1081: X11LOADABLE?=                  yes
1.374     lukem    1082:
                   1083:
                   1084: #
1.598     uebayasi 1085: # Where extsrc sources are and where it is installed to.
                   1086: #
                   1087: .if !defined(EXTSRCSRCDIR)
                   1088: .if exists(${NETBSDSRCDIR}/../extsrc)
1.615     christos 1089: EXTSRCSRCDIR!=         cd "${NETBSDSRCDIR}/../extsrc" && pwd
1.598     uebayasi 1090: .else
                   1091: EXTSRCSRCDIR=          /usr/extsrc
                   1092: .endif
                   1093: .endif # !defined(EXTSRCSRCDIR)
                   1094:
                   1095: EXTSRCROOTDIR?=                /usr/ext
                   1096: EXTSRCBINDIR?=         ${EXTSRCROOTDIR}/bin
                   1097: EXTSRCETCDIR?=         /etc/ext
                   1098: EXTSRCINCDIR?=         ${EXTSRCROOTDIR}/include
                   1099: EXTSRCLIBDIR?=         ${EXTSRCROOTDIR}/lib/ext
                   1100: EXTSRCMANDIR?=         ${EXTSRCROOTDIR}/man
                   1101: EXTSRCUSRLIBDIR?=      ${EXTSRCROOTDIR}/lib
                   1102:
                   1103: #
1.414     lukem    1104: # MAKEDIRTARGET dir target [extra make(1) params]
1.612     mrg      1105: #      run "cd $${dir} && ${MAKEDIRTARGETENV} ${MAKE} [params] $${target}", with a pretty message
1.414     lukem    1106: #
1.612     mrg      1107: MAKEDIRTARGETENV?=
1.414     lukem    1108: MAKEDIRTARGET=\
                   1109:        @_makedirtarget() { \
                   1110:                dir="$$1"; shift; \
                   1111:                target="$$1"; shift; \
                   1112:                case "$${dir}" in \
                   1113:                /*)     this="$${dir}/"; \
                   1114:                        real="$${dir}" ;; \
                   1115:                .)      this="${_THISDIR_}"; \
                   1116:                        real="${.CURDIR}" ;; \
                   1117:                *)      this="${_THISDIR_}$${dir}/"; \
                   1118:                        real="${.CURDIR}/$${dir}" ;; \
                   1119:                esac; \
                   1120:                show=$${this:-.}; \
                   1121:                echo "$${target} ===> $${show%/}$${1:+  (with: $$@)}"; \
                   1122:                cd "$${real}" \
1.612     mrg      1123:                && ${MAKEDIRTARGETENV} ${MAKE} _THISDIR_="$${this}" "$$@" $${target}; \
1.414     lukem    1124:        }; \
                   1125:        _makedirtarget
                   1126:
                   1127: #
1.374     lukem    1128: # MAKEVERBOSE support.  Levels are:
1.549     apb      1129: #      0       Minimal output ("quiet")
                   1130: #      1       Describe what is occurring
                   1131: #      2       Describe what is occurring and echo the actual command
                   1132: #      3       Ignore the effect of the "@" prefix in make commands
                   1133: #      4       Trace shell commands using the shell's -x flag
1.374     lukem    1134: #
                   1135: MAKEVERBOSE?=          2
                   1136:
                   1137: .if ${MAKEVERBOSE} == 0
                   1138: _MKMSG?=       @\#
                   1139: _MKSHMSG?=     : echo
                   1140: _MKSHECHO?=    : echo
1.380     lukem    1141: .SILENT:
1.374     lukem    1142: .elif ${MAKEVERBOSE} == 1
                   1143: _MKMSG?=       @echo '   '
                   1144: _MKSHMSG?=     echo '   '
                   1145: _MKSHECHO?=    : echo
1.380     lukem    1146: .SILENT:
1.549     apb      1147: .else  # MAKEVERBOSE >= 2
1.374     lukem    1148: _MKMSG?=       @echo '\#  '
                   1149: _MKSHMSG?=     echo '\#  '
                   1150: _MKSHECHO?=    echo
1.380     lukem    1151: .SILENT: __makeverbose_dummy_target__
1.549     apb      1152: .endif # MAKEVERBOSE >= 2
                   1153: .if ${MAKEVERBOSE} >= 3
                   1154: .MAKEFLAGS:    -dl
                   1155: .endif # ${MAKEVERBOSE} >= 3
                   1156: .if ${MAKEVERBOSE} >= 4
                   1157: .MAKEFLAGS:    -dx
                   1158: .endif # ${MAKEVERBOSE} >= 4
1.374     lukem    1159:
                   1160: _MKMSG_BUILD?=         ${_MKMSG} "  build "
                   1161: _MKMSG_CREATE?=                ${_MKMSG} " create "
                   1162: _MKMSG_COMPILE?=       ${_MKMSG} "compile "
                   1163: _MKMSG_FORMAT?=                ${_MKMSG} " format "
                   1164: _MKMSG_INSTALL?=       ${_MKMSG} "install "
                   1165: _MKMSG_LINK?=          ${_MKMSG} "   link "
                   1166: _MKMSG_LEX?=           ${_MKMSG} "    lex "
                   1167: _MKMSG_REMOVE?=                ${_MKMSG} " remove "
                   1168: _MKMSG_YACC?=          ${_MKMSG} "   yacc "
1.391     lukem    1169:
                   1170: _MKSHMSG_CREATE?=      ${_MKSHMSG} " create "
                   1171: _MKSHMSG_INSTALL?=     ${_MKSHMSG} "install "
1.374     lukem    1172:
1.394     lukem    1173: _MKTARGET_BUILD?=      ${_MKMSG_BUILD} ${.CURDIR:T}/${.TARGET}
                   1174: _MKTARGET_CREATE?=     ${_MKMSG_CREATE} ${.CURDIR:T}/${.TARGET}
                   1175: _MKTARGET_COMPILE?=    ${_MKMSG_COMPILE} ${.CURDIR:T}/${.TARGET}
                   1176: _MKTARGET_FORMAT?=     ${_MKMSG_FORMAT} ${.CURDIR:T}/${.TARGET}
                   1177: _MKTARGET_INSTALL?=    ${_MKMSG_INSTALL} ${.TARGET}
                   1178: _MKTARGET_LINK?=       ${_MKMSG_LINK} ${.CURDIR:T}/${.TARGET}
                   1179: _MKTARGET_LEX?=                ${_MKMSG_LEX} ${.CURDIR:T}/${.TARGET}
                   1180: _MKTARGET_REMOVE?=     ${_MKMSG_REMOVE} ${.TARGET}
                   1181: _MKTARGET_YACC?=       ${_MKMSG_YACC} ${.CURDIR:T}/${.TARGET}
1.64      lukem    1182:
1.592     joerg    1183: .if ${MKMANDOC} == "yes"
                   1184: TARGETS+=      lintmanpages
                   1185: .endif
                   1186:
1.638     jmmv     1187: TESTSBASE=     /usr/tests
                   1188:
1.347     lukem    1189: .endif # !defined(_BSD_OWN_MK_)

CVSweb <webmaster@jp.NetBSD.org>