2024-07-14 21:34:28 -06:00
|
|
|
_VERSION = 0.8-dev
|
2022-12-30 14:45:03 -06:00
|
|
|
VERSION = `git describe --tags --dirty 2>/dev/null || echo $(_VERSION)`
|
2022-05-09 14:52:03 -05:00
|
|
|
|
2022-09-20 23:34:48 -05:00
|
|
|
PKG_CONFIG = pkg-config
|
|
|
|
|
|
2020-11-22 12:58:49 -05:00
|
|
|
# paths
|
|
|
|
|
PREFIX = /usr/local
|
2022-01-05 01:54:02 +01:00
|
|
|
MANDIR = $(PREFIX)/share/man
|
2023-09-24 11:24:39 -06:00
|
|
|
DATADIR = $(PREFIX)/share
|
2020-11-22 12:58:49 -05:00
|
|
|
|
2024-06-20 12:36:56 -06: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 16:04:19 -06:00
|
|
|
XWAYLAND =
|
2022-05-30 16:18:31 -05:00
|
|
|
XLIBS =
|
2020-08-10 12:50:56 -05:00
|
|
|
# Uncomment to build XWayland support
|
2022-05-25 16:04:19 -06:00
|
|
|
#XWAYLAND = -DXWAYLAND
|
2022-09-18 15:49:30 -05:00
|
|
|
#XLIBS = xcb xcb-icccm
|
2024-06-20 18:38:59 -06:00
|
|
|
|
2024-08-01 20:38:57 -06: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
|