summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorCleverking2003 <30466983+Cleverking2003@users.noreply.github.com>2020-07-12 08:50:43 +0300
committerGitHub <noreply@github.com>2020-07-12 08:50:43 +0300
commit19823b0d54000c5eade4039cf27d3e70e740f012 (patch)
treed7b1264b2bc90ef7bbcd7aef1a103a47b14db1e5 /Makefile
parentb92b498be29cb7db1e30a9eac8113388e0a95369 (diff)
parentf76e211631b6b86ce7000c16acc5368d78b14f42 (diff)
Merge pull request #229 from red031000/master
bit of work on graphics, mostly setup
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile23
1 files changed, 23 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 06655098..cecb8b98 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,7 @@
# Makefile to build Pokemon Diamond image
include config.mk
+include graphics_rules.mk
HOSTCC = $(CC)
HOSTCXX = $(CXX)
@@ -157,6 +158,7 @@ clean: mostlyclean clean-fs
clean-fs:
$(RM) $(filter %.narc %.arc,$(HOSTFS_FILES))
+ $(RM) $(NCGR_CLEAN_LIST) $(NCLR_CLEAN_LIST)
find . \( -iname '*.1bpp' -o -iname '*.4bpp' -o -iname '*.8bpp' -o -iname '*.gbapal' -o -iname '*.lz' \) -exec $(RM) {} +
mostlyclean: tidy
@@ -241,6 +243,27 @@ 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_VERSION101_NCGR_FILES): %.NCGR: %.png
+ $(GFX) $< $@ -clobbersize -version101
+
+$(VERSION101_SOPC_8BPP_NCGR_FILES): %.NCGR: %.png
+ $(GFX) $< $@ -version101 -sopc -bitdepth 8
+
+%.NCLR: %.png
+ $(GFX) $< $@
+
+%.NCLR: %.pal
+ $(GFX) $< $@
+
+$(IR_NCLR_FILES): %.NCLR: %.pal
+ $(GFX) $< $@ -ir
+
%.png: ;
%.pal: ;