From b9ccca687a0ba624fe0751713da0e1695994bc45 Mon Sep 17 00:00:00 2001 From: Alessandro Iezzi Date: Thu, 2 May 2024 23:26:34 +0200 Subject: Change fixed X11 flags Just use the pkg-config to make this project buildable on different systems. --- config.mk | 6 +++--- 1 file 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 -- cgit v1.2.3