defs-orig.mk: Supply gcc version macros

This commit is contained in:
Jan Lindemann 2002-01-04 13:31:59 +00:00 committed by Jan Lindemann
commit 8e6f57c05b

View file

@ -91,6 +91,11 @@ RM = rm
AR = ar
INSTALL = install
GCC_VERSION = $(shell gcc -v 2>&1 | grep version | awk '{ print $3;}')
GCC_MAJOR = $(shell gcc -v 2>&1 | grep version | awk '{ split($3,a,"."); print a[1];}')
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];}')
define make_subdirs
set -e; for D in $(SUBDIRS) ; do make -C $$D ; done
endef