Makefile: use $(CC) instead of hardcoding gcc

This commit is contained in:
ryanm0 2020-08-04 23:19:06 -10:00
parent f67807d348
commit 841a607830

View file

@ -1,11 +1,12 @@
.POSIX:
PREFIX = /usr/local
CC = gcc
dwmblocks: dwmblocks.o
gcc dwmblocks.o -lX11 -o dwmblocks
$(CC) dwmblocks.o -lX11 -o dwmblocks
dwmblocks.o: dwmblocks.c config.h
gcc -c -lX11 dwmblocks.c
$(CC) -c dwmblocks.c
clean:
rm -f *.o *.gch dwmblocks
install: dwmblocks