|
@@ -205,8 +205,9 @@ MKTAGS=ctags -R .
|
|
|
|
|
|
ifneq (,$(findstring gcc, $(CC_LONGVER)))
|
|
ifneq (,$(findstring gcc, $(CC_LONGVER)))
|
|
CC_NAME=gcc
|
|
CC_NAME=gcc
|
|
- CC_VER=$(CC) $(shell $(CC) --version|head -n 1| \
|
|
|
|
- sed -e 's/^[^0-9]*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*/\1/' -e 's/^[^0-9]*\([0-9][0-9]*\.[0-9][0-9]*\).*/\1/')
|
|
|
|
|
|
+ CC_VER=$(CC) $(shell $(CC) --version|head -n 1|cut -d" " -f 3| \
|
|
|
|
+ sed -e 's/^.*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*/\1/' \
|
|
|
|
+ -e 's/^[^0-9].*\([0-9][0-9]*\.[0-9][0-9]*\).*/\1/')
|
|
# sun sed is a little brain damaged => this complicated expression
|
|
# sun sed is a little brain damaged => this complicated expression
|
|
MKDEP=$(CC) -MM
|
|
MKDEP=$(CC) -MM
|
|
#transform gcc version into 2.9x or 3.0
|
|
#transform gcc version into 2.9x or 3.0
|