# 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

RELDIR=rxkad
!INCLUDE ..\config\NTMakefile.$(SYS_NAME)
!INCLUDE ..\config\NTMakefile.version

INCFILEDIR = $(DESTDIR)\include\rx  # header file install directory

INCFILES =\
	$(INCFILEDIR)\rxkad_prototypes.h \
	$(INCFILEDIR)\fcrypt.h \
	$(INCFILEDIR)\asn1_err.h \
	$(INCFILEDIR)\rxkad.h

# build afsrxkad.lib
LIBOBJS =\
	$(OUT)\rxkad_client.obj \
	$(OUT)\rxkad_server.obj \
	$(OUT)\rxkad_common.obj \
	$(OUT)\ticket.obj \
	$(OUT)\rxkad_errs.obj \
	$(OUT)\AFS_component_version_number.obj \
	$(OUT)\fcrypt.obj \
	$(OUT)\ticket5.obj \
	$(OUT)\crc.obj \
	$(OUT)\crypt_conn.obj 

$(LIBOBJS):

# afsrxkad.lib
LIBFILE = $(DESTDIR)\lib\afsrxkad.lib

$(LIBFILE): $(LIBOBJS)
	$(LIBARCH)  

# generate rxkad.h and rxkad_errs.c from rxkad_errs.et

$(INCFILES):$$(@F)
	 $(COPY)  $** $(INCFILEDIR)\.

rxkad.h rxkad_errs.c : rxkad_errs.et rxkad.p.h
	$(DEL) rxkad_errs.c 
	$(COMPILE_ET) rxkad_errs -h rxkad

# These sources are kept in a separate directory so that we can use an
# ACL to comply with source export restrictions.

DOMESTIC = crypt_conn.c fcrypt.c fcrypt.h sboxes.h

$(DOMESTIC):domestic\$$@
	$(COPY)  $** .

install: $(DOMESTIC) $(INCFILES) $(LIBFILE)

install9x: install

clean::
	$(DEL) $(RXKAD_INCFILE) rxkad_errs.c $(INCFILES)
	$(DEL) $(LIBFILE)

mkdir:
	
