defs.mk: Add variables LD_VERSION LD_MAJOR LD_MINOR LD_REV

This commit is contained in:
Jan Lindemann 2005-07-31 11:24:04 +00:00 committed by Jan Lindemann
commit 29609036be

View file

@ -29,6 +29,11 @@ GCC_MAJOR = $(shell gcc -v 2>&1 | grep version | awk '{ split($$3,a,"."); pri
GCC_MINOR = $(shell gcc -v 2>&1 | grep version | awk '{ split($$3,a,"."); print a[2];}')
GCC_REV = $(shell gcc -v 2>&1 | grep version | awk '{ split($$3,a,"."); print a[3];}')
LD_VERSION = $(shell ld --version | sed '/GNU ld/ !d; s/[^0-9]*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*/\1/')
LD_MAJOR = $(shell echo $(LD_VERSION) | cut -d. -f1)
LD_MINOR = $(shell echo $(LD_VERSION) | cut -d. -f2)
LD_REV = $(shell echo $(LD_VERSION) | cut -d. -f3)
YTOOLS_VERSION = @PACKAGE_VERSION@
YTOOLS_VERSION_STR = \"@PACKAGE_VERSION@\"
@ -343,3 +348,4 @@ ifneq ($(wildcard local.mk),)
include local.mk
endif