defs.mk, rules.mk: Add MAKEFLAGS += -r

This disables implicit rules and should speed up the build a tad.

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2017-09-02 14:44:18 +00:00
commit d4581f488a
2 changed files with 6 additions and 1 deletions

View file

@ -5,6 +5,8 @@
ifndef JW_BUILD_DEF_MK_INCLUDED ifndef JW_BUILD_DEF_MK_INCLUDED
JW_BUILD_DEF_MK_INCLUDED = true JW_BUILD_DEF_MK_INCLUDED = true
MAKEFLAGS += -r
include $(MODDIR)/make/platform.mk include $(MODDIR)/make/platform.mk
include $(MODDIR)/make/projects.mk include $(MODDIR)/make/projects.mk

View file

@ -309,6 +309,9 @@ $(FLAVOUR_PREFIX)%.o: %.c
$(FLAVOUR_PREFIX)%.o: %.S $(FLAVOUR_PREFIX)%.o: %.S
$(CC) $(BUILD_CFLAGS) -c $< -o $@ $(CC) $(BUILD_CFLAGS) -c $< -o $@
$(LIB_A)(%.o): %.o
$(AR) cr $(LIB_A) $<
timers_%.h: %.h $(GENERATE_FUNC_TIMERS) timers_%.h: %.h $(GENERATE_FUNC_TIMERS)
sh $(GENERATE_FUNC_TIMERS) $< $@ sh $(GENERATE_FUNC_TIMERS) $< $@
@ -388,7 +391,7 @@ $$(TOPDIR)/dir_install_$(1).done:
mkdir -p $$(INSTALL_$(1)DIR) mkdir -p $$(INSTALL_$(1)DIR)
touch $$@ touch $$@
$$(BUILD_$(1)DIR)/%: % $$(TOPDIR)/dir_build_$(1).done $$(BUILD_$(1)DIR)/%: % | $$(TOPDIR)/dir_build_$(1).done
@if [ ! $$< -ef $$@ -a "`echo $$< | $(SED) 's/\..*//'`" != local ]; then \ @if [ ! $$< -ef $$@ -a "`echo $$< | $(SED) 's/\..*//'`" != local ]; then \
echo install -p -m $($(1)MODE) $$< $$@ ;\ echo install -p -m $($(1)MODE) $$< $$@ ;\
install -p -m $($(1)MODE) $$< $$@ ;\ install -p -m $($(1)MODE) $$< $$@ ;\