nageyqma·git
HTTPS https://git.nageyqma.icu/nageyqma/wm.git SSH git@git.nageyqma.icu:nageyqma/wm.git

HTTPS 链接可直接 git clone;推送代码请使用 SSH。

1.9 KB · 47 行raw
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
_VERSION = 0.10-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

# scenefx 0.5 headers are not -Wpedantic-clean; include them as system headers.
SCENEFX_INCS = `$(PKG_CONFIG) --cflags scenefx-0.5 | sed 's/-I/-isystem /g'`
SCENEFX_LIBS = `$(PKG_CONFIG) --libs scenefx-0.5`

WLR_INCS = `$(PKG_CONFIG) --cflags wlroots-0.20`
WLR_LIBS = `$(PKG_CONFIG) --libs wlroots-0.20`

# fcft.pc puts the header-only tllist in Requires.private, so pkg-config
# refuses to report fcft's flags when tllist.pc is absent. fcft's own header
# only needs pixman, and the shared library records the rest.
FCFT_INCS = `$(PKG_CONFIG) --cflags fcft 2>/dev/null || $(PKG_CONFIG) --cflags pixman-1`
FCFT_LIBS = `$(PKG_CONFIG) --libs fcft 2>/dev/null || echo -lfcft` `$(PKG_CONFIG) --libs pixman-1`

# 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.20

# Assuming you ran "meson setup --prefix ${PWD}/0.20 build && ninja -C build install"
#WLR_INCS = -I/usr/include/pixman-1 -I/usr/include/elogind -I/usr/include/libdrm \
#	-I$(PWD)/wlroots/0.20/include/wlroots-0.20
#WLR_LIBS = -Wl,-rpath,$(PWD)/wlroots/0.20/lib64 -L$(PWD)/wlroots/0.20/lib64 -lwlroots-0.20

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