You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
534 B
Makefile

# FIXME: use pkgconf --libs wayland-client
CFLAGS:=-lwayland
LDFLAGS:=-lwayland-client
wl_unlocker: unlocker.o session-lock.o
gcc $(LDFLAGS) unlocker.o session-lock.o -o wl_unlocker
unlocker.o: unlocker.c session-lock.h
session-lock.h:
# FIXME: don't hardcode path!
wayland-scanner client-header /usr/share/wayland-protocols/staging/ext-session-lock/ext-session-lock-v1.xml session-lock.h
session-lock.c:
wayland-scanner private-code /usr/share/wayland-protocols/staging/ext-session-lock/ext-session-lock-v1.xml session-lock.c