10 ALL_CFLAGS=$(CPPFLAGS) $(CFLAGS) $(DEFS)
16 INSTALL_PROGRAM=@INSTALL_PROGRAM@
21 top_builddir=@top_builddir@
24 exec_prefix=@exec_prefix@
27 sysconfdir=@sysconfdir@
29 SOBJS= auth_002.lo auth_003.lo checksum.lo config.lo exec_002.lo get_file.lo \
30 update_server.lo xfer_002.lo xfer_003.lo sendrecv.lo
31 COBJS= update_test.lo checksum.lo client.lo send_file.lo ticket.lo sendrecv.lo
33 TARGET=update_server update_test
38 $(LIBTOOL) --mode=compile $(CC) -c $(ALL_CFLAGS) $<
43 $(LIBTOOL) --mode=clean rm -f $(SOBJS) $(COBJS) $(TARGET)
45 cleandir distclean: clean
51 $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) update_test $(DESTDIR)$(bindir)
52 $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) update_server $(DESTDIR)$(sbindir)
53 $(SRCTOP)/mkinstalldirs $(DESTDIR)/etc/athena
54 $(INSTALL) -m 644 moira.conf $(DESTDIR)/etc/athena/moira.conf
56 update_test: $(COBJS) $(MR_LIBDEP)
57 $(LIBTOOL) --mode=link $(CC) -o $@ $(LDFLAGS) $(COBJS) $(LIBS)
59 update_server: $(SOBJS) $(MR_LIBDEP)
60 $(LIBTOOL) --mode=link $(CC) -o $@ $(LDFLAGS) $(SOBJS) $(LIBS)