# Makefile

CFLAGS=-O3 -march=native -Wall
all:	deblitz

deblitz:	deblitz.c deblitz_bin.h global.c global.h utils.c utils.h \
		iosys.c iosys.h helpers.c helpers.h buffer.c buffer.h \
		system.c system.h system_bin.h \
		fake6502/fake6502.c fake6502/wrap6502.c fake6502/wrap6502.h \
		embed_load.c embed_load.h
	$(CC) $(CFLAGS) -o $@ $^
	strip --strip-all $@

clean:
	rm -f *~ \#*\#
	rm -f a.out
	rm -f a.prg a.prg.ml a.prg.orig
	rm -f deblitz

# eof
