From b67238d640ffab5c8c9c82e997dd8496c68ecc53 Mon Sep 17 00:00:00 2001 From: Dawid Potocki Date: Sat, 22 Jan 2022 03:38:48 +1300 Subject: Add CFLAGS to Makefile --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 90fb1a4..320184e 100644 --- a/Makefile +++ b/Makefile @@ -2,11 +2,12 @@ PREFIX = /usr/local CC = cc +CFLAGS = -std=c99 -Wall -Wpedantic -D _DEFAULT_SOURCE dwmblocks: dwmblocks.o - $(CC) dwmblocks.o -lX11 -o dwmblocks + ${CC} dwmblocks.o -lX11 -o dwmblocks dwmblocks.o: dwmblocks.c config.h - $(CC) -c dwmblocks.c + ${CC} ${CFLAGS} -c dwmblocks.c clean: rm -f *.o *.gch dwmblocks -- cgit v1.2.3-70-g09d2