SDCC = C:\SDCC
cc = $(SDCC)\bin\sdcc.exe -c -mz80 -portmode=Z80 
asm = $(SDCC)\bin\as-z80 -plosgff
ll = $(SDCC)\bin\sdcc.exe -mz80 --no-std-crt0 --code-loc 0x8000

test.o: test.c
	$(cc) $<

test.ihx: test.o
	$(ll) $<

all: test.ihx

clean:
	del /q *.o *.map *.ihx *.lnk *.asm *.lst *.sym