# optional flags are: MEASURE TESTING DEBUG HAVENIS
CC=	gcc
CFLAGS=	-O -I../include

LIBS=	../lib/timed.a

SRCS=	acksend.c candidate.c correct.c master.c networkdelta.c readmsg.c \
	slave.c timed.c daemon.c logwtmp.c
OBJS=	acksend.o candidate.o correct.o master.o networkdelta.o readmsg.o \
	slave.o timed.o daemon.o logwtmp.o

all:	timed man

timed:	${OBJS}
	${CC} ${OBJS} -o timed ${LIBS}

man:	timed.8
	nroff -mandoc timed.8 > timed.0

install:
	install -c -s -m 555 -o bin -g bin timed /usr/sbin/in.timed

clean:
	-rm *.o timed timed.0
