|
|
@@ -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 |
|
|
|