# $Id: C_posix,v 1.16 2007/03/22 16:51:36 tlaronde Exp $
#
# This defines a POSIX compliant compile environment.
#
# Copyright 2004 Thierry LARONDE <tlaronde@polynum.com>
# Public Domain. NO GUARANTEES!

# Project can test this to see what Compile env is here.
#
RK_COMPILE_ENV="posix"

#----- These ones will be defined by config if not set. 

STDC="YES"
C_POSIX_VERSION=

#----- POSIX known (or definable)

SHELL="/bin/sh"
MAKE="make"

# $(CC) is a front-end to cpp, cc, as, ld. Hence in POSIX no definition
# for $(CPP), $(AS) and $(LD).
#
CC=$(rk_which_cmd_of c99 c89 cc)
CFLAGS="-O"
LEX=$(rk_which_cmd_of lex flex)
LFLAGS=
YACC=$(rk_which_cmd_of yacc bison)
YFLAGS=
LDFLAGS="-s"
AR="ar"
ARFLAGS="-rv"

# These ones are NOT POSIX defined but are used by the rkcomp
# POSIX does not defined this ABI dependent stuff. The fact that
# a program is compiled using shared libes or not depends on the
# system settings and POSIX does not require not to use shared libes:
# this is undefined. 
#
CPPFLAGS=
LD_DSHARED=
CFLAGS_DSHARED=
LDFLAGS_DSHARED=

# ELF object link specific.
# How to define the SONAME of an ELF shared lib.
#
LDFLAGS_ELF_SONAME=

# How to set a rpath in an ELF object.
#
LDFLAGS_ELF_RPATH=

# How to specify link time dir path to search for included dshared 
# libes.
#
LDFLAGS_ELF_RPATH_LINK=
