master
config.mk
ohmu
·
2026-10-18
1VERSION = 1
2
3PKG_CONFIG = pkg-config
4
5# paths
6PREFIX = /usr/local
7MANDIR = $(PREFIX)/share/man
8DATADIR = $(PREFIX)/share
9
10WLR_INCS = `$(PKG_CONFIG) --cflags wlroots-0.19`
11WLR_LIBS = `$(PKG_CONFIG) --libs wlroots-0.19`
12
13# Allow using an alternative wlroots installation
14# This has to have all the includes required by wlroots, e.g:
15# Assuming wlroots git repo is "${PWD}/wlroots" and you only ran "meson setup build && ninja -C build"
16#WLR_INCS = -I/usr/include/pixman-1 -I/usr/include/elogind -I/usr/include/libdrm \
17# -I$(PWD)/wlroots/include
18# Set -rpath to avoid using the wrong library.
19#WLR_LIBS = -Wl,-rpath,$(PWD)/wlroots/build -L$(PWD)/wlroots/build -lwlroots-0.19
20
21# Assuming you ran "meson setup --prefix ${PWD}/0.19 build && ninja -C build install"
22#WLR_INCS = -I/usr/include/pixman-1 -I/usr/include/elogind -I/usr/include/libdrm \
23# -I$(PWD)/wlroots/0.19/include/wlroots-0.19
24#WLR_LIBS = -Wl,-rpath,$(PWD)/wlroots/0.19/lib64 -L$(PWD)/wlroots/0.19/lib64 -lwlroots-0.19
25
26XWAYLAND =
27XLIBS =
28# Uncomment to build XWayland support
29XWAYLAND = -DXWAYLAND
30XLIBS = xcb xcb-icccm
31
32CC = cc