# this makefile converts the .pcx graphics files to a lib file
# so that the main makefile just has to include this lib and not all the graphics stuff

#include ../../gbalib/master.mk

RODATASUFF := all.rodata.o
#CURRENTIMGS :=   $(notdir $(wildcard $(CURDIR)/*.pcx))
CURRENTIMGS :=   font.pcx
#PALETTENAME :=   $(notdir $(CURDIR)).pal
PALETTENAME :=   font.pal
CURRENTOFILES := $(CURRENTIMGS:%.pcx=%.$(RODATASUFF)) \
		$(CURRENTIMGS:%.pcx=%.map.$(RODATASUFF)) \
		$(CURRENTIMGS:%.pcx=%.pal.$(RODATASUFF)) 

#font8pt.$(RODATASUFF)
# 		$(PALETTENAME).$(RODATASUFF)
OUTDIR := ../o
allTarget  := $(foreach file,$(notdir $(CURRENTIMGS)), $(OUTDIR)/$(file))
GFX2GBAFLAGS := -t8 -m -F -c16 -q
MOVE := cp.exe 
.PHONY : raws maps all
