make: Allow disabling the depends or compilation rules

This commit is contained in:
Ash 2018-09-09 19:29:03 +10:00 committed by James
parent 24f46559da
commit e950c6b937

View File

@ -100,6 +100,9 @@ WUT_RPLELF_SUFFIX := .elf
# Bog-standard compilation rules. Only using these and not devkitPPC's
# base_rules because the mkdir bits are needed
# Allow turning off the compilation rules
ifneq ($(strip $(WUT_NO_COMPRULES)), 1)
%.o: %.cpp
@echo CXX $(notdir $<)
@mkdir -p $(dir $*)
@ -131,9 +134,16 @@ WUT_RPLELF_SUFFIX := .elf
@rm -f $@
$(Q)$(AR) -rc $@ $^
endif
# Allow turning off the depend rules
ifneq ($(strip $(WUT_NO_DEPEND_INCS)), 1)
# Add the dependency rules, if they exist
include $(shell find $(DEPSDIR) -name "*.$(DEPSEXT)")
endif
# ------------------------------------------------------------------------------
# Optional Extras
# Maybe you want libc/newlib? or a devoptab? These contain the flags you need to