upgrade ds1621 to report fp temp's
[fw/sdcc] / device / examples / ds390 / i2c390 / Makefile
1 CC = sdcc
2
3 MFLAGS = -mds390 --model-flat24 --stack-10bit
4 LFLAGS = --xram-loc 0x100080 --code-loc 0x10000 -Wl-r
5
6 all: i2c390.hex
7
8 clean:
9         rm -f *~ \#* *.asm *.cdb *.rel *.hex *.ihx *.lst *.map *.rst *.sym *.lnk
10
11 OBJECTS = i2c390.rel i2clole.rel ds1621.rel pcf8591.rel
12
13 i2c390.hex: i2c390.ihx
14         packihx i2c390.ihx >i2c390.hex
15
16 i2c390.ihx: $(OBJECTS)
17         $(CC) $(MFLAGS) $(LFLAGS) $(OBJECTS)
18
19 %.rel: %.c
20         $(CC) -c $(MFLAGS) -I../float390 $<