~moody/drawterm

ref: c9d5ac09c7b443242c81dde0fcd51db806a308d2 drawterm/gui-wl/Makefile -rw-r--r-- 856 bytes
c9d5ac09 — Jacob Moody add wayland backend 7 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
ROOT=..
include ../Make.config
LIB=libgui.a

XDG_SHELL=/usr/share/wayland-protocols/stable/xdg-shell/xdg-shell.xml
XDG_DECO=/usr/share/wayland-protocols/unstable/xdg-decoration/xdg-decoration-unstable-v1.xml

HFILES=\
	xdg-shell-protocol.h\
	xdg-decoration-protocol.h\
	wl-inc.h\

OFILES=\
	xdg-shell-protocol.$O\
	xdg-decoration-protocol.$O\
	wl-cb.$O\
	wl-screen.$O\
	wl-util.$O\

xdg-shell-protocol.c:
	wayland-scanner private-code < $(XDG_SHELL) > xdg-shell-protocol.c

xdg-shell-protocol.h:
	wayland-scanner client-header < $(XDG_SHELL) > xdg-shell-protocol.h

xdg-decoration-protocol.c:
	wayland-scanner private-code < $(XDG_DECO) > xdg-decoration-protocol.c

xdg-decoration-protocol.h:
	wayland-scanner client-header < $(XDG_DECO) > xdg-decoration-protocol.h

default: $(LIB)
$(LIB): $(HFILES) $(OFILES)
	$(AR) r $(LIB) $(OFILES)
	$(RANLIB) $(LIB)