summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorred031000 <rubenru09@aol.com>2020-07-10 17:25:12 +0100
committerred031000 <rubenru09@aol.com>2020-07-10 17:26:17 +0100
commit7762fa4d5454be7be0e89b09986f31bbdff79a83 (patch)
tree2c04561d5b08c7e21f863250b2bc06591381e99a /Makefile
parentd022486e419b8651a9716fb50e0cedcbb6733168 (diff)
bit of work on graphics, mostly setup
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 17 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 9b8b430e..2e7fe1a7 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)
@@ -156,6 +157,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
@@ -240,6 +242,21 @@ 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
+
+%.NCLR: %.png
+ $(GFX) $< $@
+
+%.NCLR: %.pal
+ $(GFX) $< $@
+
%.png: ;
%.pal: ;