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