From 87d220912eec426d6cca032f4a06d150e056663d Mon Sep 17 00:00:00 2001 From: Zvonimir Rudinski Date: Fri, 22 Dec 2023 04:22:35 +0100 Subject: [PATCH] add cflags --- Makefile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 5f8e941..cde8e45 100644 --- a/Makefile +++ b/Makefile @@ -1,16 +1,16 @@ -.DEFAULT_GOAL := purge +.DEFAULT_GOAL := all CC=gcc +CFLAGS=-Wall -Wextra -Werror -pedantic -std=c99 -g todo.o: - $(CC) -c engine/todo.c -o todo.o + $(CC) $(CFLAGS) -c engine/todo.c -o todo.o main.o: - $(CC) -c main.c -o main.o + $(CC) $(CFLAGS) -c main.c -o main.o -purge: +clean: rm -f *.o - make all all: todo.o main.o - $(CC) todo.o main.o -o todd + $(CC) $(CFLAGS) todo.o main.o -o todd