summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorCleverking2003 <30466983+Cleverking2003@users.noreply.github.com>2020-06-07 22:59:16 +0300
committerGitHub <noreply@github.com>2020-06-07 22:59:16 +0300
commitc5a0d49cbae5047021e4f036366cf87ba97da566 (patch)
tree92acdeb79d0deb9c9056275a38e252b001d9dfd4 /Makefile
parentc2d3d0fb118d3f9ff14f8f5293f54d0c37421a70 (diff)
parent19d0c085f76ac5830e38339248d2f70b58ee54b2 (diff)
Merge pull request #144 from kr3nshaw/master
Replaced narccomp with knarc
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 7 insertions, 10 deletions
diff --git a/Makefile b/Makefile
index b7b31dbb..c3cd2c77 100644
--- a/Makefile
+++ b/Makefile
@@ -31,9 +31,9 @@ endif
ifeq ($(OS),Windows_NT)
EXE := .exe
-WINE :=
+WINE :=
else
-EXE :=
+EXE :=
WINE := wine
endif
@@ -175,6 +175,7 @@ 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)
@@ -316,15 +317,11 @@ DUMMY != mkdir -p $(ALL_DIRS)
%.png: ;
%.pal: ;
-##################### Filesystem #####################
-
-%.narc: members = $(wildcard $(@D)/$*/*.bin)
-%.narc: $$(members)
- $(NARCCOMP) -o $@ -p 255 $^
+%.narc:
+ $(KNARC) -d $(basename $@)/ -p $@
-%.arc: members = $(wildcard $(@D)/$*/*.bin)
-%.arc: $$(members)
- $(NARCCOMP) -o $@ -p 255 $^
+%.arc:
+ $(KNARC) -d $(basename $@)/ -p $@
files/poketool/personal/pms.narc: ;