2 include $(PATH_TO_TOP
)/rules.mak
5 # Get the binutils version
7 # The "ld -v" output can be in either of these two formats:
8 # "GNU ld version 050113 20050113" (nightly build)
9 # "GNU ld version 2.15.94 20050118" (official release)
12 BINUTILS_VERSION_DATE
=$(word 5,$(shell $(PREFIX
)ld -v
))
15 ifeq ($(HOST_TYPE
),unix
)
16 @echo
"#define BINUTILS_VERSION_DATE $(BINUTILS_VERSION_DATE)" > tools-check.h
18 @echo
#define BINUTILS_VERSION_DATE $(BINUTILS_VERSION_DATE) > tools-check.h
20 $(HOST_CC
) -c tools-check.c
-o tools-check.temp
21 $(RM
) tools-check.temp