Guest User

Untitled

a guest
Aug 16th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. WAYLAND_PROTOCOLS=/usr/share/wayland-protocols
  2.  
  3. # wayland-scanner is a tool which generates C headers and rigging for Wayland
  4. # protocols, which are specified in XML. wlroots requires you to rig these up
  5. # to your build system yourself and provide them in the include path.
  6. xdg-shell-protocol.h:
  7. wayland-scanner server-header \
  8. $(WAYLAND_PROTOCOLS)/stable/xdg-shell/xdg-shell.xml $@
  9.  
  10. xdg-shell-protocol.c: xdg-shell-protocol.h
  11. wayland-scanner private-code \
  12. $(WAYLAND_PROTOCOLS)/stable/xdg-shell/xdg-shell.xml $@
  13.  
  14. tinywl: tinywl.c xdg-shell-protocol.h xdg-shell-protocol.c
  15. $(CC) $(CFLAGS) \
  16. -g -Werror -I. \
  17. -DWLR_USE_UNSTABLE \
  18. $(shell pkg-config --cflags --libs wlroots) \
  19. $(shell pkg-config --cflags --libs wayland-server) \
  20. $(shell pkg-config --cflags --libs xkbcommon) \
  21. -o $@ $<
  22.  
  23. clean:
  24. rm -f tinywl xdg-shell-protocol.h xdg-shell-protocol.c
  25.  
  26. .DEFAULT_GOAL=tinywl
  27. .PHONY: clean
Add Comment
Please, Sign In to add comment