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