improve Makefile

This commit is contained in:
Eric 2025-06-11 23:26:43 +02:00
parent 06b8c2a046
commit 59bd416dc7

View file

@ -1,7 +1,7 @@
CC = gcc
CFLAGS = -Og -g -Wall -Wextra -Werror
CC ::= gcc
CFLAGS ::= -Og -g -Wall -Wextra -Werror
objects = main.o input.o output.o encode.o
objects ::= $(patsubst %.c, %.o, $(wildcard *.c))
b64 : $(objects)
$(CC) -o b64 $(objects)
@ -12,4 +12,4 @@ main.o output.o : output.h
.PHONY : clean
clean :
rm -f b64 $(objects)
-rm -f b64 $(objects)