Added back the ability to change compiler with CC environment variable.
authoraidan <aidan@Edward.localdomain>
Wed, 19 Aug 2020 16:12:37 +0000 (10:12 -0600)
committeraidan <aidan@Edward.localdomain>
Wed, 19 Aug 2020 16:12:37 +0000 (10:12 -0600)
Makefile

index 3cfa764..8b3a30e 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,8 @@
 PREFIX ?= /usr/local
+CC ?= cc
 
 output: dwmblocks.c blocks.def.h blocks.h
-       cc `pkg-config --cflags x11` `pkg-config --libs x11` dwmblocks.c -o dwmblocks
+       ${CC} `pkg-config --cflags x11 --libs x11` dwmblocks.c -o dwmblocks
 blocks.h:
        cp blocks.def.h $@