Added variable in makefile to change c compiler
authorAidan <torrinfail@gmail.com>
Mon, 6 Jul 2020 08:10:33 +0000 (02:10 -0600)
committerAidan <torrinfail@gmail.com>
Mon, 6 Jul 2020 08:10:33 +0000 (02:10 -0600)
Makefile

index c45a563..3336e3c 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
 PREFIX ?= /usr/local
-
+CC ?= cc
 output: dwmblocks.c blocks.h
-       cc `pkg-config --cflags x11` `pkg-config --libs x11` dwmblocks.c -o dwmblocks
+       ${CC} `pkg-config --cflags x11` `pkg-config --libs x11` dwmblocks.c -o dwmblocks
 clean:
        rm -f *.o *.gch dwmblocks
 install: output