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