diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 29 |
1 files changed, 29 insertions, 0 deletions
@@ -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-tools 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 @@ -243,6 +245,33 @@ 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 + +$(VERSION101_SOPC_NCGR_FILES): %.NCGR: %.png + $(GFX) $< $@ -version101 -sopc + +%.NCLR: %.png + $(GFX) $< $@ + +%.NCLR: %.pal + $(GFX) $< $@ + +$(IR_NCLR_FILES): %.NCLR: %.pal + $(GFX) $< $@ -ir + +$(4BPP_NCLR_FILES): %.NCLR: %.pal + $(GFX) $< $@ -bitdepth 4 + %.png: ; %.pal: ; |