diff --git a/share/wut.mk b/share/wut.mk index 523c70917..7eef587e3 100644 --- a/share/wut.mk +++ b/share/wut.mk @@ -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