diff options
| author | Nikita Langer <nikitalanger@icloud.com> | 2026-04-06 22:26:07 +0200 |
|---|---|---|
| committer | Nikita Langer <nikitalanger@icloud.com> | 2026-04-06 22:26:07 +0200 |
| commit | 3b4f2dd9894397c44ec0e10d4247e886c4f4c314 (patch) | |
| tree | 43c0ca4a04abf25d89446095ca16d81a5d5f26cf /config.mk | |
| download | dwl-3b4f2dd9894397c44ec0e10d4247e886c4f4c314.tar.gz dwl-3b4f2dd9894397c44ec0e10d4247e886c4f4c314.tar.bz2 dwl-3b4f2dd9894397c44ec0e10d4247e886c4f4c314.tar.xz dwl-3b4f2dd9894397c44ec0e10d4247e886c4f4c314.zip | |
Initial Komm mit :)
Diffstat (limited to 'config.mk')
| -rw-r--r-- | config.mk | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/config.mk b/config.mk new file mode 100644 index 0000000..9ccea74 --- /dev/null +++ b/config.mk @@ -0,0 +1,36 @@ +_VERSION = 0.8-dev +VERSION = `git describe --tags --dirty 2>/dev/null || echo $(_VERSION)` + +PKG_CONFIG = pkg-config + +# paths +PREFIX = /usr/local +MANDIR = $(PREFIX)/share/man +DATADIR = $(PREFIX)/share + +WLR_INCS = `$(PKG_CONFIG) --cflags wlroots-0.19` +WLR_LIBS = `$(PKG_CONFIG) --libs wlroots-0.19` + +# Allow using an alternative wlroots installation +# 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 + +XWAYLAND = +XLIBS = +# Uncomment to build XWayland support +XWAYLAND = -DXWAYLAND +XLIBS = xcb xcb-icccm + +# 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 |
