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.
This commit is contained in:
Eric 2025-05-28 17:55:13 +02:00
parent 733a013ee7
commit 4e8bb86ddd

View file

@ -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 :