From 4e8bb86ddd7c38b8248c1b19e66d058405cfc974 Mon Sep 17 00:00:00 2001 From: Eric Date: Wed, 28 May 2025 17:55:13 +0200 Subject: [PATCH] change Makefile to be stricter -Og enables better detection of bugs that would only occur in optimized compilations and allows for slightly lesser than -O1 optimization that does not interfere with debugging. --- Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index ff2a3f4..b66cfcc 100644 --- a/Makefile +++ b/Makefile @@ -1,13 +1,14 @@ -CFLAGS = -g -Wall -Wextra -Werror +CC = gcc +CFLAGS = -Og -Wall -Wextra -Werror objects = main.o input.o output.o encode.o b64 : $(objects) - cc -o b64 $(objects) + $(CC) -o b64 $(objects) main.o input.o : input.h -main.o output.o : output.h main.o encode.o : encode.h +main.o output.o : output.h .PHONY : clean clean :