From e950c6b9371bd592577b9dfbe2a44dec7b9a8da9 Mon Sep 17 00:00:00 2001 From: Ash Date: Sun, 9 Sep 2018 19:29:03 +1000 Subject: [PATCH] make: Allow disabling the depends or compilation rules --- share/wut.mk | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/share/wut.mk b/share/wut.mk index 523c7091..7eef587e 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