Makefile: Use CXX variable.
This commit is contained in:
4
Makefile
4
Makefile
@ -1,11 +1,9 @@
|
|||||||
CPP=g++
|
|
||||||
|
|
||||||
OBJS := 00-const-vars/const.o 00-const-vars/no-const.o 01-inline-functions/inline.o 01-inline-functions/no-inline.o 02-pass-by-ref/ref.o 02-pass-by-ref/no-ref.o
|
OBJS := 00-const-vars/const.o 00-const-vars/no-const.o 01-inline-functions/inline.o 01-inline-functions/no-inline.o 02-pass-by-ref/ref.o 02-pass-by-ref/no-ref.o
|
||||||
|
|
||||||
all: $(OBJS)
|
all: $(OBJS)
|
||||||
|
|
||||||
%.o: %.cpp
|
%.o: %.cpp
|
||||||
$(CPP) $< -o $@ -c
|
$(CXX) $< -o $@ -c
|
||||||
|
|
||||||
.PHONY: clean all
|
.PHONY: clean all
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user