blob: 31ab11cd1a1d0c940f68d9bec955da340dc82d04 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
AFLAGS=-k -p 16F88 -k
LDFLAGS=-m -s 16f88.lkr
PROG=gateway
ASRCS=${PROG}.asm selfprog.asm
OBJS=${ASRCS:%.asm=%.o}
LSTS=${ASRCS:%.asm=%.err}
ERRS=${ASRCS:%.asm=%.lst}
default:${PROG}.hex
%.o:%.asm
gpasm ${AFLAGS} -c -o $@ $<
${PROG}.hex:${OBJS}
gplink ${LDFLAGS} -o $@ ${OBJS}
clean:
/bin/rm -f ${PROG}.hex ${PROG}.map ${PROG}.cod ${OBJS} ${LSTS} ${ERRS}
|