mirror of
https://github.com/vale981/spectrwm
synced 2025-03-06 02:01:42 -05:00

hooking XCreateWindow and friends via LD_PRELOAD. Used now to make sure that windows come up in the workspace they were spawn()'d from, but more soon. Code to do the nasty borrowed with thanks from Enlightenment.
22 lines
407 B
Makefile
22 lines
407 B
Makefile
# $scrotwm$
|
|
|
|
.include <bsd.xconf.mk>
|
|
|
|
LIB= swmhack
|
|
NOMAN= yes
|
|
SRCS= swm_hack.c
|
|
LIBDIR= ${X11BASE}/lib
|
|
|
|
DEBUGLIBS= no
|
|
NOPROFILE= yes
|
|
|
|
CFLAGS+=-Wall -Wno-uninitialized -ggdb3
|
|
CFLAGS+= -I${X11BASE}/include
|
|
|
|
install:
|
|
${INSTALL} ${INSTALL_COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
|
|
lib${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \
|
|
${X11BASE}/lib/swmhack.so
|
|
|
|
.include <bsd.lib.mk>
|
|
.include <bsd.xorg.mk>
|