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

# install include files 
INCFILEDIR = $(DESTDIR)\include\afs 

INCFILES =\
	$(INCFILEDIR)\cmd.h


# build afscmd.lib
LIBFILE = $(DESTDIR)\lib\afs\afscmd.lib

LIBOBJS =\
	$(OUT)\cmd_errors.obj \
	$(OUT)\cmd.obj \
	$(OUT)\AFS_component_version_number.obj
	
$(LIBOBJS): $$(@B).c
    $(C2OBJ) $**

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

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

cmd_errors.c cmd.h: cmd_errors.et cmd.p.h
	$(DEL) cmd_errors.c cmd.h
	$(COMPILE_ET) cmd_errors.et -h cmd

install: cmd.h $(LIBFILE) $(INCFILES)

install9x: install

clean::
	$(DEL) cmd_errors.c cmd.h $(INCFILES)
	$(DEL) $(LIBFILE)
	$(DEL) *.PDB

test tests:

mkdir:
	
