Makefile: use $(CC) instead of hardcoding gcc
This commit is contained in:
parent
f67807d348
commit
841a607830
1 changed files with 3 additions and 2 deletions
5
Makefile
5
Makefile
|
@ -1,11 +1,12 @@
|
||||||
.POSIX:
|
.POSIX:
|
||||||
|
|
||||||
PREFIX = /usr/local
|
PREFIX = /usr/local
|
||||||
|
CC = gcc
|
||||||
|
|
||||||
dwmblocks: dwmblocks.o
|
dwmblocks: dwmblocks.o
|
||||||
gcc dwmblocks.o -lX11 -o dwmblocks
|
$(CC) dwmblocks.o -lX11 -o dwmblocks
|
||||||
dwmblocks.o: dwmblocks.c config.h
|
dwmblocks.o: dwmblocks.c config.h
|
||||||
gcc -c -lX11 dwmblocks.c
|
$(CC) -c dwmblocks.c
|
||||||
clean:
|
clean:
|
||||||
rm -f *.o *.gch dwmblocks
|
rm -f *.o *.gch dwmblocks
|
||||||
install: dwmblocks
|
install: dwmblocks
|
||||||
|
|
Loading…
Reference in a new issue