# The default used for an unknown/unset TARGET
# $Id: T_default,v 1.21 2007/03/22 16:51:38 tlaronde Exp $
#
# Copyright 2004 Thierry LARONDE <tlaronde@polynum.com>
# Public Domain. NO GUARANTEES!

#----- TARGET environment dependent

TARGET=${TARGET:-$(uname -s)}
TARGET_RELEASE=${TARGET_RELEASE:-$(uname -r)}
TARGET_ARCH=${TARGET_ARCH:-$(uname -m)}
DISTDIR=${DISTDIR:-"/usr/local"}
TARGETBINDIR=${TARGETBINDIR:-"/usr/local/bin"}
TARGETSBINDIR=${TARGETSBINDIR:-"/usr/local/sbin"}

OBJECT_FORMAT=$OBJECTFORMAT

# What kind of libraries are supported? static, sshared (static shared),
# dshared (dynamic shared), or unset if use default.
#
LIB_TYPES=${LIB_TYPES:-"static"}

# The default substitution expression for translating rkcomp
# fixed library naming scheme in the host supported one. 
# static lib.
#
LIB_A_TR=${LIB_A_TR:-'-e s!\(lib[^/]\{1,\}\)__\([0-9.]*\)!\1.a!'}

# Static shared.
#
LIB_SSH_TR=${LIB_SSH_TR:-'d'}

# And to find the shared lib name (the default does not care about
# versioning. You'd better define something corresponding to your real
# TARGET!).
#
LIB_DSH_TR=${LIB_DSH_TR:-'-e s!\(lib[^/]\{1,\}\)__[0-9.]*!\1.so!'}

# Standard libes shall be mapped.
#
CLIB=${CLIB:-$(rk_which_lib_of libc__ stdio.h)}
MATHLIB=${MATHLIB:-$(rk_which_lib_of libm__ math.h)}
YACCLIB=${YACCLIB:-$(rk_which_lib_of liby__ NULL)}
LEXLIB=${LEXLIB:-$(rk_which_lib_of libl__ NULL)}

# POSIX extensions.
#
ICONVLIB=$ICONVLIB
RK_ICONV_DEFS=rk_iconv_defs.h
RK_PTY_TYPE=PTY_UNIX98

# C99.
#
HAVE_VSNPRINTF=$HAVE_VSNPRINTF
