diff options
| author | Cleverking2003 <30466983+Cleverking2003@users.noreply.github.com> | 2020-06-06 19:19:49 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-06 19:19:49 +0300 |
| commit | 760a22318663896b2ebd76d8d3213dcc9e9bcfe5 (patch) | |
| tree | a2329b091d524c0d389e9d0b4750bde02cf75ede /Makefile | |
| parent | ce2b89342f6277cf881d6a03194ef43b2a310fe4 (diff) | |
| parent | 465ca61e67cb2b04cbe316fedab513f0b0b4e10f (diff) | |
Merge pull request #138 from PikalaxALT/pikalax_work
Decompile unk_0204639C
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 25 |
1 files changed, 23 insertions, 2 deletions
@@ -172,6 +172,8 @@ MWCCARM = tools/mwccarm/$(MWCCVERSION)/mwccarm.exe # only dependency should be MWCCARM. MWLDARM = tools/mwccarm/$(MWCCVERSION)/mwldarm.exe MWASMARM = tools/mwccarm/$(MWCCVERSION)/mwasmarm.exe +NARCCOMP = tools/narccomp/narccomp$(EXE) +SCANINC = tools/scaninc/scaninc$(EXE) AS = $(WINE) $(MWASMARM) CC = $(WINE) $(MWCCARM) @@ -215,6 +217,9 @@ else NODEP := 1 endif +.SECONDARY: +.DELETE_ON_ERROR: +.SECONDEXPANSION: .PHONY: all clean mostlyclean tidy tools $(TOOLDIRS) patch_mwasmarm arm9 arm7 MAKEFLAGS += --no-print-directory @@ -252,10 +257,16 @@ patch_mwasmarm: ALL_DIRS := $(BUILD_DIR) $(addprefix $(BUILD_DIR)/,$(SRC_DIRS) $(ASM_DIRS)) -$(BUILD_DIR)/%.o: %.c +ifeq (,$(NODEP)) +$(BUILD_DIR)/%.o: dep = $(shell $(SCANINC) -I include -I include-mw -I arm9/lib/include $(filter $*.c,$(C_FILES)) $(filter $*.cpp,$(CXX_FILES)) $(filter $*.s,$(S_FILES))) +else +$(BUILD_DIR)/%.o: dep := +endif + +$(BUILD_DIR)/%.o: %.c $$(dep) $(CC) -c $(CFLAGS) -o $@ $< -$(BUILD_DIR)/%.o: %.s +$(BUILD_DIR)/%.o: %.s $$(dep) $(AS) $(ASFLAGS) $< -o $@ $(BUILD_DIR)/$(LD_SCRIPT): $(LD_SCRIPT) @@ -297,6 +308,16 @@ DUMMY != mkdir -p $(ALL_DIRS) %.png: ; %.pal: ; +%.narc: members = $(wildcard $(@D)/$*/*) +%.narc: $$(members) + $(NARCCOMP) -o $@ -p 255 $^ + +%.arc: members = $(wildcard $(@D)/$*/*) +%.arc: $$(members) + $(NARCCOMP) -o $@ -p 255 $^ + +files/poketool/personal/pms.narc: ; + $(BUILD_DIR)/pokediamond_bnr.bin: pokediamond.bsf graphics/icon.4bpp graphics/icon.gbapal $(MAKEBANNER) $< $@ |
