13 MFLAGS = --debug -mz80
19 MFLAGS = --debug --model-small --stack-after-data
21 #MFLAGS = --debug --model-large --stack-after-data
22 #LFLAGS = --xram-loc 0x4000 --code-loc 0x0000
26 #OBJECTS = test3.c itoa.$(OBJEXT) crc.$(OBJEXT)
27 OBJECTS = test3.c itoa.$(OBJEXT)
33 sdcc --model-small an429.c
36 sdcc --model-small test2.c
40 $(CC) -c $(CFLAGS) $(MFLAGS) $<
43 $(CC) -c $(CFLAGS) $(MFLAGS) itoa.c
46 # $(CC) -c $(CFLAGS) $(MFLAGS) crc.c
49 $(CC) $(MFLAGS) $(LFLAGS) $(OBJECTS)
52 makebin < test3.ihx > test3.bin
55 rm -f core *~ \#* *.asm *.cdb *.rel *.hex *.ihx *.lst *.map *.o \
56 *.rst *.sym *.lnk *.lib *.bin
59 s51 -Sout=serial.log test3.ihx