summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPikalaxALT <pikalaxalt@gmail.com>2020-08-31 13:36:26 -0400
committerPikalaxALT <pikalaxalt@gmail.com>2020-08-31 13:54:27 -0400
commit00cbfe2e138c842d9c0bce4e1848d3eaa88a39b8 (patch)
treea1d746b99593a068657925fd6edee51f6bb2824c /Makefile
parentc75a270a82fdf7f92d118c61237fea034cbc17f3 (diff)
Trainer frontpics to png
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile42
1 files changed, 13 insertions, 29 deletions
diff --git a/Makefile b/Makefile
index 37095e69..881aa3a1 100644
--- a/Makefile
+++ b/Makefile
@@ -247,41 +247,25 @@ PADDED_LZ_FILES := $(addsuffix .lz,$(wildcard \
$(PADDED_LZ_FILES): %.lz: %
$(NTRCOMP) -l2 -s -A4 -o $@ $<
-%.NCGR: %.png
- $(GFX) $< $@
-
-$(CLOBBER_SIZE_NCGR_FILES): %.NCGR: %.png
- $(GFX) $< $@ -clobbersize
+$(CLOBBER_SIZE_NCGR_FILES): GFX_FLAGS = -clobbersize
+$(CLOBBER_SIZE_VERSION101_NCGR_FILES): GFX_FLAGS = -clobbersize -version101
+$(VERSION101_SOPC_8BPP_NCGR_FILES): GFX_FLAGS = -version101 -sopc -bitdepth 8
+$(VERSION101_SOPC_NCGR_FILES): GFX_FLAGS = -version101 -sopc
+$(SCANNED_NCGR_FILES): GFX_FLAGS = -scanned
-$(CLOBBER_SIZE_VERSION101_NCGR_FILES): %.NCGR: %.png
- $(GFX) $< $@ -clobbersize -version101
+$(IR_NCLR_FILES): GFX_FLAGS = -ir
+$(4BPP_NCLR_FILES): GFX_FLAGS = -bitdepth 4
+$(8BPP_COMP10_NOPAD_NCLR_PNG_FILES): GFX_FLAGS = -bitdepth 8 -nopad -comp 10
+$(8BPP_COMP10_NOPAD_NCLR_PAL_FILES): GFX_FLAGS = -bitdepth 8 -nopad -comp 10
-$(VERSION101_SOPC_8BPP_NCGR_FILES): %.NCGR: %.png
- $(GFX) $< $@ -version101 -sopc -bitdepth 8
-
-$(VERSION101_SOPC_NCGR_FILES): %.NCGR: %.png
- $(GFX) $< $@ -version101 -sopc
-
-$(SCANNED_NCGR_FILES): %.NCGR: %.png
- $(GFX) $< $@ -scanned
+%.NCGR: %.png
+ $(GFX) $< $@ $(GFX_FLAGS)
%.NCLR: %.png
- $(GFX) $< $@
+ $(GFX) $< $@ $(GFX_FLAGS)
%.NCLR: %.pal
- $(GFX) $< $@
-
-$(IR_NCLR_FILES): %.NCLR: %.pal
- $(GFX) $< $@ -ir
-
-$(4BPP_NCLR_FILES): %.NCLR: %.pal
- $(GFX) $< $@ -bitdepth 4
-
-$(8BPP_COMP10_NOPAD_NCLR_PNG_FILES): %.NCLR: %.png
- $(GFX) $< $@ -bitdepth 8 -nopad -comp 10
-
-$(8BPP_COMP10_NOPAD_NCLR_PAL_FILES): %.NCLR: %.pal
- $(GFX) $< $@ -bitdepth 8 -nopad -comp 10
+ $(GFX) $< $@ $(GFX_FLAGS)
%.png: ;
%.pal: ;