# 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=rxstat
!INCLUDE ..\config\NTMakefile.$(SYS_NAME)
!IF (EXIST(..\config\NTMakefile.version))
!INCLUDE ..\config\NTMakefile.version
!ENDIF

INCFILEDIR = $(DESTDIR)\include

INCFILES =\
	$(INCFILEDIR)\rx\rxstat.h

# Library component lists.

LIBOBJS = \
	$(OUT)\rxstat.cs.obj \
	$(OUT)\rxstat.ss.obj \
	$(OUT)\rxstat.xdr.obj \
	$(OUT)\rxstat.obj

$(LIBOBJS): rxstat.cs.c rxstat.ss.c rxstat.xdr.c rxstat.h

LIBFILE = $(DESTDIR)\lib\afsrxstat.lib

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

rxstat.cs.c: rxstat.xg rxstat.h
	$(RXGEN) -x -C -o $@ rxstat.xg

rxstat.ss.c: rxstat.xg rxstat.h
	$(RXGEN) -x -S -o $@ rxstat.xg

rxstat.xdr.c: rxstat.xg rxstat.h
	$(RXGEN) -x -c -o $@ rxstat.xg

rxstat.h: rxstat.xg
	$(RXGEN) -x -h -o $@ rxstat.xg

copyheader: rxstat.h
   $(COPY) rxstat.h $(INCFILEDIR)\rx\rxstat.h

install: copyheader $(LIBFILE) $(INCFILES)

install9x: install

clean::
	$(DEL) rxstat.cs.c rxstat.h rxstat.ss.c rxstat.xdr.c
	$(DEL) $(LIBFILE)


mkdir:
