summaryrefslogtreecommitdiff
path: root/mk/platform/Linux.mk
diff options
context:
space:
mode:
Diffstat (limited to 'mk/platform/Linux.mk')
-rw-r--r--mk/platform/Linux.mk25
1 files changed, 14 insertions, 11 deletions
diff --git a/mk/platform/Linux.mk b/mk/platform/Linux.mk
index d371f534c89..4a84ff6e9f9 100644
--- a/mk/platform/Linux.mk
+++ b/mk/platform/Linux.mk
@@ -1,7 +1,18 @@
-# $NetBSD: Linux.mk,v 1.5.2.4 2005/03/21 15:43:00 tv Exp $
+# $NetBSD: Linux.mk,v 1.5.2.5 2005/05/17 18:29:46 tv Exp $
#
# Variable definitions for the Linux operating system.
+ECHO_N?= ${ECHO} -n
+IMAKEOPTS+= -DBuildHtmlManPages=NO
+PKGLOCALEDIR?= share
+PS?= /bin/ps
+# XXX: default from bsd.pkg.defaults.mk. Verify/corerct for this platform
+# and remove this comment.
+RSH?= /usr/bin/rsh
+SU?= /bin/su
+TYPE?= type # Shell builtin
+
+.if empty(_USE_NEW_TOOLS:M[yY][eE][sS])
AWK?= /usr/bin/awk
.if exists(/bin/basename)
BASENAME?= /bin/basename
@@ -22,7 +33,6 @@ CUT?= /usr/bin/cut
DATE?= /bin/date
DIRNAME?= /usr/bin/dirname
ECHO?= echo # Shell builtin
-ECHO_N?= ${ECHO} -n
.if exists(/bin/egrep)
EGREP?= /bin/egrep
.elif exists(/usr/bin/egrep)
@@ -60,7 +70,6 @@ GZIP_CMD?= /usr/bin/gzip -nf ${GZIP}
GZIP_CMD?= /bin/gzip -nf ${GZIP}
.endif
GZCAT?= /bin/zcat
-GZIP?= -9
.if exists(/bin/head)
HEAD?= /bin/head
.else
@@ -73,7 +82,6 @@ ID?= /bin/id
ID?= /usr/bin/id
.endif
IMAKE?= ${X11BASE}/bin/imake ${IMAKEOPTS}
-IMAKEOPTS+= -DBuildHtmlManPages=NO
LDCONFIG?= /sbin/ldconfig
LN?= /bin/ln
LS?= /bin/ls
@@ -94,14 +102,9 @@ NICE?= /usr/bin/nice
PATCH?= /usr/bin/patch
PAX?= ${LOCALBASE}/bin/pax
PERL5?= ${LOCALBASE}/bin/perl
-PKGLOCALEDIR?= share
-PS?= /bin/ps
PWD_CMD?= /bin/pwd # needs to print physical path
RM?= /bin/rm
RMDIR?= /bin/rmdir
-# XXX: default from bsd.pkg.defaults.mk. Verify/corerct for this platform
-# and remove this comment.
-RSH?= /usr/bin/rsh
.if exists(/bin/sed)
SED?= /bin/sed
.elif exists(/usr/bin/sed)
@@ -115,7 +118,6 @@ SORT?= /bin/sort
.else
SORT?= /usr/bin/sort
.endif
-SU?= /bin/su
TAIL?= /usr/bin/tail
TAR?= ${LOCALBASE}/bin/tar
TEE?= /usr/bin/tee
@@ -128,9 +130,9 @@ TOUCH?= /usr/bin/touch
TR?= /usr/bin/tr
TRUE?= true # Shell builtin
TSORT?= /usr/bin/tsort
-TYPE?= type # Shell builtin
WC?= /usr/bin/wc
XARGS?= /usr/bin/xargs -r
+.endif
CPP_PRECOMP_FLAGS?= # unset
DEF_UMASK?= 022
@@ -165,6 +167,7 @@ IMAKE_MISCMAN_DIR= ${IMAKE_MAN_SOURCE_PATH}7
IMAKE_MANNEWSUFFIX= ${IMAKE_MAN_SUFFIX}
_DO_SHLIB_CHECKS= no # on installation, fixup PLIST for shared libs
+_IMAKE_TOOLS= gmake # extra tools required when we use imake
_IMAKE_MAKE= ${GMAKE} # program which gets invoked by imake
.if exists(/usr/include/netinet6) || exists(/usr/include/linux/in6.h)
_OPSYS_HAS_INET6= yes # IPv6 is standard