linux-warning-reduction-20090318
[openafs.git] / src / rxkad / 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=rxkad
9 !INCLUDE ..\config\NTMakefile.$(SYS_NAME)
10 !INCLUDE ..\config\NTMakefile.version
11
12 INCFILEDIR = $(DESTDIR)\include\rx  # header file install directory
13
14 INCFILES =\
15         $(INCFILEDIR)\rxkad_prototypes.h \
16         $(INCFILEDIR)\fcrypt.h \
17         $(INCFILEDIR)\asn1_err.h \
18     $(INCFILEDIR)\v5gen.h \
19     $(INCFILEDIR)\hash.h\
20     $(INCFILEDIR)\md4.h \
21     $(INCFILEDIR)\md5.h \
22         $(INCFILEDIR)\rxkad.h
23
24 # build afsrxkad.lib
25 LIBOBJS =\
26         $(OUT)\rxkad_client.obj \
27         $(OUT)\rxkad_server.obj \
28         $(OUT)\rxkad_common.obj \
29         $(OUT)\ticket.obj \
30         $(OUT)\rxkad_errs.obj \
31         $(OUT)\AFS_component_version_number.obj \
32         $(OUT)\bg-fcrypt.obj \
33         $(OUT)\ticket5.obj \
34         $(OUT)\crc.obj \
35     $(OUT)\md4.obj \
36     $(OUT)\md5.obj \
37         $(OUT)\crypt_conn.obj 
38
39 $(LIBOBJS):
40
41 # afsrxkad.lib
42 LIBFILE = $(DESTDIR)\lib\afsrxkad.lib
43
44 $(LIBFILE): $(LIBOBJS)
45         $(LIBARCH)  
46
47 # generate rxkad.h and rxkad_errs.c from rxkad_errs.et
48
49 $(INCFILES):$$(@F)
50          $(COPY)  $** $(INCFILEDIR)\.
51
52 rxkad.h rxkad_errs.c : rxkad_errs.et rxkad.p.h
53         $(DEL) rxkad_errs.c 
54         $(COMPILE_ET) rxkad_errs -h rxkad
55
56 # These sources are kept in a separate directory so that we can use an
57 # ACL to comply with source export restrictions.
58
59 DOMESTIC = crypt_conn.c fcrypt.c fcrypt.h sboxes.h
60
61 $(DOMESTIC):domestic\$$@
62         $(COPY)  $** .
63
64 install: $(DOMESTIC) $(INCFILES) $(LIBFILE)
65
66 install9x: install
67
68 clean::
69         $(DEL) $(RXKAD_INCFILE) rxkad_errs.c $(INCFILES)
70         $(DEL) $(LIBFILE)
71
72 mkdir:
73