1*2a6b7db3Sskrll# Shorten the target alias so when it is used to set 'libsubdir' 2*2a6b7db3Sskrll# the name will work in both short and long filename environments. 3*2a6b7db3Sskrllifeq ($(findstring -pc-msdosdjgpp,$(target_alias)),-pc-msdosdjgpp) 4*2a6b7db3Sskrlltarget_alias=djgpp 5*2a6b7db3Sskrllendif 6*2a6b7db3Sskrll 7*2a6b7db3Sskrll# The version string must be modified to contain just one dot 8*2a6b7db3Sskrll# because DOS filenames can only have one dot when long filenames 9*2a6b7db3Sskrll# are not available. 10*2a6b7db3Sskrll__version:=$(gcc_version) 11*2a6b7db3Sskrll__version:=$(subst ., ,$(__version)) 12*2a6b7db3Sskrllifeq ($(words $(__version)),3) 13*2a6b7db3Sskrllgcc_version=$(word 1,$(__version)).$(word 2,$(__version))$(word 3,$(__version)) 14*2a6b7db3Sskrllendif 15