1#ident "@(#)sun4-sunos5-gcc.rul	1.6 04/01/02 "
2###########################################################################
3# Written 1996 by J. Schilling
4###########################################################################
5#
6# Platform dependent MACROS for SunOS 5.x on sparc
7#
8###########################################################################
9# This program is free software; you can redistribute it and/or modify
10# it under the terms of the GNU General Public License as published by
11# the Free Software Foundation; either version 2, or (at your option)
12# any later version.
13#
14# This program is distributed in the hope that it will be useful,
15# but WITHOUT ANY WARRANTY; without even the implied warranty of
16# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17# GNU General Public License for more details.
18#
19# You should have received a copy of the GNU General Public License along with
20# this program; see the file COPYING.  If not, write to the Free Software
21# Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
22###########################################################################
23include $(SRCROOT)/$(RULESDIR)/rules.prg
24###########################################################################
25
26CPPFLAGS=	$(CPPOPTS) $(CPPOPTX)
27CFLAGS=		$(COPTS) $(CWARNOPTS) $(COPTOPT) $(GCCOPTOPT) $(COPTX)
28
29OSDEFS=		-D__SVR4 -DSVR4
30CPPOPTS=	-I. -I$(ARCHDIR) -I$(OINCSDIR) $(INCDIRS:%=-I%) $(OSDEFS)
31COPTS=
32CWOPTS=		-Wall -Wtraditional \
33		-Wshadow -Wmissing-prototypes -Wstrict-prototypes
34COPTOPT=	-O
35KDEFINES=	-DKERNEL -D_KERNEL
36COPTDYN=	-fpic
37COPTGPROF=	-pg
38
39LIB_PREFIX=	lib
40LIB_SUFFIX=	.a
41SHL_SUFFIX=	.so.1
42
43LIB_SOCKET=	-lsocket -lnsl -ldl
44LIB_MATH=	-lm
45LIB_KVM=	-lkvm -lelf
46LIB_VOLMGT=	-lvolmgt
47
48LIBS_PATH=	-L$(OLIBSDIR)
49
50LDFLAGS=	$(LDOPTS) $(LDOPTX)
51LDLIBS=		$(LIBS) $(LIBX)
52
53LDOPTS=		$(LIBS_PATH) $(LDPATH) $(RUNPATH)
54LDOPTDYN=	-dy -G -ztext -h $(TARGET) -ldl
55LNDYNLIB=	@$(SYMLINK) $(TARGET) $(PTARGET_BASE).so
56
57FLOAT_OPTIONS=
58
59CC=		@echo "	==> COMPILING \"$@\""; gcc
60LDCC=		@echo "	==> LINKING \"$@\""; gcc
61DYNLD=		@echo "	==> LINKING dynamic library \"$@\""; gcc
62RANLIB=		@echo "	==> RANDOMIZING ARCHIVE \"$@\""; true
63ARFLAGS=	crs
64
65RMDEP=		:
66MKDEP=		@echo "	==> MAKING DEPENDENCIES \"$@\""; $(RMDEP); gcc -M
67MKDEP_OUT=
68