Import Upstream version 1.8.5
[hcoop/debian/openafs.git] / src / cmd / NTMakefile
1 # Copyright 2000, International Business Machines Corporation and others.
2 # All Rights Reserved.
3 #
4 # This software has been released under the terms of the IBM Public
5 # License. For details, see the LICENSE file in the top-level source
6 # directory or online at http://www.openafs.org/dl/license10.html
7
8 RELDIR=cmd
9 !INCLUDE ..\config\NTMakefile.$(SYS_NAME)
10 !INCLUDE ..\config\NTMakefile.version
11
12 # install include files
13 INCFILEDIR = $(DESTDIR)\include\afs
14
15 INCFILES =\
16 $(INCFILEDIR)\cmd.h
17
18 HEIMDAL = ..\external\heimdal\krb5
19
20
21 # build afscmd.lib
22 LIBFILE = $(DESTDIR)\lib\afs\afscmd.lib
23
24 LIBOBJS =\
25 $(OUT)\cmd_errors.obj \
26 $(OUT)\cmd.obj \
27 $(OUT)\AFS_component_version_number.obj
28
29 HEIMOBJS =\
30 $(OUT)\config_file.obj \
31 $(OUT)\expand_path.obj
32
33 $(LIBOBJS): $$(@B).c
34 $(C2OBJ) $**
35
36 $(OUT)\expand_path.obj: $(HEIMDAL)\$$(@B).c
37 $(C2OBJ) -I$(HEIMDAL) -DEXPAND_PATH_HEADER $**
38
39 $(OUT)\config_file.obj: $(HEIMDAL)\$$(@B).c
40 $(C2OBJ) -I$(HEIMDAL) -DKRB5_USE_PATH_TOKENS $**
41
42 $(LIBFILE): $(LIBOBJS) $(HEIMOBJS)
43 $(LIBARCH)
44
45 $(INCFILES):$$(@F)
46 $(COPY) $** $(INCFILEDIR)\.
47
48 cmd_errors.c cmd.h: cmd_errors.et cmd.p.h
49 $(DEL) cmd_errors.c cmd.h
50 $(COMPILE_ET) cmd_errors.et -h cmd
51
52 install: cmd.h $(LIBFILE) $(INCFILES)
53
54 clean::
55 $(DEL) cmd_errors.c cmd.h $(INCFILES)
56 $(DEL) $(LIBFILE)
57 $(DEL) *.PDB
58
59 test tests:
60
61 mkdir:
62