| @@ -1,14 +1,19 @@ | | | @@ -1,14 +1,19 @@ |
1 | # $NetBSD: bsd.own.mk,v 1.542.2.9.4.3 2009/09/13 22:24:40 matt Exp $ | | 1 | # $NetBSD: bsd.own.mk,v 1.542.2.9.4.4 2009/12/14 06:35:01 mrg Exp $ |
| | | 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 |
2 | | | 7 | |
3 | .if !defined(_BSD_OWN_MK_) | | 8 | .if !defined(_BSD_OWN_MK_) |
4 | _BSD_OWN_MK_=1 | | 9 | _BSD_OWN_MK_=1 |
5 | | | 10 | |
6 | MAKECONF?= /etc/mk.conf | | 11 | MAKECONF?= /etc/mk.conf |
7 | .-include "${MAKECONF}" | | 12 | .-include "${MAKECONF}" |
8 | | | 13 | |
9 | # | | 14 | # |
10 | # CPU model, derived from MACHINE_ARCH | | 15 | # CPU model, derived from MACHINE_ARCH |
11 | # | | 16 | # |
12 | MACHINE_CPU= ${MACHINE_ARCH:C/mipse[bl]/mips/:C/mips64e[bl]/mips/:C/sh3e[bl]/sh3/:S/m68000/m68k/:S/armeb/arm/} | | 17 | MACHINE_CPU= ${MACHINE_ARCH:C/mipse[bl]/mips/:C/mips64e[bl]/mips/:C/sh3e[bl]/sh3/:S/m68000/m68k/:S/armeb/arm/} |
13 | | | 18 | |
14 | # | | 19 | # |
| @@ -882,44 +887,45 @@ X11SRCDIR.xf86-input-${_i}?= ${X11SRCDIR | | | @@ -882,44 +887,45 @@ X11SRCDIR.xf86-input-${_i}?= ${X11SRCDIR |
882 | X11SRCDIR.xf86-video-${_v}?= ${X11SRCDIRMIT}/xf86-video-${_v}/dist | | 887 | X11SRCDIR.xf86-video-${_v}?= ${X11SRCDIRMIT}/xf86-video-${_v}/dist |
883 | .endfor | | 888 | .endfor |
884 | | | 889 | |
885 | .if ${X11FLAVOUR} == "Xorg" | | 890 | .if ${X11FLAVOUR} == "Xorg" |
886 | X11DRI?= yes | | 891 | X11DRI?= yes |
887 | .endif | | 892 | .endif |
888 | | | 893 | |
889 | X11DRI?= no | | 894 | X11DRI?= no |
890 | X11LOADABLE?= yes | | 895 | X11LOADABLE?= yes |
891 | | | 896 | |
892 | | | 897 | |
893 | # | | 898 | # |
894 | # MAKEDIRTARGET dir target [extra make(1) params] | | 899 | # MAKEDIRTARGET dir target [extra make(1) params] |
895 | # run "cd $${dir} && ${MAKE} [params] $${target}", with a pretty message | | 900 | # run "cd $${dir} && ${MAKEDIRTARGETENV} ${MAKE} [params] $${target}", with a pretty message |
896 | # | | 901 | # |
| | | 902 | MAKEDIRTARGETENV?= |
897 | MAKEDIRTARGET=\ | | 903 | MAKEDIRTARGET=\ |
898 | @_makedirtarget() { \ | | 904 | @_makedirtarget() { \ |
899 | dir="$$1"; shift; \ | | 905 | dir="$$1"; shift; \ |
900 | target="$$1"; shift; \ | | 906 | target="$$1"; shift; \ |
901 | case "$${dir}" in \ | | 907 | case "$${dir}" in \ |
902 | /*) this="$${dir}/"; \ | | 908 | /*) this="$${dir}/"; \ |
903 | real="$${dir}" ;; \ | | 909 | real="$${dir}" ;; \ |
904 | .) this="${_THISDIR_}"; \ | | 910 | .) this="${_THISDIR_}"; \ |
905 | real="${.CURDIR}" ;; \ | | 911 | real="${.CURDIR}" ;; \ |
906 | *) this="${_THISDIR_}$${dir}/"; \ | | 912 | *) this="${_THISDIR_}$${dir}/"; \ |
907 | real="${.CURDIR}/$${dir}" ;; \ | | 913 | real="${.CURDIR}/$${dir}" ;; \ |
908 | esac; \ | | 914 | esac; \ |
909 | show=$${this:-.}; \ | | 915 | show=$${this:-.}; \ |
910 | echo "$${target} ===> $${show%/}$${1:+ (with: $$@)}"; \ | | 916 | echo "$${target} ===> $${show%/}$${1:+ (with: $$@)}"; \ |
911 | cd "$${real}" \ | | 917 | cd "$${real}" \ |
912 | && ${MAKE} _THISDIR_="$${this}" "$$@" $${target}; \ | | 918 | && ${MAKEDIRTARGETENV} ${MAKE} _THISDIR_="$${this}" "$$@" $${target}; \ |
913 | }; \ | | 919 | }; \ |
914 | _makedirtarget | | 920 | _makedirtarget |
915 | | | 921 | |
916 | # | | 922 | # |
917 | # MAKEVERBOSE support. Levels are: | | 923 | # MAKEVERBOSE support. Levels are: |
918 | # 0 No messages | | 924 | # 0 No messages |
919 | # 1 Enable info messages, suppress command output | | 925 | # 1 Enable info messages, suppress command output |
920 | # 2 Enable info messages and command output | | 926 | # 2 Enable info messages and command output |
921 | # | | 927 | # |
922 | MAKEVERBOSE?= 2 | | 928 | MAKEVERBOSE?= 2 |
923 | | | 929 | |
924 | .if ${MAKEVERBOSE} == 0 | | 930 | .if ${MAKEVERBOSE} == 0 |
925 | _MKMSG?= @\# | | 931 | _MKMSG?= @\# |