# We don't want to use debugging information on DOS.  Unfortunately,
# this requires that we set CFLAGS.
# This used to set -fno-omit-frame-pointer.
CFLAGS=-O2
#
# when building a native compiler for DJGPP, make the target_alias
# a shorter name, since otherwise it will produce some problems, when
# using the same gcc once with long filenames and once with short (8+3)
# filenames
ifeq ($(findstring -pc-msdosdjgpp,$(target_alias)),-pc-msdosdjgpp)
target_alias=djgpp
endif
#
# Let's make version name acceptable for MS-DOS (only one dot)
# 
# Let's do it only when we have 2 or more dots in version
# (not needed for gcc-2.95, but required for gcc-2.95.1).
# Also let's provide support if we'll have 3 dots in version code
#
_version:=$(gcc_version)
__version=$(subst ., ,$(_version))
#
ifeq ($(words $(__version)),3)
gcc_version=$(word 1,$(__version)).$(word 2,$(__version))$(word 3,$(__version))
endif
#
ifeq ($(words $(__version)),4)
gcc_version=$(word 1,$(__version))$(word 2,$(__version)).$(word 3,$(__version))$(word 4,$(__version))
endif
#
