patch-from-shadow-to-jaltman-bkbox-20031120
[openafs.git] / src / shlibafsauthent / 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 # This is a pthread safe library containing ubikclient, auth, kauth.
9
10 AFSDEV_AUXCDEFINES = -DAFS_PTHREAD_ENV
11
12 RELDIR=shlibafsauthent
13 !include ..\config\NTMakefile.$(SYS_NAME)
14 !include ..\config\NTMakefile.version
15
16 AUDIT = ..\audit
17 AUTH = ..\auth
18 KAUTH = ..\kauth
19 UBIK = ..\ubik
20 UTIL = ..\util
21 RXKAD = ..\rxkad
22 PTSERVER = ..\ptserver
23 SYS = ..\sys
24 WINNTAFSD = ..\WINNT\afsd
25
26 LIBFILE = $(DESTDIR)\lib\afsauthent.dll
27
28 AUDITOBJS = $(OUT)\audit.obj
29
30 AUTHOBJS = \
31         $(OUT)\cellconfig.obj \
32         $(OUT)\userok.obj \
33         $(OUT)\writeconfig.obj \
34         $(OUT)\authcon.obj \
35         $(OUT)\ktc_errors.obj \
36         $(OUT)\ktc_nt.obj \
37         $(OUT)\acfg_errors.obj
38
39 KAUTHOBJS = \
40         $(OUT)\kauth.xdr.obj \
41         $(OUT)\kauth.cs.obj \
42         $(OUT)\kaaux.obj \
43         $(OUT)\client.obj \
44         $(OUT)\authclient.obj \
45         $(OUT)\token.obj \
46         $(OUT)\kautils.obj \
47         $(OUT)\kalocalcell.obj \
48         $(OUT)\kaerrors.obj \
49         $(OUT)\user_nt.obj
50
51 UBIKOBJS = \
52         $(OUT)\ubikclient.obj \
53         $(OUT)\uerrors.obj \
54         $(OUT)\ubik_int.cs.obj \
55         $(OUT)\ubik_int.xdr.obj
56
57 UTILOBJS = \
58         $(OUT)\pthread_glock.obj \
59         $(OUT)\get_krbrlm.obj \
60         $(OUT)\casestrcpy.obj \
61         $(OUT)\fileutil.obj \
62         $(OUT)\dirpath.obj \
63         $(OUT)\readdir_nt.obj
64
65 RXKADOBJS = \
66         $(OUT)\rxkad_errs.obj
67
68 PTSERVEROBJS = \
69         $(OUT)\ptclient.obj \
70         $(OUT)\ptint.cs.obj \
71         $(OUT)\ptint.xdr.obj \
72         $(OUT)\ptuser.obj \
73         $(OUT)\display.obj \
74         $(OUT)\pterror.obj
75
76 SYSOBJS = \
77         $(OUT)\pioctl_nt.obj
78
79 WINNTAFSDOBJS =\
80         $(OUT)\cm_config.obj \
81         $(OUT)\afsrpc_c.obj
82
83 DLLOBJS =\
84         $(AUTHOBJS) \
85         $(KAUTHOBJS) \
86         $(UBIKOBJS) \
87         $(UTILOBJS) \
88         $(RXKADOBJS) \
89         $(PTSERVEROBJS) \
90         $(SYSOBJS) \
91         $(WINNTAFSDOBJS) \
92         $(AUDITOBJS) \
93         $(DESTDIR)\lib\cm_dns.obj \
94         afsauthent.res
95
96 audit.obj: $(AUDIT)\audit.c
97         $(C2OBJ) $(AUDIT)\audit.c
98
99 cellconfig.obj: $(AUTH)\cellconfig.c
100         $(C2OBJ) $(AUTH)\cellconfig.c
101
102 userok.obj: $(AUTH)\userok.c
103         $(C2OBJ) $(AUTH)\userok.c
104
105 writeconfig.obj: $(AUTH)\writeconfig.c
106         $(C2OBJ) $(AUTH)\writeconfig.c
107
108 authcon.obj: $(AUTH)\authcon.c
109         $(C2OBJ) $(AUTH)\authcon.c
110
111 ktc_errors.obj: $(AUTH)\ktc_errors.c
112         $(C2OBJ) $(AUTH)\ktc_errors.c
113
114 acfg_errors.obj: $(AUTH)\acfg_errors.c
115         $(C2OBJ) $(AUTH)\acfg_errors.c
116
117 kauth.xdr.obj: $(KAUTH)\kauth.xdr.c
118         $(C2OBJ) $(KAUTH)\kauth.xdr.c
119
120 kauth.cs.obj: $(KAUTH)\kauth.cs.c
121         $(C2OBJ) $(KAUTH)\kauth.cs.c
122
123 kaaux.obj: $(KAUTH)\kaaux.c
124         $(C2OBJ) $(KAUTH)\kaaux.c
125
126 client.obj: $(KAUTH)\client.c
127         $(C2OBJ) $(KAUTH)\client.c
128
129 authclient.obj: $(KAUTH)\authclient.c
130         $(C2OBJ) $(KAUTH)\authclient.c
131
132 token.obj: $(KAUTH)\token.c
133         $(C2OBJ) $(KAUTH)\token.c
134
135 kautils.obj: $(KAUTH)\kautils.c
136         $(C2OBJ) $(KAUTH)\kautils.c
137
138 kalocalcell.obj: $(KAUTH)\kalocalcell.c
139         $(C2OBJ) $(KAUTH)\kalocalcell.c
140
141 kaerrors.obj: $(KAUTH)\kaerrors.c
142         $(C2OBJ) $(KAUTH)\kaerrors.c
143
144 ktc_nt.obj: $(AUTH)\ktc_nt.c
145         $(C2OBJ) $(AUTH)\ktc_nt.c
146
147 user_nt.obj: $(KAUTH)\user_nt.c
148         $(C2OBJ) $(KAUTH)\user_nt.c
149
150 ubikclient.obj: $(UBIK)\ubikclient.c
151         $(C2OBJ) $(UBIK)\ubikclient.c
152
153 uerrors.obj: $(UBIK)\uerrors.c
154         $(C2OBJ) $(UBIK)\uerrors.c
155
156 ubik_int.cs.obj: $(UBIK)\ubik_int.cs.c
157         $(C2OBJ) $(UBIK)\ubik_int.cs.c
158
159 ubik_int.xdr.obj: $(UBIK)\ubik_int.xdr.c
160         $(C2OBJ) $(UBIK)\ubik_int.xdr.c
161
162 get_krbrlm.obj: $(UTIL)\get_krbrlm.c
163         $(C2OBJ) $(UTIL)\get_krbrlm.c
164
165 dirpath.obj: $(UTIL)\dirpath.c
166         $(C2OBJ) $(UTIL)\dirpath.c
167
168 fileutil.obj: $(UTIL)\fileutil.c
169         $(C2OBJ) $(UTIL)\fileutil.c
170
171 readdir_nt.obj: $(UTIL)\readdir_nt.c
172         $(C2OBJ) $(UTIL)\readdir_nt.c
173
174 casestrcpy.obj: $(UTIL)\casestrcpy.c
175         $(C2OBJ) $(UTIL)\casestrcpy.c
176
177 pthread_glock.obj: $(UTIL)\pthread_glock.c
178         $(C2OBJ) $(UTIL)\pthread_glock.c
179
180 rxkad_errs.obj: $(RXKAD)\rxkad_errs.c
181         $(C2OBJ) $(RXKAD)\rxkad_errs.c
182
183 ptclient.obj: $(PTSERVER)\ptclient.c
184         $(C2OBJ) $(PTSERVER)\ptclient.c
185
186 ptuser.obj: $(PTSERVER)\ptuser.c
187         $(C2OBJ) $(PTSERVER)\ptuser.c
188
189 display.obj: $(PTSERVER)\display.c
190         $(C2OBJ) $(PTSERVER)\display.c
191
192 ptint.cs.obj: $(PTSERVER)\ptint.cs.c
193         $(C2OBJ) $(PTSERVER)\ptint.cs.c
194
195 ptint.xdr.obj: $(PTSERVER)\ptint.xdr.c
196         $(C2OBJ) $(PTSERVER)\ptint.xdr.c
197
198 pterror.obj: $(PTSERVER)\pterror.c
199         $(C2OBJ) $(PTSERVER)\pterror.c
200
201 pioctl_nt.obj: $(SYS)\pioctl_nt.c
202         $(C2OBJ) $(SYS)\pioctl_nt.c
203
204 afsrpc_c.obj: $(WINNTAFSD)\afsrpc_c.c
205         $(C2OBJ) $(WINNTAFSD)\afsrpc_c.c
206
207 cm_config.obj: $(WINNTAFSD)\cm_config.c
208         $(C2OBJ) $(WINNTAFSD)\cm_config.c
209
210 DLLLIBS =\
211 !IF (("$(SYS_NAME)"=="i386_win95" ) || ("$(SYS_NAME)"=="I386_WIN95" ))
212         $(DESTDIR)\lib\win95\afspthread.lib \
213 !ELSE
214         $(DESTDIR)\lib\afspthread.lib \
215 !ENDIF
216         $(DESTDIR)\lib\afsrpc.lib \
217         $(DESTDIR)\lib\afsdes.lib \
218         $(DESTDIR)\lib\afs\afsutil.lib \
219         $(DESTDIR)\lib\afs\afsreg.lib \
220         $(DESTDIR)\lib\afs\afseventlog.lib
221
222 $(LIBFILE): $(DLLOBJS) $(DLLLIBS)
223         $(DLLCONLINK) /DEF:afsauthent.def rpcrt4.lib
224         $(DLLPREP)
225
226 # Definitions for generating versioninfo resources
227 afsauthent.res: afsauthent.rc AFS_component_version_number.h
228         $(RC) $*.rc
229
230 install: $(LIBFILE)
231
232 install9x: install
233
234 clean ::
235         $(DEL) $(LIBFILE)