all: timed

include ../../MCONFIG
include ../../MRULES

LIBS += -L../lib -ltimed

OBJS = timed.o acksend.o candidate.o correct.o master.o networkdelta.o \
	readmsg.o slave.o 

timed: $(OBJS)
	$(CC) $(LDFLAGS) $^ $(LIBS) -o $@

$(OBJS): globals.h pathnames.h timed-extern.h ../../version.h

install: timed
	install -d $(INSTALLROOT)$(SBINDIR)
	install -s -m$(DAEMONMODE) timed $(INSTALLROOT)$(SBINDIR)
	install -d $(INSTALLROOT)$(MANDIR)/man8
	install -m$(MANMODE) timed.8 $(INSTALLROOT)$(MANDIR)/man8

clean:
	rm -f *.o timed

