xref: /netbsd-src/external/gpl3/binutils.old/dist/config/mh-djgpp (revision 16dce51364ebe8aeafbae46bc5aa167b8115bc45)
1*16dce513Schristos# Shorten the target alias so when it is used to set 'libsubdir'
2*16dce513Schristos# the name will work in both short and long filename environments.
3*16dce513Schristosifeq ($(findstring -pc-msdosdjgpp,$(target_alias)),-pc-msdosdjgpp)
4*16dce513Schristostarget_alias=djgpp
5*16dce513Schristosendif
6*16dce513Schristos
7*16dce513Schristos# The version string must be modified to contain just one dot
8*16dce513Schristos# because DOS filenames can only have one dot when long filenames
9*16dce513Schristos# are not available.
10*16dce513Schristos__version:=$(gcc_version)
11*16dce513Schristos__version:=$(subst ., ,$(__version))
12*16dce513Schristosifeq ($(words $(__version)),3)
13*16dce513Schristosgcc_version=$(word 1,$(__version)).$(word 2,$(__version))$(word 3,$(__version))
14*16dce513Schristosendif
15