Imported Upstream version 2.9.0
[debian/cc1111] / device / examples / ds400 / hello400 / Makefile
1 CC = ../../../../bin/sdcc
2
3 MFLAGS = -mds400
4 LFLAGS = --xram-loc 0x10000 --code-loc 0x400000 -Wl-r
5
6 OBJECTS = hello.rel
7
8 all: hello.hex
9
10 clean:
11         rm -f *~ \#* *.asm *.cdb *.rel *.hex *.ihx *.lst *.map *.rst *.sym *.lnk
12
13 hello.hex: hello.ihx
14         packihx hello.ihx >hello.hex
15
16 hello.ihx: $(OBJECTS)
17         $(CC) $(MFLAGS) $(LFLAGS) $(OBJECTS)
18
19 %.rel: %.c
20         $(CC) -c $(MFLAGS) $<