--- a/Makefile 2006-08-22 13:59:42.000000000 +0530 +++ b/Makefile 2022-07-09 12:00:22.682792078 +0530 @@ -1,3 +1,4 @@ +CXX?=g++ CFLAGS+=-g -Wall -pedantic LFLAGS+= @@ -11,19 +12,19 @@ rm m16c-flash ccomport.o: ccomport.cxx ccomport.h - g++ $(CFLAGS) ccomport.cxx -c -o ccomport.o + $(CXX) $(CFLAGS) ccomport.cxx -c -o ccomport.o cpage.o: cpage.cxx cpage.h - g++ $(CFLAGS) cpage.cxx -c -o cpage.o + $(CXX) $(CFLAGS) cpage.cxx -c -o cpage.o cmotfile.o: cmotfile.cxx cmotfile.h - g++ $(CFLAGS) cmotfile.cxx -c -o cmotfile.o + $(CXX) $(CFLAGS) cmotfile.cxx -c -o cmotfile.o cm16flash.o: cm16flash.cxx cm16flash.h - g++ $(CFLAGS) cm16flash.cxx -c -o cm16flash.o + $(CXX) $(CFLAGS) cm16flash.cxx -c -o cm16flash.o m16c-flash: flashm16.cxx cm16flash.o cmotfile.o cpage.o ccomport.o - g++ $(CFLAGS) flashm16.cxx cm16flash.o cmotfile.o cpage.o ccomport.o -o m16c-flash + $(CXX) $(CFLAGS) flashm16.cxx cm16flash.o cmotfile.o cpage.o ccomport.o -o m16c-flash install: cp m16c-flash /usr/bin