#########################################################################
## (c) Copyright 1988, Hewlett-Packard Co.  All Rights Reserved.       ##
##                                                                     ##
## Author: Tai Jin, Hewlett-Packard Laboratories.                      ##
#########################################################################

## "@(#)$Header: makefile,v 1.2 89/02/09 12:27:09 tai Exp $" ##

#
# Before 7.0
#DEFS=	-DSYSLOG -DSDD -DPRE7_0
#INC=	-I/usr/local/include -I/usr/local/include/bind
#LLIBS=	-lsyslog -lresolv
#
# 7.0 or after
DEFS= -DSTREAM -DREFCLOCK -DNO_SIGNED_CHAR_DECL -DPPS -DPPSDEV -DDEBUG
INC=	-I/usr/local/include
LLIBS=	


CFLAGS=	-O $(DEFS) $(INC)
LDFLAGS= 
LIBS=	$(LLIBS) -lc
OBJ=	adjtime.o adjtimed.o
ALL=	libadjtime.a adjtimed

all:	$(ALL)

libadjtime.a: adjtime.o
	ar vr libadjtime.a $?

adjtimed: adjtimed.o
	$(CC) $(LDFLAGS) -o adjtimed adjtimed.o $(LIBS)

clean:
	rm -f *.a *.o adjtimed
