Makefile.src.in
changeset 6407 483c1328a349
parent 6230 06c91ff0af27
child 6410 ceff709a6c73
equal deleted inserted replaced
6406:04ada46989ae 6407:483c1328a349
    25 STAGE        = !!STAGE!!
    25 STAGE        = !!STAGE!!
    26 MAKEDEPEND   = !!MAKEDEPEND!!
    26 MAKEDEPEND   = !!MAKEDEPEND!!
    27 CFLAGS_MAKEDEP= !!CFLAGS_MAKEDEP!!
    27 CFLAGS_MAKEDEP= !!CFLAGS_MAKEDEP!!
    28 SORT         = !!SORT!!
    28 SORT         = !!SORT!!
    29 REVISION     = !!REVISION!!
    29 REVISION     = !!REVISION!!
       
    30 AWK          = !!AWK!!
    30 CONFIG_CACHE_COMPILER = $(SRC_OBJS_DIR)/!!CONFIG_CACHE_COMPILER!!
    31 CONFIG_CACHE_COMPILER = $(SRC_OBJS_DIR)/!!CONFIG_CACHE_COMPILER!!
    31 CONFIG_CACHE_LINKER   = $(SRC_OBJS_DIR)/!!CONFIG_CACHE_LINKER!!
    32 CONFIG_CACHE_LINKER   = $(SRC_OBJS_DIR)/!!CONFIG_CACHE_LINKER!!
    32 CONFIG_CACHE_ENDIAN   = $(SRC_OBJS_DIR)/!!CONFIG_CACHE_ENDIAN!!
    33 CONFIG_CACHE_ENDIAN   = $(SRC_OBJS_DIR)/!!CONFIG_CACHE_ENDIAN!!
    33 CONFIG_CACHE_SOURCE   = $(SRC_OBJS_DIR)/!!CONFIG_CACHE_SOURCE!!
    34 CONFIG_CACHE_SOURCE   = $(SRC_OBJS_DIR)/!!CONFIG_CACHE_SOURCE!!
    34 CONFIG_CACHE_VERSION  = $(SRC_OBJS_DIR)/!!CONFIG_CACHE_VERSION!!
    35 CONFIG_CACHE_VERSION  = $(SRC_OBJS_DIR)/!!CONFIG_CACHE_VERSION!!
    80 # Are we a SVN dir?
    81 # Are we a SVN dir?
    81 ifeq ($(shell if test -d $(SRC_DIR)/.svn; then echo 1; fi), 1)
    82 ifeq ($(shell if test -d $(SRC_DIR)/.svn; then echo 1; fi), 1)
    82 # Find if the local source if modified
    83 # Find if the local source if modified
    83 REV_MODIFIED := $(shell svnversion $(SRC_DIR) | sed -n 's/.*\(M\).*/\1/p' )
    84 REV_MODIFIED := $(shell svnversion $(SRC_DIR) | sed -n 's/.*\(M\).*/\1/p' )
    84 # Find the revision like: rXXXX-branch
    85 # Find the revision like: rXXXX-branch
    85 REV := $(shell LC_ALL=C svn info $(SRC_DIR) | awk '/^URL:.*branch/ { split($$2, a, "/"); BRANCH="-"a[5] } /^Last Changed Rev:/ { REV="r"$$4"$(REV_MODIFIED)" } END { print REV BRANCH }')
    86 REV := $(shell LC_ALL=C svn info $(SRC_DIR) | $(AWK) '/^URL:.*branch/ { split($$2, a, "/"); BRANCH="-"a[5] } /^Last Changed Rev:/ { REV="r"$$4"$(REV_MODIFIED)" } END { print REV BRANCH }')
    86 endif
    87 endif
    87 endif
    88 endif
    88 # Make sure we have something in REV
    89 # Make sure we have something in REV
    89 ifeq ($(REV),)
    90 ifeq ($(REV),)
    90 REV := norev000
    91 REV := norev000
   164 	@rm -f Makefile.dep.tmp.mingw
   165 	@rm -f Makefile.dep.tmp.mingw
   165 endif
   166 endif
   166 
   167 
   167 # Remove all comments and includes that don't start with $(SRC_DIR)
   168 # Remove all comments and includes that don't start with $(SRC_DIR)
   168 # Remove $(SRC_DIR) from object-file-name
   169 # Remove $(SRC_DIR) from object-file-name
   169 	@awk '                              \
   170 	@$(AWK) '                           \
   170 	/^# DO NOT/ { print $$0 ; next}     \
   171 	/^# DO NOT/ { print $$0 ; next}     \
   171 	/^#/ {next}                         \
   172 	/^#/ {next}                         \
   172 	/:/ {                               \
   173 	/:/ {                               \
   173 		left = NF - 1;                    \
   174 		left = NF - 1;                    \
   174 		for (n = 2; n <= NF; n++) {       \
   175 		for (n = 2; n <= NF; n++) {       \