first
This commit is contained in:
commit
2a017bb895
10 changed files with 613 additions and 0 deletions
18
Makefile
Normal file
18
Makefile
Normal file
|
@ -0,0 +1,18 @@
|
|||
CFLAGS:=-s -O0 -pedantic -Wall -Wextra -DWLR_USE_UNSTABLE
|
||||
LDFLAGS:=$(shell pkg-config --libs wlroots wayland-server libinput)
|
||||
CC:=cc
|
||||
|
||||
WAYLAND_SCANNER:=$(shell pkg-config --variable=wayland_scanner wayland-scanner)
|
||||
WAYLAND_PROTOCOLS:=$(shell pkg-config --variable=pkgdatadir wayland-protocols)
|
||||
|
||||
all: xdg-shell-protocol.h wlr-layer-shell-unstable-v1-protocol.h
|
||||
$(CC) $(CFLAGS) $(LDFLAGS) src/*.c -Iinclude/ -I. -o micro-wm
|
||||
|
||||
xdg-shell-protocol.h:
|
||||
$(WAYLAND_SCANNER) server-header $(WAYLAND_PROTOCOLS)/stable/xdg-shell/xdg-shell.xml $@
|
||||
|
||||
wlr-layer-shell-unstable-v1-protocol.h:
|
||||
$(WAYLAND_SCANNER) server-header protocols/wlr-layer-shell-unstable-v1.xml $@
|
||||
|
||||
clean:
|
||||
rm micro-wm *-protocol.h
|
Loading…
Add table
Add a link
Reference in a new issue