diff --git a/.gitignore b/.gitignore index c39bc2d..f7391db 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ # ignore binaries *.exe +*.o # ignore object dumps *.dump diff --git a/Makefile b/Makefile index c10fe78..182bdaf 100644 --- a/Makefile +++ b/Makefile @@ -1,11 +1,11 @@ CPP=g++ -EXEC := 00-const-vars/const.exe 00-const-vars/no-const.exe 01-inline-functions/inline.exe 01-inline-functions/no-inline.exe +EXEC := 00-const-vars/const.o 00-const-vars/no-const.o 01-inline-functions/inline.o 01-inline-functions/no-inline.o all: $(EXEC) -%.exe: %.cpp - g++ $< -o $@ +%.o: %.cpp + g++ $< -o $@ -c clean: $(RM) $(EXEC)