# 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


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
	${CC} ${CFLAGS} -o sample_client sample_client.o sample.cs.o ${LIBS}

sample_server: sample_server.o sample.ss.o ${LIBS}
	${CC} ${CFLAGS} -o sample_server 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
