DEMO=firework

$(DEMO).o: $(DEMO).asm

%.o: %.asm bll_init.inc
	@lyxass $<

%.bin: %.asm
	@lyxass -d -D LNX=1 -o  $@ $<

lnx: $(DEMO).lnx

.ONESHELL:
%.lnx: %.asm
	@lyxass -d -D LNX=1 -o $(DEMO).bin $<
	lynxenc $(DEMO).bin $(DEMO).lyx
	bzcat allff.lyx.bz2 >> $(DEMO).lyx
	make_lnx $(DEMO).lyx -b0 256K -o $(DEMO).lnx
	@echo

.PHONY: clean
clean:
	@rm -f *.lyx *~ *.o

.PHONY: real-clean
real-clean: clean
	@rm -f *.lnx *.o

include Rules.launch
