From 3c588f9a7d52087a914d9d30f5f64eab812cc945 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Ortega=20Froysa?= Date: Wed, 15 Jun 2022 14:06:43 +0200 Subject: [PATCH] Use object files instead of entire binary. Makes for less assembly code to look through. --- .gitignore | 1 + Makefile | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) 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)