2 NO_OPT=--nogcse --noinvariant --noinduction --nojtbound --noloopreverse \
3 --nolabelopt --nooverlay --peep-asm
6 CFLAGS=--model-large $(DEBUG) --less-pedantic \
7 --no-peep --int-long-reent --float-reent \
11 LDFLAGS_RAM=$(LDFLAGS) --code-loc 0xf000 --xram-loc 0xf400 --xram-size 1024
13 LDFLAGS_FLASH=$(LDFLAGS) --code-loc 0x0000 --xram-loc 0xf000 --xram-size 1024
15 SRC=xmit.c recv.c init.c
24 PROGS=xmit-flash.ihx xmit-ram.ihx recv-flash.ihx recv-ram.ihx
25 PCDB=$(PROGS:.ihx=.cdb)
26 PLNK=$(PROGS:.ihx=.lnk)
27 PMAP=$(PROGS:.ihx=.map)
28 PMEM=$(PROGS:.ihx=.mem)
32 $(CC) -c $(CFLAGS) -o$*.rel $<
36 xmit-ram.ihx: xmit.rel init.rel Makefile
37 $(CC) $(LDFLAGS_RAM) $(CFLAGS) -o xmit-ram.ihx xmit.rel init.rel
38 $(CC) $(LDFLAGS_FLASH) $(CFLAGS) -o xmit-flash.ihx xmit.rel init.rel
40 xmit-flash.ihx: xmit-ram.ihx
42 recv-ram.ihx: recv.rel init.rel Makefile
43 $(CC) $(LDFLAGS_RAM) $(CFLAGS) -o recv-ram.ihx recv.rel init.rel
44 $(CC) $(LDFLAGS_FLASH) $(CFLAGS) -o recv-flash.ihx recv.rel init.rel
46 recv-flash.ihx: recv-ram.ihx
49 rm -f $(ADB) $(ASM) $(LNK) $(LST) $(REL) $(RST) $(SYM)
50 rm -f $(PROGS) $(PCDB) $(PLNK) $(PMAP) $(PMEM) $(PAOM)