2013-04-28 14:53:56 +02:00
|
|
|
# $NetBSD: OpenBSD.mk,v 1.37 2013/04/28 12:53:56 obache Exp $
|
2002-11-30 15:40:55 +01:00
|
|
|
#
|
|
|
|
# Variable definitions for the OpenBSD operating system.
|
|
|
|
|
2005-05-03 20:30:12 +02:00
|
|
|
ECHO_N?= ${ECHO} -n
|
2012-05-13 10:20:11 +02:00
|
|
|
LDD?= /usr/bin/ldd
|
|
|
|
LDD_ENV?= LD_TRACE_LOADED_OBJECTS_FMT1='\t-l%o => %p\n' \
|
|
|
|
LD_TRACE_LOADED_OBJECTS_FMT2=
|
2007-10-19 15:41:34 +02:00
|
|
|
IMAKE_MAKE?= ${MAKE} # program which gets invoked by imake
|
|
|
|
PKGLOCALEDIR?= share
|
2005-05-03 20:30:12 +02:00
|
|
|
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?= type # Shell builtin
|
|
|
|
|
2004-12-27 09:38:09 +01:00
|
|
|
.if exists(/usr/sbin/user)
|
|
|
|
USERADD?= /usr/sbin/useradd
|
|
|
|
GROUPADD?= /usr/sbin/groupadd
|
|
|
|
.endif
|
|
|
|
|
2007-10-19 15:41:34 +02:00
|
|
|
CPP_PRECOMP_FLAGS?= # unset
|
|
|
|
DEF_UMASK?= 0022
|
2002-11-30 15:40:55 +01:00
|
|
|
.if ${OBJECT_FMT} == "ELF"
|
|
|
|
EXPORT_SYMBOLS_LDFLAGS?=-Wl,-E # add symbols to the dynamic symbol table
|
|
|
|
.else
|
|
|
|
EXPORT_SYMBOLS_LDFLAGS?=-Wl,--export-dynamic
|
|
|
|
.endif
|
2012-11-19 12:34:15 +01:00
|
|
|
MOTIF_TYPE_DEFAULT?= motif # default 2.0 compatible libs type
|
2002-11-30 15:40:55 +01:00
|
|
|
NOLOGIN?= /sbin/nologin
|
2007-10-19 15:41:34 +02:00
|
|
|
PKG_TOOLS_BIN?= ${LOCALBASE}/sbin
|
2002-11-30 15:40:55 +01:00
|
|
|
ROOT_CMD?= ${SU} - root -c
|
|
|
|
ROOT_USER?= root
|
|
|
|
ROOT_GROUP?= wheel
|
2007-10-19 15:41:34 +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`
|
2002-11-30 15:40:55 +01:00
|
|
|
|
2011-09-10 18:30:02 +02:00
|
|
|
X11_TYPE?= native
|
|
|
|
|
2012-05-04 13:46:02 +02:00
|
|
|
_OPSYS_SYSTEM_RPATH?= /usr/lib
|
2013-04-28 14:53:56 +02:00
|
|
|
_OPSYS_LIB_DIRS?= /usr/lib
|
|
|
|
_OPSYS_INCLUDE_DIRS?= /usr/include
|
2012-05-04 13:46:02 +02:00
|
|
|
|
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
|
2002-11-30 15:40:55 +01:00
|
|
|
_OPSYS_HAS_MANZ= yes # MANZ controls gzipping of man pages
|
|
|
|
_OPSYS_HAS_OSSAUDIO= yes # libossaudio is available
|
2002-12-03 22:13:37 +01:00
|
|
|
_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-03-11 23:57:22 +01:00
|
|
|
_OPSYS_SHLIB_TYPE= ELF/a.out # shared lib type
|
2002-12-03 20:24:26 +01:00
|
|
|
_PATCH_CAN_BACKUP= yes # native patch(1) can make backups
|
2003-09-24 08:26:21 +02:00
|
|
|
.if ${OS_VERSION} >= 3.4
|
2003-12-16 23:54:13 +01:00
|
|
|
_PATCH_BACKUP_ARG?= -V simple -z # switch to patch(1) for backup suffix
|
2003-09-24 08:26:21 +02:00
|
|
|
.else
|
2003-12-16 23:54:13 +01:00
|
|
|
_PATCH_BACKUP_ARG?= -V simple -b # switch to patch(1) for backup suffix
|
2003-09-24 08:26:21 +02:00
|
|
|
.endif
|
2002-11-30 15:40:55 +01:00
|
|
|
_USE_RPATH= yes # add rpath to LDFLAGS
|
|
|
|
|
2003-04-15 07:29:45 +02:00
|
|
|
# flags passed to the linker to extract all symbols from static archives.
|
|
|
|
# this is GNU ld.
|
|
|
|
_OPSYS_WHOLE_ARCHIVE_FLAG= -Wl,--whole-archive
|
|
|
|
_OPSYS_NO_WHOLE_ARCHIVE_FLAG= -Wl,--no-whole-archive
|
|
|
|
|
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-11-30 15:40:55 +01:00
|
|
|
.if (${MACHINE_ARCH} == alpha)
|
|
|
|
DEFAULT_SERIAL_DEVICE?= /dev/ttyC0
|
|
|
|
SERIAL_DEVICES?= /dev/ttyC0 \
|
|
|
|
/dev/ttyC1
|
|
|
|
.elif (${MACHINE_ARCH} == "i386")
|
|
|
|
DEFAULT_SERIAL_DEVICE?= /dev/tty00
|
|
|
|
SERIAL_DEVICES?= /dev/tty00 \
|
|
|
|
/dev/tty01
|
|
|
|
.elif (${MACHINE_ARCH} == m68k)
|
|
|
|
DEFAULT_SERIAL_DEVICE?= /dev/tty00
|
|
|
|
SERIAL_DEVICES?= /dev/tty00 \
|
|
|
|
/dev/tty01
|
|
|
|
.elif (${MACHINE_ARCH} == "sparc")
|
|
|
|
DEFAULT_SERIAL_DEVICE?= /dev/ttya
|
|
|
|
SERIAL_DEVICES?= /dev/ttya \
|
|
|
|
/dev/ttyb
|
|
|
|
.else
|
|
|
|
DEFAULT_SERIAL_DEVICE?= /dev/null
|
|
|
|
SERIAL_DEVICES?= /dev/null
|
|
|
|
.endif
|
2004-04-19 22:19:46 +02:00
|
|
|
|
2012-01-19 11:53:56 +01:00
|
|
|
# check for kqueue(2) support, added in OpenBSD-2.9
|
|
|
|
.if exists(/usr/include/sys/event.h)
|
|
|
|
PKG_HAVE_KQUEUE= # defined
|
|
|
|
.endif
|
|
|
|
|
2012-05-04 13:46:02 +02:00
|
|
|
_OPSYS_CAN_CHECK_SHLIBS= yes # use readelf in check/bsd.check-vars.mk
|
2009-07-26 07:32:43 +02:00
|
|
|
|
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.
|
2005-01-25 19:15:58 +01:00
|
|
|
_OPSYS_MAX_CMDLEN_CMD= /sbin/sysctl -n kern.argmax
|