Clean up Makefile
This commit is contained in:
parent
3c588f9a7d
commit
f5e8d84eec
10
Makefile
10
Makefile
@ -1,11 +1,13 @@
|
|||||||
CPP=g++
|
CPP=g++
|
||||||
|
|
||||||
EXEC := 00-const-vars/const.o 00-const-vars/no-const.o 01-inline-functions/inline.o 01-inline-functions/no-inline.o
|
OBJS := 00-const-vars/const.o 00-const-vars/no-const.o 01-inline-functions/inline.o 01-inline-functions/no-inline.o
|
||||||
|
|
||||||
all: $(EXEC)
|
all: $(OBJS)
|
||||||
|
|
||||||
%.o: %.cpp
|
%.o: %.cpp
|
||||||
g++ $< -o $@ -c
|
$(CPP) $< -o $@ -c
|
||||||
|
|
||||||
|
.PHONY: clean all
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
$(RM) $(EXEC)
|
$(RM) $(OBJS)
|
||||||
|
Loading…
Reference in New Issue
Block a user