# 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\test
!INCLUDE ..\..\config\NTMakefile.$(SYS_NAME)
!INCLUDE ..\..\config\NTMakefile.version

############################################################################
# Build stress.exe

EXEFILE = $(OUT)\stress.exe

EXEOBJS =\
	$(OUT)\stress.xdr.obj \
	$(OUT)\stress_errs.obj \
	$(OUT)\stress_c.obj \
	$(OUT)\stress_s.obj \
	$(OUT)\stress.cs.obj \
	$(OUT)\stress.ss.obj \
	$(OUT)\stress.obj

EXELIBS =\
	$(DESTDIR)\lib\afsrxkad.lib \
	$(DESTDIR)\lib\afsrx.lib \
	$(DESTDIR)\lib\afshcrypto.lib \
	$(DESTDIR)\lib\afsdes.lib \
	$(DESTDIR)\lib\afslwp.lib \
	$(DESTDIR)\lib\afs\afscmd.lib \
	$(DESTDIR)\lib\afs\afscom_err.lib \
	$(DESTDIR)\lib\afs\afsutil.lib \
	$(DESTDIR)\lib\afs\afsreg.lib

$(EXEFILE): $(EXEOBJS)
	$(EXECONLINK) $(EXELIBS)
        $(_VC_MANIFEST_EMBED_EXE)
	$(EXEPREP)
        $(CODESIGN_USERLAND)
        $(SYMSTORE_IMPORT)


############################################################################
# rxgen on stress.rg

stress.ss.c stress.cs.c stress.xdr.c stress.h: stress.rg
	$(RXGEN) stress.rg

############################################################################
# compile_et on stress_ers.et

stress_errs.c stress_errs.h: stress_errs.et
	$(DEL)  stress_errs.h stress_errs.c
	$(COMPILE_ET) stress_errs -h stress_errs

test tests: $(EXEFILE)

############################################################################
# clean up

clean::
	 $(DEL) stress.cs.c stress.ss.c stress.xdr.c stress.h \
		stress_errs.c stress_errs.h stress.EXE th_*

mkdir:

