From 59bd416dc7f5fbe135d125480b6b9ac993ead780 Mon Sep 17 00:00:00 2001 From: Eric Date: Wed, 11 Jun 2025 23:26:43 +0200 Subject: [PATCH] improve Makefile --- Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index e6f82d7..1053c2c 100644 --- a/Makefile +++ b/Makefile @@ -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)