commit 1b982f1
crossbower
·
2022-05-26 11:37:57 +0000 UTC
parent 9137114
build.sh: automatically include X11 libs on OpenBSD
1 files changed,
+8,
-0
M
build.sh
M
build.sh
+8,
-0
1@@ -5,6 +5,14 @@ DEBUG_FLAGS="-std=c89 -D_POSIX_C_SOURCE=199309L -DDEBUG -Wall -Wno-unknown-pragm
2 EMU_INC="src/uxn.c src/devices/system.c src/devices/screen.c src/devices/controller.c src/devices/mouse.c src/devices/file.c src/devices/datetime.c src/uxn11.c -o bin/uxn11 -lX11"
3 CLI_INC="src/uxn.c src/devices/system.c src/devices/file.c src/devices/datetime.c src/uxncli.c -o bin/uxncli"
4
5+# find X11 libs on various systems
6+if [ -e /usr/X11R6 ]; then
7+ # OpenBSD
8+ RELEASE_FLAGS="-L/usr/X11R6/lib/ -I/usr/X11R6/include/ $RELEASE_FLAGS"
9+ DEBUG_FLAGS="-L/usr/X11R6/lib/ -I/usr/X11R6/include/ $DEBUG_FLAGS"
10+fi
11+
12+
13 if [ "${1}" = '--format' ];
14 then
15 echo "Formatting.."