mirror of
https://github.com/wiiu-env/wut.git
synced 2024-12-05 03:04:16 +01:00
make: Allow disabling the depends or compilation rules
This commit is contained in:
parent
24f46559da
commit
e950c6b937
10
share/wut.mk
10
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
|
||||
|
Loading…
Reference in New Issue
Block a user