Skip to content

Commit

Permalink
Makefile: use $(CC) instead of hardcoding gcc
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanm0 committed Aug 5, 2020
1 parent f67807d commit 841a607
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 841a607

Please sign in to comment.