aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDawid Potocki <dawid@dawidpotocki.com>2022-01-22 03:38:48 +1300
committerDawid Potocki <dawid@dawidpotocki.com>2022-01-22 03:38:48 +1300
commitb67238d640ffab5c8c9c82e997dd8496c68ecc53 (patch)
tree4b84f3770894e8cc49142c41fed217ea0205390b
parentcedb4f6434c52977f32cad781ec5968234177ae3 (diff)
Add CFLAGS to MakefileHEADmaster
-rw-r--r--Makefile5
1 files 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