From 56ea423d59b2313e4ae4a685b9d6a23c1a4914bf Mon Sep 17 00:00:00 2001 From: uint Date: Sun, 14 Dec 2025 18:17:53 +0000 Subject: add Xinerama, unify builds for OpenBSD users --- Makefile | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index ac9a786..e992767 100644 --- a/Makefile +++ b/Makefile @@ -6,17 +6,14 @@ PREFIX = /usr/local MANPREFIX = ${PREFIX}/share/man # libs -LIBS = -lX11 +# remove the Xinerama parts if you don't want Xinerama support +LIBS = -lX11 -lXINERAMA +CPPFLAGS = -DXINERAMA # flags -# CPPFLAGS = # CFLAGS = -std=c99 -Wall -Wextra -O0 -g ${CPPFLAGS} -fdiagnostics-color=always # debug -CFLAGS = -std=c99 -Wall -Wextra -Os ${CPPFLAGS} -fdiagnostics-color=always -LDFLAGS = ${LIBS} - -# uncomment this block for OpenBSD -# CFLAGS += -I/usr/X11R6/include -# LDFLAGS += -L/usr/X11R6/lib +CFLAGS = -std=c99 -Wall -Wextra -Os ${CPPFLAGS} -fdiagnostics-color=always -I/usr/X11R6/include +LDFLAGS = ${LIBS} -L/usr/X11R6/lib # files SRC = xnap.c -- cgit v1.2.3