| 1 |
--- a/Makefile 2006-08-22 13:59:42.000000000 +0530 |
| 2 |
+++ b/Makefile 2022-07-09 12:00:22.682792078 +0530 |
| 3 |
@@ -1,3 +1,4 @@ |
| 4 |
+CXX?=g++ |
| 5 |
CFLAGS+=-g -Wall -pedantic |
| 6 |
LFLAGS+= |
| 7 |
|
| 8 |
@@ -11,19 +12,19 @@ |
| 9 |
rm m16c-flash |
| 10 |
|
| 11 |
ccomport.o: ccomport.cxx ccomport.h |
| 12 |
- g++ $(CFLAGS) ccomport.cxx -c -o ccomport.o |
| 13 |
+ $(CXX) $(CFLAGS) ccomport.cxx -c -o ccomport.o |
| 14 |
|
| 15 |
cpage.o: cpage.cxx cpage.h |
| 16 |
- g++ $(CFLAGS) cpage.cxx -c -o cpage.o |
| 17 |
+ $(CXX) $(CFLAGS) cpage.cxx -c -o cpage.o |
| 18 |
|
| 19 |
cmotfile.o: cmotfile.cxx cmotfile.h |
| 20 |
- g++ $(CFLAGS) cmotfile.cxx -c -o cmotfile.o |
| 21 |
+ $(CXX) $(CFLAGS) cmotfile.cxx -c -o cmotfile.o |
| 22 |
|
| 23 |
cm16flash.o: cm16flash.cxx cm16flash.h |
| 24 |
- g++ $(CFLAGS) cm16flash.cxx -c -o cm16flash.o |
| 25 |
+ $(CXX) $(CFLAGS) cm16flash.cxx -c -o cm16flash.o |
| 26 |
|
| 27 |
m16c-flash: flashm16.cxx cm16flash.o cmotfile.o cpage.o ccomport.o |
| 28 |
- g++ $(CFLAGS) flashm16.cxx cm16flash.o cmotfile.o cpage.o ccomport.o -o m16c-flash |
| 29 |
+ $(CXX) $(CFLAGS) flashm16.cxx cm16flash.o cmotfile.o cpage.o ccomport.o -o m16c-flash |
| 30 |
|
| 31 |
install: |
| 32 |
cp m16c-flash /usr/bin |