#
# Copyright (C) 1986, Excelan, Inc.  All rights reserved.
#
# $Header: Makefile,v 1.7 86/09/16 14:13:12 alexl Exp $
#
# @(#)Makefile	1.5 5/9/85
#
#  Remote who, who daemon and uptime program makefile
#
PROGS=		rwho rwhod ruptime
FAKE=		fakehost.o fakebyte.o
INCL=		/usr/src/EXOS/include/EXOS
CFLAGS=		-O -I. -I$(INCL) -D${VERSION} ${HOST_DEFINES}
LIBN=		../../../../lib/libsocket.a ../../../lib/libndir/libndir.a

.c.o:
	cc -c $(CFLAGS) $*.c

all:	${PROGS}

rwho:	rwhod.h compat.h rwho.o rwhod.h $(LIBN)
	${LD} -o rwho rwho.o ${LIBN}

rwhod:	rwhod.h compat.h rwhod.o rwhod.h ${FAKE} $(LIBN)
	${LD} -o rwhod rwhod.o ${FAKE} ${LIBN}

ruptime: compat.h ruptime.o $(LIBN)
	${LD} -o ruptime ruptime.o ${LIBN}

clean:
	-/bin/rm -f ${PROGS} *.o a.out core errs
