commit 99d028e
uint
·
2026-08-03 17:32:31 +0000 UTC
parent 7a8c3b6
use WL_CFLAGS for wayland compilation regular wayland uses C99 features so i should just compile with C99 on that
1 files changed,
+3,
-2
M
Makefile
M
Makefile
+3,
-2
1@@ -6,6 +6,7 @@ CC = cc
2 AR = ar
3 ARFLAGS = -r -c
4 CFLAGS = -ansi -pedantic-errors -Wall -Wextra -O2
5+WL_CFLAGS = -std=c99 -Wall -Wextra -O2
6 CPPFLAGS = ${CONF_CPPFLAGS} -Iinclude -Ibuild
7 LDFLAGS = ${CONF_LDFLAGS}
8
9@@ -42,7 +43,7 @@ build/maus_x11.o: source/maus_x11.c include/maus.h include/maus_x11.h config.mk
10 # Wayland
11 build/maus_wayland.o: source/maus_wayland.c include/maus.h include/maus_wayland.h build/xdg-shell-client-protocol.h config.mk
12 mkdir -p build
13- ${CC} ${CFLAGS} ${CPPFLAGS} -c source/maus_wayland.c -o $@
14+ ${CC} ${WL_CFLAGS} ${CPPFLAGS} -c source/maus_wayland.c -o $@
15 build/xdg-shell-client-protocol.h:
16 mkdir -p build
17 wayland-scanner client-header ${PROTOS}/stable/xdg-shell/xdg-shell.xml $@
18@@ -51,7 +52,7 @@ build/xdg-shell-protocol.c:
19 wayland-scanner private-code ${PROTOS}/stable/xdg-shell/xdg-shell.xml $@
20 build/xdg-shell-protocol.o: build/xdg-shell-protocol.c build/xdg-shell-client-protocol.h
21 mkdir -p build
22- ${CC} ${CFLAGS} ${CPPFLAGS} -c build/xdg-shell-protocol.c -o $@
23+ ${CC} ${WL_CFLAGS} ${CPPFLAGS} -c build/xdg-shell-protocol.c -o $@
24
25 clean:
26 rm -rf build ${LIB_NAME} config.mk compile_flags.txt