C++ compiler is CXX
Stefan Schuermans

Stefan Schuermans commited on 2017-09-23 12:33:58
Showing 1 changed files, with 4 additions and 4 deletions.

... ...
@@ -2,7 +2,7 @@ CFGS := $(wildcard config/*.cfg.sh)
2 2
 SRCS := $(wildcard common/*.cpp) $(wildcard linux/*.cpp)
3 3
 TARGET := Blinker
4 4
 
5
-CPP := g++
5
+CXX := g++
6 6
 CONFIG :=
7 7
 DEFINE :=
8 8
 INCLUDE := -Icommon -Ilinux
... ...
@@ -38,13 +38,13 @@ config.mk: $(CFGS_MK)
38 38
 	sh $< >$@
39 39
 
40 40
 %.d: %.cpp Makefile config.mk
41
-	$(CPP) $(DEFINE) $(INCLUDE) $(CFLAGS) -MM -MF $@ -MT $(@:.d=.o) $<
41
+	$(CXX) $(DEFINE) $(INCLUDE) $(CFLAGS) -MM -MF $@ -MT $(@:.d=.o) $<
42 42
 
43 43
 %.o: %.cpp Makefile
44
-	$(CPP) $(DEFINE) $(INCLUDE) $(CFLAGS) -c -o $@ $<
44
+	$(CXX) $(DEFINE) $(INCLUDE) $(CFLAGS) -c -o $@ $<
45 45
 
46 46
 $(TARGET): $(OBJS)
47
-	$(CPP) $(LDFLAGS) -o $@ $+ $(LIBS)
47
+	$(CXX) $(LDFLAGS) -o $@ $+ $(LIBS)
48 48
 
49 49
 clean:
50 50
 	rm -f $(DEPS) $(OBJS) $(TARGET)
51 51