Import Upstream version 1.8.5
[hcoop/debian/openafs.git] / src / auth / NTMakefile
CommitLineData
805e021f
CE
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
8RELDIR=auth
9AFSDEV_AUXCDEFINES = $(AFSDEV_AUXCDEFINES) -I$(DESTDIR)\include\afs
10!INCLUDE ..\config\NTMakefile.$(SYS_NAME)
11!INCLUDE ..\config\NTMakefile.version
12
13INCFILEDIR = $(DESTDIR)\include\afs # header file install directory
14
15INCFILES =\
16 $(INCFILEDIR)\auth.h \
17 $(INCFILEDIR)\cellconfig.h \
18 $(INCFILEDIR)\keys.h \
19 $(INCFILEDIR)\token.h
20
21############################################################################
22# rxgen on token.xg
23
24token.xdr.c: token.xg token.h
25 $(RXGEN) -x -c -o $@ token.xg
26
27token.h: token.xg
28 $(RXGEN) -x -h -u -o $@ token.xg
29
30
31############################################################################
32# afsauth.lib
33
34AFSAUTH_LIBFILE = $(DESTDIR)\lib\afs\afsauth.lib
35
36AFSD = ..\WINNT\afsd
37
38AFSAUTH_LIBOBJS =\
39 $(OUT)\cellconfig.obj \
40 $(OUT)\keys.obj \
41 $(OUT)\userok.obj \
42 $(OUT)\writeconfig.obj \
43 $(OUT)\authcon.obj \
44 $(OUT)\realms.obj \
45 $(OUT)\acfg_errors.obj \
46 $(OUT)\ktc_errors.obj \
47 $(OUT)\ktc_nt.obj \
48 $(OUT)\token.obj \
49 $(OUT)\token.xdr.obj \
50 $(OUT)\netrestrict.obj \
51 $(OUT)\AFS_component_version_number.obj
52
53AFSDOBJS =\
54 $(OUT)\$(AFSD)\afsrpc_$(CPU)_c.obj
55
56$(AFSDOBJS): $(AFSD)\$$(@B).c
57 $(C2OBJ) -I$*(*D) $**
58
59$(AFSAUTH_LIBFILE): $(AFSAUTH_LIBOBJS) $(AFSDOBJS)
60 $(LIBARCH) rpcrt4.lib
61
62############################################################################
63# afsauth.krb.lib
64
65AFSAUTH_KRB_LIBFILE = $(DESTDIR)\lib\afs\afsauth.krb.lib
66
67AFSAUTH_KRB_LIBOBJS =\
68 $(OUT)\cellconfig.obj \
69 $(OUT)\userok.obj \
70 $(OUT)\writeconfig.obj \
71 $(OUT)\authcon.obj \
72 $(OUT)\realms.obj \
73 $(OUT)\acfg_errors.obj \
74 $(OUT)\ktc_errors.obj \
75 $(OUT)\ktc_nt.obj \
76 $(OUT)\AFS_component_version_number.obj
77
78$(AFSAUTH_KRB_LIBFILE): $(AFSAUTH_KRB_LIBOBJS)
79 $(LIBARCH) rpcrt4.lib
80
81############################################################################
82# build setkey
83
84SETKEY_EXEFILE = $(OUT)\setkey.exe
85
86SETKEY_EXEOBJS =\
87 $(OUT)\setkey.obj
88
89EXELIBDIR = $(DESTDIR)\lib
90
91EXELIBS =\
92 $(EXELIBDIR)\afs\afsauth.lib \
93 $(EXELIBDIR)\afsrxkad.lib \
94 $(EXELIBDIR)\afsrx.lib \
95 $(EXELIBDIR)\afslwp.lib \
96 $(EXELIBDIR)\afs\afsutil.lib \
97 $(EXELIBDIR)\afs\afseventlog.lib \
98 $(EXELIBDIR)\afs\afsreg.lib \
99 $(EXELIBDIR)\libafsconf.lib \
100 $(EXELIBDIR)\opr.lib \
101 $(EXELIBDIR)\afshcrypto.lib \
102 $(EXELIBDIR)\afsroken.lib \
103 $(EXELIBDIR)\afsrfc3961.lib
104
105$(SETKEY_EXEFILE): $(SETKEY_EXEOBJS) $(EXELIBS)
106 $(EXECONLINK) dnsapi.lib shell32.lib
107 $(_VC_MANIFEST_EMBED_EXE)
108 $(EXEPREP)
109 $(CODESIGN_USERLAND)
110 $(SYMSTORE_IMPORT)
111
112# build copyauth
113COPYAUTH_EXEFILE = $(DESTDIR)\etc\copyauth.exe
114
115COPYAUTH_EXEOBJS =\
116 $(OUT)\copyauth.obj
117
118$(COPYAUTH_EXEFILE): $(COPYAUTH_EXEOBJS) $(EXELIBS)
119 $(EXECONLINK)
120 $(_VC_MANIFEST_EMBED_EXE)
121 $(EXEPREP)
122 $(CODESIGN_USERLAND)
123 $(SYMSTORE_IMPORT)
124
125$(INCFILES):$$(@F)
126 $(COPY) $** $(INCFILEDIR)\.
127
128acfg_errors.c cellconfig.h : acfg_errors.et cellconfig.p.h
129 $(DEL) cellconfig.h acfg_errors.c
130 $(COMPILE_ET) acfg_errors.et -h cellconfig
131
132ktc_errors.c auth.h: ktc_errors.et auth.p.h
133 $(DEL) auth.h ktc_errors.c
134 $(COMPILE_ET) ktc_errors.et -h auth
135
136install_headers: $(INCFILES)
137
138install: $(AFSAUTH_LIBFILE) $(AFSAUTH_KRB_LIBFILE) $(OUT)\setkey.exe # $(COPYAUTH_EXEFILE)
139
140clean::
141 $(DEL) acfg_errors.c ktc_errors.c
142 $(DEL) $(INCFILES) $(AFSAUTH_LIBFILE)
143 $(DEL) auth.h cellconfig.h
144 $(DEL) token.h token.xdr.c
145
146setkey: $(SETKEY_EXEFILE)
147
148mkdir:
149