include share/push.mk # Iterate through subdirectory tree # Local sources SRCS_$(d) := \ $(d)/xdg-shell-protocol.c \ $(d)/util.c \ $(d)/arg.c \ $(d)/input.c \ $(d)/render.c \ $(d)/xdg.c \ $(d)/client.c \ $(d)/monitor.c \ $(d)/main.c BINS_$(d) := $(d)/wm include share/paths.mk # Local rules include share/dynamic.mk $(d)/xdg-shell-protocol.h: @echo "MK xdg-shell-protocol.h";\ $(WL_SCAN) server-header $(WL_PROTO)/stable/xdg-shell/xdg-shell.xml $@ $(d)/xdg-shell-protocol.c: $(d)/xdg-shell-protocol.h @echo "MK xdg-shell-protocol.c";\ $(WL_SCAN) private-code $(WL_PROTO)/stable/xdg-shell/xdg-shell.xml $@ GENS += $(d)/xdg-shell-protocol.h $(d)/xdg-shell-protocol.c $(BINS_$(d)): TCINCS = \ -I sys/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)/sys/libn/libn.a $(COMPLINK) include share/pop.mk