summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPikalaxALT <PikalaxALT@gmail.com>2020-04-15 20:20:40 -0400
committerPikalaxALT <PikalaxALT@gmail.com>2020-04-15 20:20:40 -0400
commit09d866602ecc76fdc5e9be9e3bd1ae0b8547ff13 (patch)
tree312c771cf265503718f3e8c2eb42b92708c55f36 /Makefile
parentb661c7888c57280a19801b320cf7860e6555f1d3 (diff)
ROM titles
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 15 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 577c034b..60335286 100644
--- a/Makefile
+++ b/Makefile
@@ -55,6 +55,7 @@ CFLAGS = -O4,p -proc arm946e -thumb -fp soft -lang c -Cpp_exceptions off
TOOLS_DIR = tools
SHA1SUM = sha1sum
JSONPROC = $(TOOLS_DIR)/jsonproc/jsonproc
+GFX = $(TOOLS_DIR)/nitrogfx/nitrogfx
TOOLDIRS = $(filter-out $(TOOLS_DIR)/mwccarm,$(wildcard $(TOOLS_DIR)/*))
TOOLBASE = $(TOOLDIRS:$(TOOLS_DIR)/%=%)
@@ -107,6 +108,20 @@ $(ROM): $(ELF)
# Make sure build directory exists before compiling anything
DUMMY != mkdir -p $(ALL_DIRS)
+%.4bpp: %.png
+ $(GFX) $< $@
+
+%.gbapal: %.png
+ $(GFX) $< $@
+
+%.gbapal: %.pal
+ $(GFX) $< $@
+
+%.lz: %
+ $(GFX) $< $@
+
+$(BUILD_DIR)/asm/icon.o: graphics/icon.4bpp graphics/icon.gbapal
+
### Debug Print ###
print-% : ; $(info $* is a $(flavor $*) variable set to [$($*)]) @true