mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 12:03:31 +01:00
defs-orig.mk: Supply gcc version macros
This commit is contained in:
parent
a1b880f695
commit
8e6f57c05b
1 changed files with 5 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue