1#ident "@(#)i586-linux-suncc.rul	1.7 18/04/11 "
2###########################################################################
3# Written 2007-2018 by J. Schilling
4###########################################################################
5#
6# Platform dependent MACROS for Linux using Sun Studio
7#
8###########################################################################
9# Copyright (c) J. Schilling
10###########################################################################
11# The contents of this file are subject to the terms of the
12# Common Development and Distribution License, Version 1.0 only
13# (the "License").  You may not use this file except in compliance
14# with the License.
15#
16# See the file CDDL.Schily.txt in this distribution for details.
17# A copy of the CDDL is also available via the Internet at
18# http://www.opensource.org/licenses/cddl1.txt
19#
20# When distributing Covered Code, include this CDDL HEADER in each
21# file and include the License file CDDL.Schily.txt from this distribution.
22###########################################################################
23include $(SRCROOT)/$(RULESDIR)/rules.prg
24###########################################################################
25include $(SRCROOT)/$(RULESDIR)/cc-$(C_ARCH:cc%=sunpro%).rul
26CC_COM_DEF=	suncc
27CC++_COM_DEF=	sunCC
28
29#
30# LINUX_SRC_INCLUDE is defined in DEFAULTS/Defaults.linux
31#
32INCDIRSX +=	$(LINUX_SRC_INCLUDE)
33OSDEFS +=
34
35KDEFINES=	-DKERNEL -D_KERNEL
36
37LIB_PREFIX=	lib
38LIB_SUFFIX=	.a
39SHL_SUFFIX=	.so.$(DYNMAJOR).$(DYNMINOR)
40
41LIB_SOCKET=
42LIB_MATH=	-lm
43LIB_KVM=
44
45#LDOPTS=		$(LIBS_PATH) $(LDPATH) $(RUNPATH:-R%=-Wl,-R%)
46#
47# Uncomment the next line in case you are on an old Linux version that
48# does not support the -R linker flag.
49#
50#LDOPTS=		$(LIBS_PATH) $(LDPATH)
51
52LDOPTDYN=	-dy -G -Wl,-shared -Wl,-soname,$(TARGET)
53
54LORDER=		echo
55TSORT=		cat
56