2003-03-04 15:50:09 +01:00
|
|
|
# $NetBSD: defs.Linux.mk,v 1.48 2003/03/04 14:50:11 seb Exp $
|
2001-06-12 14:49:55 +02:00
|
|
|
#
|
|
|
|
# Variable definitions for the Linux operating system.
|
|
|
|
|
|
|
|
AWK?= /usr/bin/awk
|
2003-02-27 07:05:21 +01:00
|
|
|
.if exists(/bin/basename)
|
2001-06-12 14:49:55 +02:00
|
|
|
BASENAME?= /bin/basename
|
2003-02-27 07:05:21 +01:00
|
|
|
.elif exists(/usr/bin/basename)
|
|
|
|
BASENAME?= /usr/bin/basename
|
|
|
|
.endif
|
2001-06-12 14:49:55 +02:00
|
|
|
CAT?= /bin/cat
|
|
|
|
CHMOD?= /bin/chmod
|
|
|
|
CHOWN?= /bin/chown
|
|
|
|
CHGRP?= /bin/chgrp
|
2001-07-13 08:16:02 +02:00
|
|
|
CMP?= cmp
|
2001-06-12 14:49:55 +02:00
|
|
|
CP?= /bin/cp
|
|
|
|
CUT?= /bin/cut
|
2002-12-15 14:03:02 +01:00
|
|
|
DATE?= /bin/date
|
2001-06-12 14:49:55 +02:00
|
|
|
DC?= /usr/bin/dc
|
2001-08-23 18:54:09 +02:00
|
|
|
DIRNAME?= /usr/bin/dirname
|
2001-06-12 14:49:55 +02:00
|
|
|
ECHO?= /bin/echo
|
2003-02-27 07:05:21 +01:00
|
|
|
.if exists(/bin/egrep)
|
2001-06-12 14:49:55 +02:00
|
|
|
EGREP?= /bin/egrep
|
2003-02-27 07:05:21 +01:00
|
|
|
.elif exists(/usr/bin/egrep)
|
|
|
|
EGREP?= /usr/bin/egrep
|
|
|
|
.endif
|
2002-10-05 01:32:17 +02:00
|
|
|
EXPR?= /usr/bin/expr
|
2001-06-12 14:49:55 +02:00
|
|
|
FALSE?= /bin/false
|
2003-02-27 07:05:21 +01:00
|
|
|
.if exists(/bin/fgrep)
|
2002-12-15 03:12:32 +01:00
|
|
|
FGREP?= /bin/fgrep
|
2003-02-27 07:05:21 +01:00
|
|
|
.elif exists(/usr/bin/fgrep)
|
|
|
|
FGREP?= /usr/bin/fgrep
|
|
|
|
.endif
|
2001-07-15 14:40:03 +02:00
|
|
|
FILE_CMD?= /usr/bin/file
|
2001-06-12 14:49:55 +02:00
|
|
|
FIND?= /usr/bin/find
|
2001-12-19 11:29:11 +01:00
|
|
|
GMAKE?= /usr/bin/make
|
2003-02-27 07:05:21 +01:00
|
|
|
.if exists(/bin/grep)
|
2001-06-12 14:49:55 +02:00
|
|
|
GREP?= /bin/grep
|
2003-02-27 07:05:21 +01:00
|
|
|
.elif exists(/usr/bin/grep)
|
|
|
|
GREP?= /usr/bin/grep
|
|
|
|
.endif
|
2001-06-12 14:49:55 +02:00
|
|
|
GTAR?= /bin/tar
|
|
|
|
GUNZIP_CMD?= /usr/bin/gunzip -f
|
|
|
|
GZCAT?= /bin/zcat
|
|
|
|
GZIP?= -9
|
|
|
|
GZIP_CMD?= /usr/bin/gzip -nf ${GZIP}
|
|
|
|
HEAD?= /usr/bin/head
|
2003-02-28 04:41:39 +01:00
|
|
|
HOSTNAME_CMD?= /bin/hostname
|
2001-06-12 14:49:55 +02:00
|
|
|
ID?= /usr/bin/id
|
|
|
|
LDCONFIG?= /sbin/ldconfig
|
|
|
|
LN?= /bin/ln
|
|
|
|
LS?= /bin/ls
|
2003-03-04 15:50:09 +01:00
|
|
|
M4?= /usr/bin/m4
|
2001-06-12 14:49:55 +02:00
|
|
|
MKDIR?= /bin/mkdir -p
|
2002-06-21 19:28:44 +02:00
|
|
|
MTREE?= ${ZOULARISBASE}/sbin/mtree
|
2001-06-12 14:49:55 +02:00
|
|
|
MV?= /bin/mv
|
2002-12-15 14:03:02 +01:00
|
|
|
NICE?= /bin/nice
|
2001-06-12 14:49:55 +02:00
|
|
|
PATCH?= /usr/bin/patch
|
|
|
|
PAX?= ${ZOULARISBASE}/bin/pax
|
2002-04-10 00:15:40 +02:00
|
|
|
PERL5?= ${LOCALBASE}/bin/perl
|
2001-06-12 14:49:55 +02:00
|
|
|
PKGLOCALEDIR?= share
|
2002-01-19 22:29:41 +01:00
|
|
|
PS?= /bin/ps
|
2003-01-15 21:55:38 +01:00
|
|
|
PWD_CMD?= /bin/pwd # needs to print physical path
|
2001-06-12 14:49:55 +02:00
|
|
|
RM?= /bin/rm
|
|
|
|
RMDIR?= /bin/rmdir
|
2003-02-27 07:05:21 +01:00
|
|
|
.if exists(/bin/sed)
|
2001-06-12 14:49:55 +02:00
|
|
|
SED?= /bin/sed
|
2003-02-27 07:05:21 +01:00
|
|
|
.elif exists(/usr/bin/sed)
|
|
|
|
SED?= /usr/bin/sed
|
|
|
|
.endif
|
2001-06-12 14:49:55 +02:00
|
|
|
SETENV?= /usr/bin/env
|
|
|
|
SH?= /bin/sh
|
2002-01-19 22:29:41 +01:00
|
|
|
SHLOCK= ${LOCALBASE}/bin/shlock
|
2001-06-13 20:19:52 +02:00
|
|
|
.if exists(/bin/sort)
|
|
|
|
SORT?= /bin/sort
|
|
|
|
.else
|
2001-06-12 15:16:09 +02:00
|
|
|
SORT?= /usr/bin/sort
|
2001-08-23 17:27:50 +02:00
|
|
|
.endif
|
2001-06-12 14:49:55 +02:00
|
|
|
SU?= /bin/su
|
|
|
|
TAIL?= /usr/bin/tail
|
2002-12-16 10:18:56 +01:00
|
|
|
TEE?= /usr/bin/tee
|
2001-06-12 14:49:55 +02:00
|
|
|
TEST?= /usr/bin/test
|
|
|
|
TOUCH?= /bin/touch
|
|
|
|
TR?= /usr/bin/tr
|
|
|
|
TRUE?= /bin/true
|
2002-12-16 10:18:56 +01:00
|
|
|
TSORT?= /usr/bin/tsort
|
2001-06-12 14:49:55 +02:00
|
|
|
TYPE?= type
|
2001-06-12 15:16:09 +02:00
|
|
|
WC?= /usr/bin/wc
|
2001-06-12 14:49:55 +02:00
|
|
|
XARGS?= /usr/bin/xargs -r
|
2001-11-19 17:17:51 +01:00
|
|
|
|
2002-06-02 02:40:18 +02:00
|
|
|
CPP_PRECOMP_FLAGS?= # unset
|
2001-11-21 15:10:06 +01:00
|
|
|
DEF_UMASK?= 022
|
|
|
|
DEFAULT_SERIAL_DEVICE?= /dev/null
|
2002-09-04 16:47:32 +02:00
|
|
|
EXPORT_SYMBOLS_LDFLAGS?= # Don't add symbols to the dynamic symbol table
|
2001-11-21 15:10:06 +01:00
|
|
|
GROUPADD?= /usr/sbin/groupadd
|
2001-11-21 14:54:14 +01:00
|
|
|
MOTIF_TYPE_DEFAULT?= openmotif # default 2.0 compatible libs type
|
|
|
|
MOTIF12_TYPE_DEFAULT?= lesstif12 # default 1.2 compatible libs type
|
2001-11-21 15:10:06 +01:00
|
|
|
NOLOGIN?= ${FALSE}
|
2002-06-21 19:28:44 +02:00
|
|
|
PKG_TOOLS_BIN?= ${ZOULARISBASE}/sbin
|
2002-07-15 18:24:01 +02:00
|
|
|
ROOT_CMD?= ${SU} - root -c
|
2001-11-21 15:10:06 +01:00
|
|
|
ROOT_GROUP?= wheel
|
|
|
|
ROOT_USER?= root
|
|
|
|
SERIAL_DEVICES?= /dev/null
|
2002-08-28 13:06:17 +02:00
|
|
|
ULIMIT_CMD_datasize?= ulimit -d `ulimit -H -d`
|
|
|
|
ULIMIT_CMD_stacksize?= ulimit -s `ulimit -H -s`
|
|
|
|
ULIMIT_CMD_memorysize?= ulimit -m `ulimit -H -m`
|
2001-11-21 15:10:06 +01:00
|
|
|
USERADD?= /usr/sbin/useradd
|
2002-06-21 19:28:44 +02:00
|
|
|
ZOULARISBASE?= /usr/pkg
|
2001-11-21 13:53:04 +01:00
|
|
|
|
2003-02-24 20:49:47 +01:00
|
|
|
# imake installs manpages in weird places
|
|
|
|
# these values from /usr/X11R6/lib/X11/config/linux.cf
|
|
|
|
IMAKE_MAN_SOURCE_PATH= man/man
|
|
|
|
IMAKE_MAN_SUFFIX= 1x
|
|
|
|
IMAKE_LIBMAN_SUFFIX= 3x
|
|
|
|
IMAKE_FILEMAN_SUFFIX= 5x
|
|
|
|
IMAKE_MAN_DIR= ${IMAKE_MAN_SOURCE_PATH}1
|
|
|
|
IMAKE_LIBMAN_DIR= ${IMAKE_MAN_SOURCE_PATH}3
|
|
|
|
IMAKE_FILEMAN_DIR= ${IMAKE_MAN_SOURCE_PATH}5
|
|
|
|
IMAKE_MANNEWSUFFIX= ${IMAKE_MAN_SUFFIX}
|
|
|
|
|
2001-11-21 14:17:14 +01:00
|
|
|
_DO_SHLIB_CHECKS= no # on installation, fixup PLIST for shared libs
|
2001-11-21 14:44:44 +01:00
|
|
|
_IMAKE_MAKE= ${MAKE} # program which gets invoked by imake
|
2001-12-19 11:29:11 +01:00
|
|
|
_OPSYS_HAS_GMAKE= yes # GNU make is standard
|
2002-12-18 07:18:14 +01:00
|
|
|
.if exists(/usr/include/netinet6)
|
|
|
|
_OPSYS_HAS_INET6= yes # IPv6 is standard
|
|
|
|
.else
|
|
|
|
_OPSYS_HAS_INET6= no # IPv6 is not standard
|
|
|
|
.endif
|
2002-12-03 21:53:39 +01:00
|
|
|
_OPSYS_HAS_JAVA= no # Java is not standard
|
2001-11-21 14:44:44 +01:00
|
|
|
_OPSYS_HAS_MANZ= no # no MANZ for gzipping of man pages
|
2001-11-21 14:57:31 +01:00
|
|
|
_OPSYS_HAS_OSSAUDIO= no # libossaudio is available
|
2002-12-03 22:13:37 +01:00
|
|
|
_OPSYS_PERL_REQD= # no base version of perl required
|
2002-12-03 20:11:30 +01:00
|
|
|
_OPSYS_RPATH_NAME= -R # name of symbol in rpath directive to linker
|
2002-12-03 20:24:26 +01:00
|
|
|
_PATCH_CAN_BACKUP= yes # native patch(1) can make backups
|
2002-06-21 19:28:44 +02:00
|
|
|
_PATCH_BACKUP_ARG= -b -V simple -z # switch to patch(1) for backup suffix
|
2001-11-21 14:44:44 +01:00
|
|
|
_PREFORMATTED_MAN_DIR= cat # directory where catman pages are
|
2002-12-03 20:17:33 +01:00
|
|
|
_USE_GNU_GETTEXT= no # Don't use GNU gettext
|
2001-11-21 14:44:44 +01:00
|
|
|
_USE_RPATH= yes # add rpath to LDFLAGS
|
2002-02-27 05:41:22 +01:00
|
|
|
|
|
|
|
.if !defined(DEBUG_FLAGS)
|
|
|
|
_STRIPFLAG_CC?= -s # cc(1) option to strip
|
|
|
|
_STRIPFLAG_INSTALL?= -s # install(1) option to strip
|
|
|
|
.endif
|