]> git.armaanb.net Git - dwmblocks.git/commitdiff
Fix LDFLAGS for Ubuntu
authorVictor Timofei <victor@vtimothy.com>
Wed, 23 Dec 2020 17:52:47 +0000 (19:52 +0200)
committerVictor Timofei <victor@vtimothy.com>
Wed, 23 Dec 2020 17:52:47 +0000 (19:52 +0200)
Makefile

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