aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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