Initial import from FreeBSD RELENG_4:
[games.git] / contrib / gcc / config / i386 / x-djgpp
1 # translate the version string, so it can be used on DJGPP, where only
2 # one dot in filename is allowed
3
4 # to avoid recursion when redefining $(version)
5 _version:=$(version)
6 __version=$(subst ., ,$(_version))
7 version=$(word 1,$(__version))$(word 2,$(__version)).$(word 3,$(__version))
8
9 SYSTEM_HEADER_DIR=$(DJDIR)/include
10 X_CPPFLAGS=-DSTANDARD_INCLUDE_DIR=\"\$$DJDIR/include\" \
11            -DSTANDARD_INCLUDE_COMPONENT=\"\"
12
13 # when building a native compiler for DJGPP, make the target_alias
14 # a shorter name, since otherwise it will produce some problems, when
15 # using the same gcc once with long filenames and once with short (8+3)
16 # filenames
17 ifeq ($(findstring -pc-msdosdjgpp,$(target_alias)),-pc-msdosdjgpp)
18 target_alias=djgpp
19 endif
20
21 # on DJGPP the 'ln -s' does not work correctly
22 LN = cp -p
23 LN_S = cp -p
24