summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoruint <abhinav.prsai@gmail.com>2025-12-14 18:17:53 +0000
committeruint <abhinav.prsai@gmail.com>2025-12-14 18:17:53 +0000
commit56ea423d59b2313e4ae4a685b9d6a23c1a4914bf (patch)
treeefaf63dbfe41f3d8b59602ccfee1580c25d6ef3f
parent14f6df4a92102f3bc108e70f4f13084c1f33fcd2 (diff)
add Xinerama, unify builds for OpenBSD users
-rw-r--r--Makefile13
1 files 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