diff options
Diffstat (limited to 'Rules.mak')
-rw-r--r-- | Rules.mak | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -56,6 +56,7 @@ LC_ALL:= C | |||
56 | # especially from the command line, use this instead of CFLAGS directly. | 56 | # especially from the command line, use this instead of CFLAGS directly. |
57 | # For optimization overrides, it's better still to set OPTIMIZATION. | 57 | # For optimization overrides, it's better still to set OPTIMIZATION. |
58 | CFLAGS_EXTRA=$(subst ",, $(strip $(EXTRA_CFLAGS_OPTIONS))) | 58 | CFLAGS_EXTRA=$(subst ",, $(strip $(EXTRA_CFLAGS_OPTIONS))) |
59 | # be gentle to vi coloring.. ") | ||
59 | 60 | ||
60 | # To compile vs some other alternative libc, you may need to use/adjust | 61 | # To compile vs some other alternative libc, you may need to use/adjust |
61 | # the following lines to meet your needs... | 62 | # the following lines to meet your needs... |
@@ -114,6 +115,10 @@ check_cc=$(shell \ | |||
114 | rm -f conftest.c conftest.o; \ | 115 | rm -f conftest.c conftest.o; \ |
115 | fi) | 116 | fi) |
116 | 117 | ||
118 | ifeq ($(filter-out $(nocheck_targets),$(MAKECMDGOALS)),) | ||
119 | check_cc:= | ||
120 | endif | ||
121 | |||
117 | # A not very robust macro to check for available ld flags | 122 | # A not very robust macro to check for available ld flags |
118 | ifeq ($(strip $(V)),2) | 123 | ifeq ($(strip $(V)),2) |
119 | VERBOSE_CHECK_LD=echo LD=\"$(1)\" check_ld $(2) >&2; | 124 | VERBOSE_CHECK_LD=echo LD=\"$(1)\" check_ld $(2) >&2; |
@@ -125,6 +130,10 @@ check_ld=$(shell \ | |||
125 | echo "-Wl,$(2)" ; \ | 130 | echo "-Wl,$(2)" ; \ |
126 | fi) | 131 | fi) |
127 | 132 | ||
133 | ifeq ($(filter-out $(nocheck_targets),$(MAKECMDGOALS)),) | ||
134 | check_ld:= | ||
135 | endif | ||
136 | |||
128 | # A not very robust macro to check for available strip flags | 137 | # A not very robust macro to check for available strip flags |
129 | ifeq ($(strip $(V)),2) | 138 | ifeq ($(strip $(V)),2) |
130 | VERBOSE_CHECK_STRIP=echo STRIPCMD=\"$(1)\" check_strip $(2) >&2; | 139 | VERBOSE_CHECK_STRIP=echo STRIPCMD=\"$(1)\" check_strip $(2) >&2; |
@@ -139,6 +148,9 @@ check_strip=$(shell \ | |||
139 | rm -f conftest.c conftest.o > /dev/null 2>&1 ; \ | 148 | rm -f conftest.c conftest.o > /dev/null 2>&1 ; \ |
140 | fi) | 149 | fi) |
141 | 150 | ||
151 | ifeq ($(filter-out $(nocheck_targets),$(MAKECMDGOALS)),) | ||
152 | check_strip:= | ||
153 | endif | ||
142 | 154 | ||
143 | 155 | ||
144 | # Select the compiler needed to build binaries for your development system | 156 | # Select the compiler needed to build binaries for your development system |
@@ -410,7 +422,7 @@ do_link.h = @$(disp_link.h) ; $(cmd_link.h) | |||
410 | do_ar = @$(disp_ar) ; $(cmd_ar) | 422 | do_ar = @$(disp_ar) ; $(cmd_ar) |
411 | do_elf2flt = @$(disp_elf2flt) ; $(cmd_elf2flt) | 423 | do_elf2flt = @$(disp_elf2flt) ; $(cmd_elf2flt) |
412 | 424 | ||
413 | uppercase = $(shell echo $1 | tr '[:lower:]' '[:upper:]') | 425 | uppercase = $(shell echo $1 | $(SED) -e "y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/") |
414 | %.a: | 426 | %.a: |
415 | @if test -z "$($(call uppercase,$*)_DIR)" ; then \ | 427 | @if test -z "$($(call uppercase,$*)_DIR)" ; then \ |
416 | echo "Invalid target $@" ; \ | 428 | echo "Invalid target $@" ; \ |