|
@@ -74,6 +74,9 @@
|
|
|
# from the host (andrei)
|
|
|
# 2009-10-01 use -fsigned-char for gcc on ppc, ppc64, arm and arm6
|
|
|
# (on those archs char is unsigned by default) (andrei)
|
|
|
+# 2010-03-10 added CC_MKDEP_OPTS, which contains to the list of options
|
|
|
+# needed to generate dependencies on-the-fly while compiling
|
|
|
+# or is empty if the compiler doesn't support it (andrei)
|
|
|
|
|
|
quiet?=$(if $(filter 1 yes on,$(Q)),silent,verbose)
|
|
|
|
|
@@ -351,7 +354,7 @@ ifneq (,$(findstring gcc, $(CC_LONGVER)))
|
|
|
# -e 's/^[^0-9].*\([0-9][0-9]*\.[0-9][0-9]*\).*/\1/')
|
|
|
# sed with POSIX.1 regex doesn't support |, + or ?
|
|
|
# (darwin, solaris ...) => this complicated expression
|
|
|
- MKDEP=$(CC) -MM
|
|
|
+ MKDEP=$(CC) -MM -MG
|
|
|
#transform gcc version into 2.9x or 3.0
|
|
|
CC_SHORTVER:=$(shell echo "$(CC_VER)" | cut -d" " -f 2| \
|
|
|
sed -e 's/[^0-9]*-\(.*\)/\1/'| \
|
|
@@ -360,7 +363,11 @@ ifneq (,$(findstring gcc, $(CC_LONGVER)))
|
|
|
's/3\.[4-9]/3.4/' -e 's/4\.[0-1]\..*/4.x/' -e \
|
|
|
's/4\.[0-1]/4.x/' -e 's/4\.[2-9]\..*/4.2+/' -e \
|
|
|
's/4\.[2-9]$$/4.2+/')
|
|
|
-endif
|
|
|
+ifeq (,$(strip $(filter-out 3.0 3.4 4.x 4.2+,$(CC_SHORTVER))))
|
|
|
+ # dependencies can be generated on-the-fly while compiling *.c
|
|
|
+ CC_MKDEP_OPTS=-MMD -MP
|
|
|
+endif # 3.0 <= $(CC_SHORTVER) <= 4.x
|
|
|
+endif # gcc
|
|
|
|
|
|
ifneq (, $(findstring Sun, $(CC_LONGVER)))
|
|
|
CC_NAME=suncc
|
|
@@ -1947,6 +1954,7 @@ export exported_vars
|
|
|
saved_fixed_vars:= MAIN_NAME CFG_NAME SCR_NAME FLAVOUR INSTALL_FLAVOUR \
|
|
|
SRC_NAME RELEASE OS ARCH \
|
|
|
C_DEFS DEFS_RM PROFILE CC LD MKDEP MKTAGS LDFLAGS C_INCLUDES \
|
|
|
+ CC_MKDEP_OPTS \
|
|
|
MOD_LDFLAGS LIB_LDFLAGS UTILS_LDFLAGS LIB_SONAME LD_RPATH \
|
|
|
LIB_SUFFIX LIB_PREFIX \
|
|
|
LIBS \
|