1
#ident "@(#)i386-ms-dos-gcc.rul 1.1 03/11/23 "
2
###########################################################################
4
# Platform dependent MACROS for MSDOS/DJGPP v2
6
###########################################################################
7
# This program is free software; you can redistribute it and/or modify
8
# it under the terms of the GNU General Public License as published by
9
# the Free Software Foundation; either version 2, or (at your option)
12
# This program is distributed in the hope that it will be useful,
13
# but WITHOUT ANY WARRANTY; without even the implied warranty of
14
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
# GNU General Public License for more details.
17
# You should have received a copy of the GNU General Public License along with
18
# this program; see the file COPYING. If not, write to the Free Software
19
# Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20
###########################################################################
21
include $(SRCROOT)/$(RULESDIR)/rules.prg
22
###########################################################################
24
CPPFLAGS= $(CPPOPTS) $(CPPOPTX)
25
CFLAGS= $(COPTS) $(CWARNOPTS) $(COPTOPT) $(GCCOPTOPT) $(COPTX)
28
CPPOPTS= -I. -I$(ARCHDIR) -I$(OINCSDIR) $(INCDIRS:%=-I%) $(OSDEFS)
30
CWOPTS= -Wall -Wtraditional \
31
-Wshadow -Wmissing-prototypes -Wstrict-prototypes
46
LIBS_PATH= -L$(OLIBSDIR)
48
LDFLAGS= $(LDOPTS) $(LDOPTX)
49
LDLIBS= $(LIBS) $(LIBX)
51
LDOPTS= $(LIBS_PATH) $(LDPATH)
57
CC= @echo " ==> COMPILING \"$@\""; gcc
58
LDCC= @echo " ==> LINKING \"$@\""; gcc
59
#LDCC= @echo " ==> LINKING \"$@\""; gcc -Wl,--strip-all
60
DYNLD= @echo " ==> LINKING dynamic library \"$@\""; ld
61
RANLIB= @echo " ==> RANDOMIZING ARCHIVE \"$@\""; true
67
MKDEP= @echo " ==> MAKING DEPENDENCIES \"$@\""; $(RMDEP); gcc -M