Skip to content

Commit

Permalink
make: Allow disabling the depends or compilation rules
Browse files Browse the repository at this point in the history
  • Loading branch information
ashquarky authored and exjam committed Nov 7, 2018
1 parent 24f4655 commit e950c6b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions share/wut.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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 $*)
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit e950c6b

Please sign in to comment.