2024-07-15 03:34:28 +00:00
|
|
|
_VERSION = 0.8-dev
|
2022-12-30 20:45:03 +00:00
|
|
|
VERSION = `git describe --tags --dirty 2>/dev/null || echo $(_VERSION)`
|
2022-05-09 19:52:03 +00:00
|
|
|
|
2022-09-21 04:34:48 +00:00
|
|
|
PKG_CONFIG = pkg-config
|
|
|
|
|
2020-11-22 17:58:49 +00:00
|
|
|
# paths
|
|
|
|
PREFIX = /usr/local
|
2022-01-05 00:54:02 +00:00
|
|
|
MANDIR = $(PREFIX)/share/man
|
2023-09-24 17:24:39 +00:00
|
|
|
DATADIR = $(PREFIX)/share
|
2020-11-22 17:58:49 +00:00
|
|
|
|
2024-06-20 18:36:56 +00:00
|
|
|
# Allow using an alternative wlroots installations
|
|
|
|
# This has to have all the includes required by wlroots, e.g:
|
|
|
|
# Assuming wlroots git repo is "${PWD}/wlroots" and you only ran "meson setup build && ninja -C build"
|
|
|
|
#WLR_INCS = -I/usr/include/pixman-1 -I/usr/include/elogind -I/usr/include/libdrm \
|
|
|
|
# -I$(PWD)/wlroots/include
|
|
|
|
# Set -rpath to avoid using the wrong library.
|
|
|
|
#WLR_LIBS = -Wl,-rpath,$(PWD)/wlroots/build -L$(PWD)/wlroots/build -lwlroots-0.19
|
|
|
|
|
|
|
|
# Assuming you ran "meson setup --prefix ${PWD}/0.19 build && ninja -C build install"
|
|
|
|
#WLR_INCS = -I/usr/include/pixman-1 -I/usr/include/elogind -I/usr/include/libdrm \
|
|
|
|
# -I$(PWD)/wlroots/0.19/include/wlroots-0.19
|
|
|
|
#WLR_LIBS = -Wl,-rpath,$(PWD)/wlroots/0.19/lib64 -L$(PWD)/wlroots/0.19/lib64 -lwlroots-0.19
|
|
|
|
|
|
|
|
WLR_INCS = `$(PKG_CONFIG) --cflags wlroots-0.19`
|
|
|
|
WLR_LIBS = `$(PKG_CONFIG) --libs wlroots-0.19`
|
|
|
|
|
2022-05-25 22:04:19 +00:00
|
|
|
XWAYLAND =
|
2022-05-30 21:18:31 +00:00
|
|
|
XLIBS =
|
2020-08-10 17:50:56 +00:00
|
|
|
# Uncomment to build XWayland support
|
2022-05-25 22:04:19 +00:00
|
|
|
#XWAYLAND = -DXWAYLAND
|
2022-09-18 20:49:30 +00:00
|
|
|
#XLIBS = xcb xcb-icccm
|
2024-06-21 00:38:59 +00:00
|
|
|
|
2024-08-02 02:38:57 +00:00
|
|
|
# dwl itself only uses C99 features, but wlroots' headers use anonymous unions (C11).
|
|
|
|
# To avoid warnings about them, we do not use -std=c99 and instead of using the
|
|
|
|
# gmake default 'CC=c99', we use cc.
|
|
|
|
CC = cc
|