# Copyright 2000, International Business Machines Corporation and others.
# All Rights Reserved.
# 
# This software has been released under the terms of the IBM Public
# License.  For details, see the LICENSE file in the top-level source
# directory or online at http://www.openafs.org/dl/license10.html

srcdir=@srcdir@
include @TOP_OBJDIR@/src/config/Makefile.config
include @TOP_OBJDIR@/src/config/Makefile.lwp



SRCDIR=/usr/andy/
LIBRX=${SRCDIR}/lib/librx.a
DESTDIR=/usr/andy/
INSTALL=${SRCDIR}/bin/install
LIBS=${LIBRX} ${SRCDIR}/lib/liblwp.a
CFLAGS=${DBG} -I.. -I. -I${SRCDIR}/include -DDEBUG ${XCFLAGS} ${ARCHFLAGS}

all: sample_client sample_server

sample_client: sample_client.o ${LIBS} sample.cs.o
	$(AFS_LDRULE) sample_client.o sample.cs.o ${LIBS}

sample_server: sample_server.o sample.ss.o ${LIBS}
	$(AFS_LDRULE) sample_server.o sample.ss.o ${LIBS}

sample_client.o:	sample.h
sample_server.o:	sample.h
sample.cs.c sample.ss.c sample.er.c sample.h: sample.xg
	rxgen sample.xg
