#
# Copyright, OpenVision Technologies, Inc., 1996, All Rights Reserved
#
# WARNING:  Retrieving the OpenVision Kerberos Administration system
# source code, as described below, indicates your acceptance of the
# following terms.  If you do not agree to the following terms, do not
# retrieve the OpenVision Kerberos administration system.
#
# You may freely use and distribute the Source Code and Object Code
# compiled from it, but this Source Code is provided to you "AS IS"
# EXCLUSIVE OF ANY WARRANTY, INCLUDING, WITHOUT LIMITATION, ANY
# WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, OR
# ANY OTHER WARRANTY, WHETHER EXPRESS OR IMPLIED.  IN NO EVENT WILL
# OPENVISION HAVE ANY LIABILITY FOR ANY LOST PROFITS, LOSS OF DATA OR
# COSTS OF PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, OR FOR ANY
# SPECIAL, INDIRECT, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THIS
# AGREEMENT, INCLUDING, WITHOUT LIMITATION, THOSE RESULTING FROM THE
# USE OF THE SOURCE CODE, OR THE FAILURE OF THE SOURCE CODE TO PERFORM,
# OR FOR ANY OTHER REASON.
#
# OpenVision retains all rights, title, and interest in the donated
# Source Code.  With respect to OpenVision's copyrights in the donated
# Source Code, OpenVision also retains rights to derivative works of
# the Source Code whether created by OpenVision or a third party.
#
# OpenVision Technologies, Inc. has donated this Kerberos
# Administration system to MIT for inclusion in the standard Kerberos 5
# distribution. This donation underscores our commitment to continuing
# Kerberos technology development and our gratitude for the valuable
# work which has been performed by MIT and the Kerberos community.
#
# $Id: Makefile,v 1.9 1996/07/22 20:41:38 marc Exp $
# $Source: /afs/athena.mit.edu/astaff/project/krbdev/.cvsroot/src/lib/rpc/unit-test/Makefile,v $
# 
# $Log: Makefile,v $
# Revision 1.9  1996/07/22 20:41:38  marc
# this commit includes all the changes on the OV_9510_INTEGRATION and
# OV_MERGE branches.  This includes, but is not limited to, the new openvision
# admin system, and major changes to gssapi to add functionality, and bring
# the implementation in line with rfc1964.  before committing, the
# code was built and tested for netbsd and solaris.
#
# Revision 1.8.4.1  1996/07/18 04:20:01  marc
# merged in changes from OV_9510_BP to OV_9510_FINAL1
#
# Revision 1.8.2.1  1996/06/20  23:41:48  marc
# File added to the repository on a branch
#
# Revision 1.8  1995/12/07  17:36:54  jik
# Use "rpc_test" instead of "rpc-test", to avoid problems with rpcgen on
# some systems.  See PR 3553.
#
# Revision 1.7  1995/10/02 08:02:49  jik
# Delete rpc-tset_clnt.c, rpc-test_svc.c and rpc-test.h before creating
# them, because rpcgen on some platforms won't output to a file that
# already exists.
#
# Revision 1.6  1994/10/24 19:35:57  bjaspan
# [secure-build/2649: cannot use -L when compiling]
#
# Sandbox:
#
#  [secure-build/2649] don't use -L
#
# Revision 1.7  1994/10/11  20:06:14  bjaspan
# [secure-build/2649] don't use -L
#
# Revision 1.6  1994/09/30  22:25:29  jik
# Don't need to set MDFLAGS to -a anymore, because it's done
# automatically by the rules now.
#
# Revision 1.5  1994/03/22  19:55:34  shanzer
# change NETLIBS to NETLIB
#
# Revision 1.4  1994/03/18  17:47:00  shanzer
# added NETLIBS and BSDLIB
#
# Revision 1.3  1993/12/13  02:00:39  bjaspan
# recurse to testsuite subdir.
#
# Revision 1.2  1993/12/08  21:45:47  bjaspan
# misc
#
# Revision 1.1  1993/11/03  23:53:58  bjaspan
# Initial revision
#

TOP = ../..
include $(TOP)/config.mk/template

SUBDIRS	= testsuite

expand SubdirTarget

SRCS	= client.c server.c

CFLAGS	:= -I../.. -I. $(CFLAGS)

#LIBS	= ../librpclib.a $(LIBGSSAPI_TRUST) $(LIBDB) $(LIBCOM_ERR) $(LIBDYN)
LIBS	= ../librpclib.a $(LIBGSSAPI_KRB5) $(LIBDB) $(LIBKRB5) \
	$(LIBCRYPTO) $(LIBISODE) $(LIBCOM_ERR) $(LIBDYN) $(BSDLIB) $(NETLIB) 
DEPS 	= ../librpclib.a rpc_test.h
DEPENDS	= rpc_test.h

PROG	= client
SRCS	= client.c
OBJS	= client.o rpc_test_clnt.o

expand Program
expand Depend

PROG	= server
SRCS	= server.c
OBJS	= server.o rpc_test_svc.o

expand Program
expand Depend

rpc_test.h rpc_test_clnt.c rpc_test_svc.c: rpc_test.x
	-rm -f rpc_test_clnt.c rpc_test_svc.c rpc_test.h
	rpcgen -l rpc_test.x -o rpc_test_clnt.c
	rpcgen -m rpc_test.x -o rpc_test_svc.c
	rpcgen -h rpc_test.x -o rpc_test.h

clean::
	rm -f rpc_test.h rpc_test_clnt.c rpc_test_svc.c
