thisconfigdir=.
myfulldir=krb524
mydir=.
BUILDTOP=$(REL)$(U)
# 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.
# 

LIB=krb524
LIBMAJOR=1
LIBMINOR=0
RELDIR=../krb524
STOBJLISTS=OBJS.ST

DEFINES = -DUSE_MASTER
PROG_LIBPATH=-L$(TOPLIBD) $(KRB4_LIBPATH)
PROG_RPATH=$(KRB5_LIBDIR)
KRB524_DEPLIB	= libkrb524.a
KRB524_LIB	= libkrb524.a

LOCALINCLUDES= $(KRB4_INCLUDES) -I. -I$(srcdir)

# Library sources
SRCS	= conv_creds.c conv_princ.c cnv_tkt_skey.c \
	encode.c misc.c globals.c sendmsg.c krb524_err.et
STLIBOBJS = conv_creds.o conv_princ.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)
all:: all-libs

all:: krb524d krb524test k524init

krb524test: libkrb524.a test.o $(KRB524_DEPLIB) $(KRB4COMPAT_DEPLIBS)
	$(CC_LINK) -o krb524test test.o $(KRB524_LIB) $(KRB4COMPAT_LIBS)

krb524d: krb524d.o $(KADMSRV_DEPLIBS) $(KRB524_DEPLIB) $(KRB4COMPAT_DEPLIBS)
	$(CC_LINK) -o krb524d krb524d.o $(KADMSRV_LIBS) $(KRB524_LIB) $(KRB4COMPAT_LIBS)

k524init: k524init.o  $(KRB524_DEPLIB) $(KRB4COMPAT_DEPLIBS)
	$(CC_LINK) -o k524init k524init.o $(KRB524_LIB) $(KRB4COMPAT_LIBS)

install:: install-libs
	$(INSTALL_PROGRAM) krb524d $(DESTDIR)$(SERVER_BINDIR)/krb524d
	$(INSTALL_PROGRAM) k524init $(DESTDIR)$(CLIENT_BINDIR)/krb524init

clean:: clean-libs clean-libobjs
	$(RM) $(OBJS) $(GENS) core *~ *.bak #*
	$(RM) krb524test krb524d k524init test.o krb524d.o k524init.o
