AS = $(WLADX)/wla-65816
LD = $(WLADX)/wlalink
RM = rm -rf
SIXPACK = ../../bin/sixpack

OBJS = test.o

all: parodius2.lzs $(OBJS) TEST.SMC

parodius2.lzs: ../images/parodius2.png
	$(SIXPACK) -image -opt -pack -v -target snes -width 256 -height 224 -sizefilter 1 -format p8 -o $@ $<

# OBJ -> BIN
TEST.SMC:
	$(LD) -b test.link TEST.SMC
	$(RM) *.o *.lzs *.nam *.pal

%.o: %.asm
	$(AS) -io $< $@

clean:
	$(RM) TEST.SMC *.o *.lzs *.nam *.pal 
