
EXE        = tabby
PROTOCOLS  = tabby-ipc-protocol
MODULES    = config cursor input layer output seat tabby workspace xdg
DEPS       = libinput wayland-server wlroots xkbcommon
PKGCONF   ?= pkgconf
CFLAGS    += $(shell $(PKGCONF) --cflags  $(DEPS))
CFLAGS    += -I../protocols/
CFLAGS    += -DWLR_USE_UNSTABLE
LDLIBS    += $(shell $(PKGCONF) --libs    $(DEPS))
VPATH      = ../protocols/

$(EXE): $(MODULES:%=%.o) $(PROTOCOLS:%=%.o)

clean:
	rm -f *.o

distclean: clean
	rm -f tabby

.PHONY: clean distclean

