summaryrefslogtreecommitdiffstats
path: root/boiler-monster/original-pic-4.2.5/Makefile
blob: ec282b11cc16e27d4d66314105dacfc56f01f0ff (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 ds1820.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}