2007-10-19 15:41:34 +02:00
|
|
|
# $NetBSD: SunOS.mk,v 1.32 2007/10/19 13:41:35 rillig Exp $
|
2001-06-12 14:49:55 +02:00
|
|
|
#
|
|
|
|
# Variable definitions for the SunOS/Solaris operating system.
|
|
|
|
|
2005-05-03 20:30:12 +02:00
|
|
|
ECHO_N?= ${ECHO} -n
|
2005-06-01 20:14:23 +02:00
|
|
|
IMAKE_MAKE?= /usr/ccs/bin/make # program which gets invoked by imake
|
2005-05-03 20:30:12 +02:00
|
|
|
PKGLOCALEDIR?= lib
|
|
|
|
PS?= /bin/ps
|
2005-08-02 05:38:09 +02:00
|
|
|
# XXX: default from defaults/mk.conf. Verify/correct for this platform
|
2005-05-03 20:30:12 +02:00
|
|
|
# and remove this comment.
|
|
|
|
SU?= /usr/bin/su
|
|
|
|
TYPE?= /usr/bin/type
|
|
|
|
|
2007-10-19 15:41:34 +02:00
|
|
|
CPP_PRECOMP_FLAGS?= # unset
|
|
|
|
DEF_UMASK?= 022
|
2001-11-21 15:10:06 +01:00
|
|
|
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?= dt # default 2.0 compatible libs type
|
2007-10-19 15:41:34 +02:00
|
|
|
NOLOGIN?= ${FALSE}
|
2002-07-15 18:24:01 +02:00
|
|
|
ROOT_CMD?= ${SU} - root -c
|
2001-11-21 15:10:06 +01:00
|
|
|
ROOT_GROUP?= root
|
|
|
|
ROOT_USER?= root
|
|
|
|
SERIAL_DEVICES?= /dev/null
|
2004-10-12 10:38:19 +02:00
|
|
|
ULIMIT_CMD_datasize?= ulimit -d `${SETENV} LC_MESSAGES=C ulimit -H -d`
|
|
|
|
ULIMIT_CMD_stacksize?= ulimit -s `${SETENV} LC_MESSAGES=C ulimit -H -s`
|
|
|
|
ULIMIT_CMD_memorysize?= ulimit -v `${SETENV} LC_MESSAGES=C ulimit -H -v`
|
2001-11-21 15:10:06 +01:00
|
|
|
USERADD?= /usr/sbin/useradd
|
2001-11-21 13:53:04 +01:00
|
|
|
|
2003-02-26 16:15:37 +01:00
|
|
|
# imake installs manpages in weird places
|
2005-06-01 16:27:12 +02:00
|
|
|
.if !defined(X11_TYPE) || defined(X11_TYPE) && !empty(X11_TYPE:Mnative)
|
|
|
|
# openwindows
|
2003-04-10 03:39:52 +02:00
|
|
|
IMAKE_MAN_SOURCE_PATH= share/man/man
|
2003-02-26 16:15:37 +01:00
|
|
|
IMAKE_MAN_SUFFIX= 1
|
|
|
|
IMAKE_LIBMAN_SUFFIX= 3
|
2005-06-01 16:27:12 +02:00
|
|
|
.else
|
|
|
|
# xfree86, xorg
|
|
|
|
IMAKE_MAN_SOURCE_PATH= man/man
|
|
|
|
IMAKE_MAN_SUFFIX= 1x
|
|
|
|
IMAKE_LIBMAN_SUFFIX= 3x
|
|
|
|
.endif
|
2005-06-05 01:33:50 +02:00
|
|
|
IMAKE_FILEMAN_SUFFIX= 4
|
2005-12-04 02:44:30 +01:00
|
|
|
IMAKE_GAMEMAN_SUFFIX= 6
|
2003-02-26 16:15:37 +01:00
|
|
|
IMAKE_MAN_DIR= ${IMAKE_MAN_SOURCE_PATH}1
|
|
|
|
IMAKE_LIBMAN_DIR= ${IMAKE_MAN_SOURCE_PATH}3
|
2005-06-05 01:33:50 +02:00
|
|
|
IMAKE_FILEMAN_DIR= ${IMAKE_MAN_SOURCE_PATH}4
|
2005-12-04 02:44:30 +01:00
|
|
|
IMAKE_GAMEMAN_DIR= ${IMAKE_MAN_SOURCE_PATH}6
|
2003-04-10 03:39:52 +02:00
|
|
|
IMAKE_MANNEWSUFFIX= ${IMAKE_MAN_SUFFIX}
|
2006-01-13 00:43:56 +01:00
|
|
|
IMAKE_MANINSTALL?= maninstall
|
2003-02-26 16:15:37 +01:00
|
|
|
|
2007-07-29 07:18:36 +02:00
|
|
|
_OPSYS_EMULDIR.solaris= # empty
|
|
|
|
_OPSYS_EMULDIR.solaris32= # empty
|
|
|
|
_OPSYS_EMULDIR.sunos= # empty
|
|
|
|
|
2002-12-18 07:18:14 +01:00
|
|
|
.if exists(/usr/include/netinet/ip6.h)
|
|
|
|
_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
|
2006-04-02 01:27:49 +02:00
|
|
|
_OPSYS_LIBTOOL_REQD= 1.5.22nb3
|
|
|
|
_OPSYS_PERL_REQD= # no base version of perl required
|
2003-09-14 18:30:34 +02:00
|
|
|
_OPSYS_PTHREAD_AUTO= no # -lpthread needed for pthreads
|
2004-11-15 15:48:18 +01:00
|
|
|
_OPSYS_SHLIB_TYPE= ELF # shared lib type
|
2002-12-03 20:24:26 +01:00
|
|
|
_PATCH_CAN_BACKUP= yes # native patch(1) can make backups
|
2003-12-16 23:54:13 +01:00
|
|
|
_PATCH_BACKUP_ARG?= -b -V simple -z # switch to patch(1) for backup suffix
|
2001-11-21 14:44:44 +01:00
|
|
|
_USE_RPATH= yes # add rpath to LDFLAGS
|
2001-11-21 15:10:06 +01:00
|
|
|
|
2003-04-15 07:29:45 +02:00
|
|
|
# flags passed to the linker to extract all symbols from static archives.
|
|
|
|
# this is the standard Solaris linker, /usr/ccs/bin/ld. The use of GNU
|
|
|
|
# ld is not currently supported.
|
|
|
|
_OPSYS_WHOLE_ARCHIVE_FLAG= -z allextract
|
|
|
|
_OPSYS_NO_WHOLE_ARCHIVE_FLAG= -z defaultextract
|
|
|
|
|
2002-12-09 02:22:07 +01:00
|
|
|
# Solaris has /usr/include/iconv.h, but it's not GNU iconv, so mark it
|
|
|
|
# incompatible.
|
2003-10-19 09:38:31 +02:00
|
|
|
_INCOMPAT_ICONV= SunOS-*-*
|
2002-12-09 02:22:07 +01:00
|
|
|
|
2007-10-19 15:41:34 +02:00
|
|
|
_STRIPFLAG_CC?= ${_INSTALL_UNSTRIPPED:D:U-s} # cc(1) option to strip
|
|
|
|
_STRIPFLAG_INSTALL?= ${_INSTALL_UNSTRIPPED:D:U-s} # install(1) option to strip
|
|
|
|
|
2002-10-17 16:39:18 +02:00
|
|
|
PKG_TOOLS_BIN?= ${LOCALBASE}/sbin
|
2004-04-19 22:19:46 +02:00
|
|
|
|
|
|
|
# check for maximum command line length and set it in configure's environment,
|
|
|
|
# to avoid a test required by the libtool script that takes forever.
|
|
|
|
# FIXME: Adjust to work on this system and enable the lines below.
|
2005-01-25 19:15:58 +01:00
|
|
|
#_OPSYS_MAX_CMDLEN_CMD= /sbin/sysctl -n kern.argmax
|
2004-05-12 16:10:18 +02:00
|
|
|
|
|
|
|
# If games are to be installed setgid, then SETGIDGAME is set to 'yes'
|
2005-08-02 02:23:31 +02:00
|
|
|
# (it defaults to 'no' as per defaults/mk.conf).
|
2004-05-12 16:10:18 +02:00
|
|
|
# Set the group and mode to meaningful values in that case (defaults to
|
2005-08-02 02:23:31 +02:00
|
|
|
# BINOWN, BINGRP and BINMODE as per defaults/mk.conf).
|
2004-05-12 16:10:18 +02:00
|
|
|
# FIXME: Adjust to work on this system and enable the lines below.
|
|
|
|
#.if !(empty(SETGIDGAME:M[yY][eE][sS]))
|
|
|
|
#GAMEOWN= games
|
|
|
|
#GAMEGRP= games
|
|
|
|
#GAMEMODE= 2555
|
2006-04-12 23:01:15 +02:00
|
|
|
#GAMEDIRMODE= 0775
|
2004-05-12 16:10:18 +02:00
|
|
|
#.endif
|