summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorkr3nshaw <20672068+kr3nshaw@users.noreply.github.com>2020-06-08 02:03:41 +1000
committerkr3nshaw <20672068+kr3nshaw@users.noreply.github.com>2020-06-08 02:03:41 +1000
commit696862b1a3025b9f054a26889f4aec42d0675f30 (patch)
tree50caa361f1af0d546df6683a3f0218474a7973ea /Makefile
parent760a22318663896b2ebd76d8d3213dcc9e9bcfe5 (diff)
Replaced narccomp with knarc
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile16
1 files changed, 7 insertions, 9 deletions
diff --git a/Makefile b/Makefile
index 4cb2b845..39594cc8 100644
--- a/Makefile
+++ b/Makefile
@@ -26,9 +26,9 @@ endif
ifeq ($(OS),Windows_NT)
EXE := .exe
-WINE :=
+WINE :=
else
-EXE :=
+EXE :=
WINE := wine
endif
@@ -170,9 +170,9 @@ MWCCARM = tools/mwccarm/$(MWCCVERSION)/mwccarm.exe
# have to use mwldarm for now.
# TODO: Is there a hack workaround to let us go back to GNU LD? Ideally, the
# only dependency should be MWCCARM.
+KNARC = tools/knarc/knarc$(EXE)
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)
@@ -308,13 +308,11 @@ DUMMY != mkdir -p $(ALL_DIRS)
%.png: ;
%.pal: ;
-%.narc: members = $(wildcard $(@D)/$*/*)
-%.narc: $$(members)
- $(NARCCOMP) -o $@ -p 255 $^
+%.narc:
+ $(KNARC) -d $(basename $@)/ -p $@
-%.arc: members = $(wildcard $(@D)/$*/*)
-%.arc: $$(members)
- $(NARCCOMP) -o $@ -p 255 $^
+%.arc:
+ $(KNARC) -d $(basename $@)/ -p $@
files/poketool/personal/pms.narc: ;