# Copyright 1994 by OpenVision Technologies, Inc.
# 
# Permission to use, copy, modify, distribute, and sell this software
# and its documentation for any purpose is hereby granted without fee,
# provided that the above copyright notice appears in all copies and
# that both that copyright notice and this permission notice appear in
# supporting documentation, and that the name of OpenVision not be used
# in advertising or publicity pertaining to distribution of the software
# without specific, written prior permission. OpenVision makes no
# representations about the suitability of this software for any
# purpose.  It is provided "as is" without express or implied warranty.
# 
# OPENVISION DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
# INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
# EVENT SHALL OPENVISION BE LIABLE FOR ANY SPECIAL, INDIRECT OR
# CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
# USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
# OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
# PERFORMANCE OF THIS SOFTWARE.
# 
# $Id: Makefile.in,v 1.5 1995/07/07 20:58:35 pjpark Exp $

CFLAGS = $(CCOPTS) -DUSE_MASTER  $(DEFS) $(LOCALINCLUDE)

all::


LOCAL_LIBRARIES = libkrb524.a
DEPLOCAL_LIBRARIES = libkrb524.a

LOCALINCLUDE= -I$(SRCTOP)/include/kerberosIV -I$(BUILDTOP)/include/kerberosIV \
	-I. -I$(srcdir)

# Library sources
SRCS	= conv_creds.c conv_princ.c conv_tkt.c cnv_tkt_skey.c \
	encode.c misc.c globals.c sendmsg.c krb524_err.et
OBJS	= conv_creds.o conv_princ.o conv_tkt.o cnv_tkt_skey.o \
	encode.o misc.o globals.o sendmsg.o krb524_err.o

GENS	= krb524_err.c krb524_err.h

all:: $(GENS) libkrb524.a krb524d test k524init

libkrb524.a: $(OBJS)
	$(ARADD) $@ $(OBJS)
	$(RANLIB) $@

test: libkrb524.a test.o $(DEPLIBS)
	$(LD) -o test $(LDFLAGS) $(LDARGS) test.o $(LIBS)

krb524d: krb524d.o $(DEPLIBS)
	$(LD) -o krb524d krb524d.o $(LDFLAGS) $(LDARGS) $(LIBS)

k524init: k524init.o $(DEPLIBS)
	$(LD) -o k524init $(LDFLAGS) $(LDARGS) k524init.o $(LIBS)

install::
	$(INSTALL_DATA) libkrb524.a $(DESTDIR)$(KRB5_LIBDIR)/libkrb524.a
	$(RANLIB) $(DESTDIR)$(KRB5_LIBDIR)/libkrb524.a
	$(INSTALL_PROGRAM) krb524d $(DESTDIR)$(SERVER_BINDIR)/krb524d
	$(INSTALL_PROGRAM) k524init $(DESTDIR)$(CLIENT_BINDIR)/krb524init

clean::
	$(RM) libkrb524.a $(OBJS) $(GENS) core *~ *.bak #*
	$(RM) test krb524d k524init test.o krb524d.o k524init.o

