aboutsummaryrefslogtreecommitdiff
path: root/sys/cmd/wm/rules.mk
blob: b1ab9c3584336b250567ce60ae4a7cc5a3e94d5e (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
include share/push.mk
# Iterate through subdirectory tree

# Local sources
SRCS_$(d) := \
	$(d)/input.c \
	$(d)/output.c \
	$(d)/xdg.c \
	$(d)/client.c \
	$(d)/main.c
BINS_$(d) := $(d)/wm

include share/paths.mk

# Local rules
include share/dynamic.mk
$(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)/sys/libn/libn.a
	$(COMPLINK)

include share/pop.mk