blob: 30d786de2aa4e91d53cc5ec52aa5093605c84133 (
plain)
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
include share/push.mk
# Iterate through subdirectory tree
# local sources
SRCS_$(d):=\
$(d)/xdg-shell-protocol.c\
$(d)/wlr-layer-shell-unstable-v1-protocol.c\
$(d)/util.c\
$(d)/input.c\
$(d)/render.c\
$(d)/layer.c\
$(d)/xdg.c\
$(d)/client.c\
$(d)/monitor.c\
$(d)/main.c
# local outputs
BINS_$(d) := $(d)/wm
include share/paths.mk
# Local rules
include share/dynamic.mk
$(d)/xdg-shell-protocol.h:
@echo "MK $(notdir $@)";\
$(WL_SCAN) server-header $(WL_PROTO)/stable/xdg-shell/xdg-shell.xml $@
$(d)/xdg-shell-protocol.c: $(d)/xdg-shell-protocol.h
@echo "MK $(notdir $@)";\
$(WL_SCAN) private-code $(WL_PROTO)/stable/xdg-shell/xdg-shell.xml $@
$(d)/wlr-layer-shell-unstable-v1-protocol.h:
@echo "MK $(notdir $@)";\
$(WL_SCAN) server-header $(dir $@)protocol/wlr-layer-shell-unstable-v1.xml $@
$(d)/wlr-layer-shell-unstable-v1-protocol.c: $(d)/wlr-layer-shell-unstable-v1-protocol.h
@echo "MK $(notdir $@)";\
$(WL_SCAN) private-code $(dir $@)protocol/wlr-layer-shell-unstable-v1.xml $@
GENS+=\
$(d)/xdg-shell-protocol.h\
$(d)/xdg-shell-protocol.c\
$(d)/wlr-layer-shell-unstable-v1-protocol.h\
$(d)/wlr-layer-shell-unstable-v1-protocol.c
$(BINS_$(d)): TCINCS=-I cmd/wm
$(BINS_$(d)): TCFLAGS=\
`$(PKG) --cflags wlroots`\
`$(PKG) --cflags wayland-server`\
`$(PKG) --cflags xkbcommon`
$(BINS_$(d)): TCLIBS=\
`$(PKG) --libs wlroots`\
`$(PKG) --libs wayland-server`\
`$(PKG) --libs xkbcommon`\
$(BINS_$(d)): $(OBJS_$(d)) $(OBJ_DIR)/base/base.a
$(COMPLINK)
include share/pop.mk
|