include config.mk PROTOCOLS = xdg-shell-client-protocol.c SRC = ${PROTOCOLS} swt.c drw.c util.c wayland.c term.c OBJ = ${SRC:.c=.o} all: swt config.h: cp config.def.h config.h xdg-shell-client-protocol.h: wayland-scanner client-header < ${XDG_SHELL_CLIENT_PROTOCOL} > xdg-shell-client-protocol.h xdg-shell-client-protocol.c: xdg-shell-client-protocol.h wayland-scanner private-code < ${XDG_SHELL_CLIENT_PROTOCOL} > xdg-shell-client-protocol.c .c.o: ${CC} -c $< ${CFLAGS} ${OBJ}: ${PROTOCOLS} config.h swt: ${OBJ} ${SRC} ${CC} ${OBJ} -o swt ${LIBS} install: swt mkdir -p ${DESTDIR}${PREFIX}/bin cp -f swt ${DESTDIR}${PREFIX}/bin chmod 755 ${DESTDIR}${PREFIX}/bin/swt tic -sx swt.info @echo Please see the README file regarding the terminfo entry of st. uinstall: rm -f ${DESTDIR}${PREFIX}/bin/st clean: rm *.o swt ${PROTOCOLS} ${PROTOCOLS:.c=.h}