Add ability to load Intel HEX files. Add sample sdcc LED blinker.
[fw/altos] / Makefile.blink
1 CC=sdcc
2 NO_OPT=--nogcse --noinvariant --noinduction --nojtbound --noloopreverse \
3         --nolabelopt --nooverlay --peep-asm
4 DEBUG=--debug
5
6 CFLAGS=--model-large $(DEBUG) --less-pedantic --xram-size 4096\
7         --stack-auto --no-peep --int-long-reent --float-reent
8
9 LDFLAGS=-L/usr/share/sdcc/lib/large \
10         --code-loc 0xf000 --xram-loc 0xf400
11
12 SRC=blink.c
13 OBJ=$(SRC:.c=.rel)
14
15 %.rel : %.c
16         $(CC) -c $(CFLAGS) -o$*.rel $<
17
18 blink: $(OBJ)
19         $(CC) $(LDFLAGS) $(CFLAGS) -o$@ $(OBJ)
20