3 PROGS+=$(o)/server/subauthd $(o)/server/subauthd.8
5 HTML_DOCS+=$(o)/server/subauthd.8.html
7 $(o)/server/subauthd: $(addprefix $(o)/server/, subauthd.o cmd.o auth.o temp.o)
8 $(o)/server/subauthd: LIBS+=$(LIBGCRYPT_LIBS)
9 $(o)/server/auth.o: CFLAGS+=$(LIBGCRYPT_CFLAGS)
11 .PHONY: install-server
12 install:: install-server
14 install -d -m 755 $(DESTDIR)$(INSTALL_SBIN_DIR) $(DESTDIR)$(INSTALL_CONFIG_DIR) $(DESTDIR)$(INSTALL_MAN_DIR)/man8
15 install -m 755 $(o)/server/subauthd $(DESTDIR)$(INSTALL_SBIN_DIR)
16 install -m 644 run/etc/subauthd $(DESTDIR)$(INSTALL_CONFIG_DIR)
17 install -m 644 run/share/man/man8/subauthd.8 $(DESTDIR)$(INSTALL_MAN_DIR)/man8
18 install -d -m 750 $(DESTDIR)$(INSTALL_STATE_DIR)/subauthd