diff options
-rw-r--r-- | Makefile | 7 | ||||
-rw-r--r-- | tools/mwasmarm_patcher/Makefile | 4 |
2 files changed, 10 insertions, 1 deletions
@@ -1,5 +1,7 @@ # Makefile to build Pokemon Diamond image +.PHONY: clean tidy all default + # Try to include devkitarm if installed TOOLCHAIN := $(DEVKITARM) @@ -94,7 +96,10 @@ MWASMARM_PATCHER = tools/mwasmarm_patcher/mwasmarm_patcher$(EXE) all: $(ROM) @$(SHA1SUM) -c $(TARGET).sha1 -clean: +clean: tidy + make -C tools/mwasmarm_patcher clean + +tidy: $(RM) -r $(BUILD_DIR) patch_mwasmarm: diff --git a/tools/mwasmarm_patcher/Makefile b/tools/mwasmarm_patcher/Makefile index bc3082dc..df3f5c20 100644 --- a/tools/mwasmarm_patcher/Makefile +++ b/tools/mwasmarm_patcher/Makefile @@ -1,7 +1,11 @@ +.PHONY: all clean
+
CC := gcc
CFLAGS := -O3
all: mwasmarm_patcher
+clean: ; rm -f mwasmarm_patcher$(EXE)
+
mwasmarm_patcher: mwasmarm_patcher.c
$(CC) $(CFLAGS) -o $@ $<
|