aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlessandro Iezzi <aiezzi@alessandroiezzi.it>2024-05-02 23:26:34 +0200
committerAlessandro Iezzi <aiezzi@alessandroiezzi.it>2024-05-02 23:26:34 +0200
commitb9ccca687a0ba624fe0751713da0e1695994bc45 (patch)
treeb35d748e5ec6d7efc95f0678ad56a933dc91b07d
parenta34d8fb4327bbb1afd92e7527c53fcaad547a495 (diff)
downloadslock-b9ccca687a0ba624fe0751713da0e1695994bc45.tar.gz
slock-b9ccca687a0ba624fe0751713da0e1695994bc45.zip
Change fixed X11 flags
Just use the pkg-config to make this project buildable on different systems.
-rw-r--r--config.mk6
1 files changed, 3 insertions, 3 deletions
diff --git a/config.mk b/config.mk
index 514c236..8617178 100644
--- a/config.mk
+++ b/config.mk
@@ -7,12 +7,12 @@ VERSION = 1.5
PREFIX = /usr/local
MANPREFIX = ${PREFIX}/share/man
-X11INC = /usr/X11R6/include
-X11LIB = /usr/X11R6/lib
+X11INC != pkg-config --cflags x11 xorg-server
+X11LIB != pkg-config --libs x11 xorg-server
# includes and libs
INCS = -I. -I/usr/include -I${X11INC}
-LIBS = -L/usr/lib -lc -lcrypt -L${X11LIB} -lX11 -lXext -lXrandr
+LIBS = -L/usr/lib -lc -lcrypt ${X11LIB} -lXext -lXrandr
# flags
CPPFLAGS = -DVERSION=\"${VERSION}\" -D_DEFAULT_SOURCE -DHAVE_SHADOW_H