| •1 |
CXX?=g++ |
| 2 |
CFLAGS+=-g -Wall -pedantic |
| 3 |
LFLAGS+= |
| 4 |
|
| 5 |
all: m16c-flash |
| 6 |
|
| 7 |
clean: |
| •8 |
rm -f ccomport.o |
| 9 |
rm -f cpage.o |
| 10 |
rm -f cmotfile.o |
| 11 |
rm -f cm16flash.o |
| 12 |
rm -f m16c-flash |
| 13 |
|
| 14 |
ccomport.o: ccomport.cxx ccomport.h |
| •15 |
$(CXX) $(CFLAGS) ccomport.cxx -c -o ccomport.o |
| 16 |
|
| 17 |
cpage.o: cpage.cxx cpage.h |
| •18 |
$(CXX) $(CFLAGS) cpage.cxx -c -o cpage.o |
| 19 |
|
| 20 |
cmotfile.o: cmotfile.cxx cmotfile.h |
| •21 |
$(CXX) $(CFLAGS) cmotfile.cxx -c -o cmotfile.o |
| 22 |
|
| 23 |
cm16flash.o: cm16flash.cxx cm16flash.h |
| •24 |
$(CXX) $(CFLAGS) cm16flash.cxx -c -o cm16flash.o |
| 25 |
|
| 26 |
m16c-flash: flashm16.cxx cm16flash.o cmotfile.o cpage.o ccomport.o |
| •27 |
$(CXX) $(CFLAGS) flashm16.cxx cm16flash.o cmotfile.o cpage.o ccomport.o -o m16c-flash |
| 28 |
|
| 29 |
install: |
| 30 |
cp m16c-flash /usr/bin |
| 31 |
|