@@ -1,6 +1,7 @@
# Copyright (C) 2007 DJ Delorie, see COPYING.DJ for details

include makefile.def
-include makefile.tgt

GCC_MAJOR := $(word 3, $(shell ./misc.exe | $(CROSS_GCC) -E -dD -x c - | egrep 'define\ *__GNUC__'))
GCC_MINOR := $(word 3, $(shell ./misc.exe | $(CROSS_GCC) -E -dD -x c - | egrep 'define\ *__GNUC_MINOR__'))
@@ -54,6 +55,15 @@ gcc.opt: makefile.cfg
@./misc.exe echo - "$(W_STRINGOP)" >>gcc.opt
@./misc.exe echo - "-Wsign-compare" >>gcc.opt
@./misc.exe echo - "-nostdinc" >>gcc.opt
ifeq ($(SUPPORT_IBMPC), yes)
@./misc.exe echo - "-DSUPPORT_IBMPC" >>gcc.opt
endif
ifeq ($(SUPPORT_NEC98), yes)
@./misc.exe echo - "-DSUPPORT_NEC98" >>gcc.opt
endif
ifeq ($(SUPPORT_FMR), yes)
@./misc.exe echo - "-DSUPPORT_FMR" >>gcc.opt
endif
@./misc.exe echo - "$(IQUOTE)" >>gcc.opt


@@ -64,6 +74,15 @@ gcc-l.opt: makefile.cfg
@./misc.exe echo - "-march=i386" >>gcc-l.opt
@./misc.exe echo - "-Wall" >>gcc-l.opt
@./misc.exe echo - "-nostdinc" >>gcc-l.opt
ifeq ($(SUPPORT_IBMPC), yes)
@./misc.exe echo - "-DSUPPORT_IBMPC" >>gcc.opt
endif
ifeq ($(SUPPORT_NEC98), yes)
@./misc.exe echo - "-DSUPPORT_NEC98" >>gcc.opt
endif
ifeq ($(SUPPORT_FMR), yes)
@./misc.exe echo - "-DSUPPORT_FMR" >>gcc.opt
endif
@./misc.exe echo - "$(IQUOTE)" >>gcc-l.opt

gpp.opt: gcc.opt
@@ -0,0 +1,11 @@
#
# define target platform(s)
#
# SUPPORT_IBMPC common PC: IBM PC compatibles (default)
# SUPPORT_NEC98 NEC PC-9800 series (PC-9801, PC-9821, PC-H98) and EPSON's compatibles
# SUPPORT_FMR Fujitsu FM R series (including FM TOWNS) - not supported yet

SUPPORT_IBMPC=yes
SUPPORT_NEC98=yes
#SUPPORT_FMR=yes