# FIXME: use pkgconf --libs wayland-client CFLAGS:=-lwayland LDFLAGS:=-lwayland-client wl_unlocker: unlocker.o session-lock.o gcc -o wl_unlocker unlocker.o session-lock.o $(LDFLAGS) 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