1#ident "@(#)i386-bsd-os3-gcc.rul	1.14 21/04/28 "
2###########################################################################
3# Written 1998 by J. Schilling
4###########################################################################
5#
6# Platform dependent MACROS for BSD/OS
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-gcc.rul
26
27OSDEFS +=
28CPPOPTS=	-I$(ARCHDIR) -I$(OINCSDIR) $(INCDIRS:%=-I%) -I/sys $(INCDIRSX:%=-I%)
29
30KDEFINES=	-DKERNEL -D_KERNEL
31
32#COPTDYN=	-fpic
33COPTDYN=
34
35LIB_PREFIX=	lib
36LIB_SUFFIX=	.a
37#SHL_SUFFIX=	.so.1.0
38SHL_SUFFIX=
39
40LIB_SOCKET=
41LIB_MATH=	-lm
42LIB_KVM=
43
44#LDOPTS=		$(LIBS_PATH) $(LDPATH) $(RUNPATH:-R%=-Wl,-R%)
45LDOPTS=		$(LIBS_PATH) $(LDPATH)
46#LDOPTDYN=	-shared -Wl,-soname,$(TARGET)
47#LNDYNLIB=	$(NOECHO)$(RM) $(RM_FORCE) $(PTARGET_BASE).so; $(SYMLINK) $(TARGET) $(PTARGET_BASE).so
48LDOPTDYN=
49LNDYNLIB=
50
51#		shlicc2 is not present oln older or newer systems
52#LDCC=		$(NOECHO)echo "	==> LINKING \"$@\""; shlicc2
53LDCC=		$(NOECHO)echo "	==> LINKING \"$@\""; shlicc
54#DYNLD=		$(NOECHO)echo "	==> LINKING dynamic library \"$@\""; gcc
55DYNLD=
56RANLIB=		$(NOECHO)echo "	==> RANDOMIZING ARCHIVE \"$@\""; ranlib
57