summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorProjectRevoTPP <projectrevotpp@hotmail.com>2020-04-18 00:00:48 -0400
committerProjectRevoTPP <projectrevotpp@hotmail.com>2020-04-18 00:00:48 -0400
commit6446890d29234348c6af89982db4a4d8518855d4 (patch)
tree258f1c319f6edaa4eebb010e86d97dda8b8aa98c /Makefile
parenta238294da9efc1116921db001bd786c4f522c9a1 (diff)
tidy up dependencies and tweak Makefile to show tool being ran once at start
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 4 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index cd726fe7..0b43fef2 100644
--- a/Makefile
+++ b/Makefile
@@ -73,11 +73,6 @@ TOOLS_DIR = tools
SHA1SUM = sha1sum
MWASMARM_PATCHER = tools/mwasmarm_patcher/mwasmarm_patcher$(EXE)
-DUMMY != $(MWASMARM_PATCHER) $(MWASMARM) || echo FAIL
-ifeq ($(DUMMY),FAIL)
- $(error MWASMARM patcher returned an error)
-endif
-
######################### Targets ###########################
all: $(ROM)
@@ -86,12 +81,15 @@ all: $(ROM)
clean:
$(RM) -r $(BUILD_DIR)
+patch_mwasmarm:
+ $(MWASMARM_PATCHER) $(MWASMARM)
+
ALL_DIRS := $(BUILD_DIR) $(addprefix $(BUILD_DIR)/,$(SRC_DIRS) $(ASM_DIRS))
$(BUILD_DIR)/%.o: %.c
$(CC) -c $(CFLAGS) -o $@ $<
-$(BUILD_DIR)/%.o: %.s
+$(BUILD_DIR)/%.o: %.s patch_mwasmarm
$(AS) $(ASFLAGS) $< -o $@
$(BUILD_DIR)/$(LD_SCRIPT): $(LD_SCRIPT)