Clean up Makefile

This commit is contained in:
Nicolás A. Ortega Froysa 2022-06-17 14:36:23 +02:00
parent 3c588f9a7d
commit f5e8d84eec

View File

@ -1,11 +1,13 @@
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
g++ $< -o $@ -c
$(CPP) $< -o $@ -c
.PHONY: clean all
clean:
$(RM) $(EXEC)
$(RM) $(OBJS)