Last change
on this file since 10 was
1,
checked in by bouyer, 8 years ago
|
Initial commit of soc-conso files
|
File size:
810 bytes
|
Line | |
---|
1 | .SUFFIXES: .o .hex |
---|
2 | |
---|
3 | CC= sdcc --use-non-free --Werror |
---|
4 | ASM = gpasm |
---|
5 | CFLAGS= -I${.CURDIR} -I${.CURDIR}/../lib/J1939 -I${.CURDIR}/../lib/eeprom |
---|
6 | CFLAGS+= --fomit-frame-pointer --denable-peeps --optimize-cmp --optimize-df |
---|
7 | OBJECTS= main.o serial.o |
---|
8 | HEADERS= my_serial.h |
---|
9 | |
---|
10 | all: capteur.bin |
---|
11 | |
---|
12 | obj: |
---|
13 | mkdir obj |
---|
14 | |
---|
15 | capteur.bin: capteur.hex |
---|
16 | /local/armandeche1/bin/hex2bin1k ${.ALLSRC} ${.TARGET} |
---|
17 | @ls -lh ${.TARGET} |
---|
18 | |
---|
19 | capteur.hex: ${OBJECTS} |
---|
20 | ${CC} -V -Wl,-s${.CURDIR}/pic18f27j53.lkr --no-crt --ivt-loc=0x400 --obanksel=2 -mpic16 -p18f27j53 -Wl,libc18f.lib ${.ALLSRC} -o ${.TARGET} -llibm18f.lib |
---|
21 | |
---|
22 | ${OBJECTS}: ${HEADERS} Makefile |
---|
23 | |
---|
24 | .c.o: |
---|
25 | ${CC} ${CFLAGS} -V --no-crt --ivt-loc=0x400 --obanksel=2 -mpic16 -p18f27j53 -c ${.IMPSRC} -o ${.TARGET} |
---|
26 | |
---|
27 | .s.o: |
---|
28 | ${ASM} -c -o ${.TARGET} ${.IMPSRC} |
---|
29 | |
---|
30 | clean: |
---|
31 | rm -f capteur.* *.o *.lst *.asm |
---|
Note: See
TracBrowser
for help on using the repository browser.