/*
Copyright (c) 1991-1996 Xerox Corporation.  All Rights Reserved.
Unlimited use, reproduction, and distribution of this software is
permitted.  Any copy of this software must include both the above
copyright notice of Xerox Corporation and this paragraph.  Any
distribution of this software must comply with all applicable United
States export control laws.  This software is made available AS IS,
and XEROX CORPORATION DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED,
INCLUDING WITHOUT LIMITATION THE IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS FOR A PARTICULAR PURPOSE, AND NOTWITHSTANDING ANY OTHER
PROVISION CONTAINED HEREIN, ANY LIABILITY FOR DAMAGES RESULTING FROM
THE SOFTWARE OR ITS USE IS EXPRESSLY DISCLAIMED, WHETHER ARISING IN
CONTRACT, TORT (INCLUDING NEGLIGENCE) OR STRICT LIABILITY, EVEN IF
XEROX CORPORATION IS ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
*/
/* $Id: Imakefile,v 1.6 1997/11/06 03:19:44 janssen Exp $ */

#include "ilugss_conf.h"

ILUCINCLUDES=
LOCALINCLUDES=

NormalObjectRule()
DependTarget()
 
GSSOBJS = gss_impl.o gss_util.o gss_oidtbl.o gss_asn1.o gss_debug.o nil_scheme.o gss_x500_ns.o rfc822_ns.o gss_ext.o anon_ns.o

LibraryTarget(libgss.a, $(GSSOBJS))
InstallLibrary(libgss.a, $(DESTDIR)/lib)
InstallRO(ilugss_conf.h gssapi.h ilugssmech_nil.h ilugssns_rfc822.h ilugssns_anonymous.h, $(DESTDIR)/include)

#define TestProgram(name, objs, deplibs, nondeplibs)			@@\
TestProgramTarget(name, objs, deplibs, nondeplibs)			@@\
test::						@@\
	if ./name >/dev/null ; then echo "passed" name "test" ; else echo "failed" name "test" ; exit 1; fi ; exit 0

TestProgram(nstest, nstest.o, libgss.a,)

mechtest: test.data

test.data:
	cp nstest.o test.data

CleanTarget(test.data)

TestProgram(mechtest, mechtest.o, libgss.a,)

ProgramTarget(enc_oids, encode_oids.o, libgss.a,)

TestProgramTarget(nilsrvr, nilsrvr.o, libgss.a,)
TestProgramTarget(nilclnt, nilclnt.o, libgss.a,)
