Rev | Line | |
---|
[1] | 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 |
---|
[11] | 7 | OBJECTS= main.o serial.o serial2.o |
---|
| 8 | HEADERS= my_serial.h my_serial2.h |
---|
[1] | 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} |
---|
[11] | 20 | ${CC} -V -Wl,-s${.CURDIR}/pic18f27j13.lkr --no-crt --ivt-loc=0x400 --obanksel=2 -mpic16 -p18f27j13 -Wl,libc18f.lib ${.ALLSRC} -o ${.TARGET} -llibm18f.lib |
---|
[1] | 21 | |
---|
| 22 | ${OBJECTS}: ${HEADERS} Makefile |
---|
| 23 | |
---|
| 24 | .c.o: |
---|
[11] | 25 | ${CC} ${CFLAGS} -V --no-crt --ivt-loc=0x400 --obanksel=2 -mpic16 -p18f27j13 -c ${.IMPSRC} -o ${.TARGET} |
---|
[1] | 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.