#
# Makefile for webster program
#
# David A. Curry
# Purdue University
# davy@ee.purdue.edu
# April, 1986
#
# Modified for Sun RPC webster client by Jean Marie Diaz (ambar@athena.mit.edu)
#
# $Source: /afs/sipb.mit.edu/project/sipbsrc/src/webster/src/ttyclient/RCS/Makefile,v $
# $Header: /afs/sipb.mit.edu/project/sipbsrc/src/webster/src/ttyclient/RCS/Makefile,v 1.6 1992/04/01 02:27:09 jik Exp ckclark $
# $Author: jik $
#
# $Log: Makefile,v $
# Revision 1.6  1992/04/01  02:27:09  jik
# Something to wile away the hours.
#
# Revision 1.5  1991/10/22  23:00:03  probe
# Forgot to change the library load path so that it will compile on rios
#
# Revision 1.4  91/10/22  22:49:24  probe
# Allow for compilation on RISC/6000
# 
# Revision 1.3  90/04/04  12:29:25  jik
# Better formatting and install rules.
# 
# Revision 1.2  90/01/16  10:55:27  jik
# changes by ambar
# 
# Revision 1.1  88/02/27  03:56:43  ambar
# Initial revision
# 
#

DESTDIR=
BINDIR=		/usr/sipb/${MACHINE}bin
MANDIR=		/usr/sipb/man
MANSECT=	1
CFLAGS=		-I../../include -I/usr/athena/include -DAPRIL_FOOL -DSUNRPC -DHESIOD -DTTYCLIENT -DPOSIX -O #-g
OBJS = 		webster.o clnt_simple.o client.o common.o

webster: $(OBJS) 
	$(CC) $(CFLAGS) -o webster $(OBJS) -L/usr/athena/lib -lhesiod

webster.o:	../../include/webster.h

clnt_simple.o:	../../lib/clnt_simple.c
	$(CC) $(CFLAGS) -c ../../lib/clnt_simple.c

client.o:	../../lib/client.c ../../include/sunrpcweb.h
client.o:	../../include/webster.h
	$(CC) $(CFLAGS) -c ../../lib/client.c

common.o:	../../lib/common.c ../../include/sunrpcweb.h
common.o:	../../include/webster.h
	$(CC) $(CFLAGS) -c ../../lib/common.c

install: webster
	install -c -s webster $(DESTDIR)${BINDIR}
	install -c webster.1 \
		${DESTDIR}${MANDIR}/man${MANSECT}/webster.${MANSECT}

clean:
	rm -f webster core *.o
