1#ident "@(#)i486-cygwin32_nt-gcc.rul	1.4 02/10/15 "
2###########################################################################
3# Written 1998 by B. Bochow
4###########################################################################
5#
6# Platform dependent MACROS for CYGWIN32_NT
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
20# along with this program; see the file COPYING.  If not, write to
21# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
22###########################################################################
23include $(SRCROOT)/$(RULESDIR)/rules.prg
24###########################################################################
25
26CPPFLAGS=	$(CPPOPTS) $(CPPOPTX)
27CFLAGS=		$(COPTS) $(CWARNOPTS) $(COPTOPT) $(GCCOPTOPT) $(COPTX)
28
29OSDEFS=		-mwin32
30CPPOPTS=	-I. -I$(ARCHDIR) -I$(OINCSDIR) $(INCDIRS:%=-I%) $(OSDEFS)
31COPTS=
32CWOPTS=		-Wall -Wtraditional \
33		-Wshadow -Wmissing-prototypes -Wstrict-prototypes
34COPTOPT=	-O
35#KDEFINES=	-DKERNEL -D_KERNEL
36KDEFINES=
37#COPTDYN=	-fpic
38COPTDYN=
39COPTGPROF=	-pg
40
41LIB_PREFIX=	lib
42LIB_SUFFIX=	.a
43#SHL_SUFFIX=	.so.1.0
44SHL_SUFFIX=	.dll
45
46#LIB_SOCKET=	-lsocket -lnsl -ldl
47LIB_SOCKET=
48LIB_MATH=	-lm
49#LIB_KVM=	-lkvm
50LIB_KVM=
51
52LIBS_PATH=	-L$(OLIBSDIR)
53
54LDFLAGS=	$(LDOPTS) $(LDOPTX)
55LDLIBS=		$(LIBS) $(LIBX)
56
57#LDOPTS=		$(LIBS_PATH) $(LDPATH) $(RUNPATH)
58LDOPTS=		$(LIBS_PATH) $(LDPATH)
59#LDOPTDYN=	-shared -Wl,-soname,$(TARGET)
60LDOPTDYN=
61#LNDYNLIB=	@$(SYMLINK) $(TARGET) $(PTARGET_BASE).so
62LNDYNLIB=
63
64FLOAT_OPTIONS=
65
66CC=		@echo "	==> COMPILING \"$@\""; gcc
67LDCC=		@echo "	==> LINKING \"$@\""; gcc
68#DYNLD=		@echo "	==> LINKING dynamic library \"$@\""; gcc
69DYNLD=		@echo "	==> LINKING dynamic library \"$@\""; ld
70RANLIB=		@echo "	==> RANDOMIZING ARCHIVE \"$@\""; true
71ARFLAGS=	cr
72LORDER=		echo
73TSORT=		cat
74
75RMDEP=		:
76MKDEP=		@echo "	==> MAKING DEPENDENCIES \"$@\""; $(RMDEP); gcc -M
77MKDEP_OUT=
78
79