83d971e9a6ee5d762e174a900176d7561c70d2c0
[openafs.git] / src / libafsauthent / Makefile.in
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 srcdir=@srcdir@
11 include @TOP_OBJDIR@/src/config/Makefile.config
12 include @TOP_OBJDIR@/src/config/Makefile.pthread
13
14 INSTALL = @INSTALL@
15 INSTALL_DATA = @INSTALL_DATA@
16 INSTALL_PROGRAM = @INSTALL_PROGRAM@
17 INSTALL_SCRIPT = @INSTALL_SCRIPT@
18
19 AUDIT= $(srcdir)/../audit
20 AUTH = $(srcdir)/../auth
21 KAUTH =$(srcdir)/../kauth
22 UBIK = $(srcdir)/../ubik
23 UTIL = $(srcdir)/../util
24 RXKAD = $(srcdir)/../rxkad
25 PTSERVER = $(srcdir)/../ptserver
26 SYS = $(srcdir)/../sys
27
28 AUDITOBJS = audit.o audit-file.o audit-sysvmq.o
29
30 AUTHOBJS = \
31         cellconfig.o \
32         ktc.o \
33         keys.o \
34         userok.o \
35         writeconfig.o \
36         authcon.o \
37         ktc_errors.o \
38         acfg_errors.o \
39         token.o \
40         token.xdr.o
41
42 KAUTHOBJS = \
43         kauth.xdr.o \
44         kauth.cs.o \
45         kaaux.o \
46         client.o \
47         authclient.o \
48         katoken.o \
49         kautils.o \
50         kalocalcell.o \
51         kaerrors.o \
52         user.o
53
54 UBIKOBJS = \
55         uinit.o \
56         ubikclient.o \
57         uerrors.o \
58         ubik_int.cs.o \
59         ubik_int.xdr.o
60
61 UTILOBJS = \
62         pthread_glock.o \
63         get_krbrlm.o \
64         dirpath.o \
65         serverLog.o \
66         fileutil.o
67
68 RXKADOBJS = \
69         rxkad_errs.o
70
71 SYSOBJS = \
72         rmtsysc.o \
73         rmtsys.xdr.o \
74         rmtsys.cs.o \
75         afssyscalls.o \
76         rmtsysnet.o \
77         glue.o \
78         setpag.o \
79         pioctl.o
80
81 PTSERVEROBJS = \
82         ptclient.o \
83         ptint.cs.o \
84         ptint.xdr.o \
85         ptuser.o \
86         display.o \
87         pterror.o
88
89 LIBOBJS = \
90         ${AUDITOBJS} \
91         ${AUTHOBJS} \
92         ${KAUTHOBJS} \
93         ${UBIKOBJS} \
94         ${UTILOBJS} \
95         ${RXKADOBJS} \
96         ${PTSERVEROBJS} \
97         ${SYSOBJS}
98
99 all: ${TOP_LIBDIR}/libafsauthent.a
100
101 ${TOP_LIBDIR}/libafsauthent.a: libafsauthent.a
102         ${INSTALL_DATA} $? $@
103
104 libafsauthent.a: ${LIBOBJS}
105         $(RM) -f $@
106         $(AR) crv $@ ${LIBOBJS}
107         $(RANLIB) $@
108
109 audit.o: ${AUDIT}/audit.c
110         ${AFS_CCRULE} ${AUDIT}/audit.c
111
112 audit-file.o: ${AUDIT}/audit-file.c
113         ${AFS_CCRULE} ${AUDIT}/audit-file.c
114
115 audit-sysvmq.o: ${AUDIT}/audit-sysvmq.c
116         ${AFS_CCRULE} ${AUDIT}/audit-sysvmq.c
117
118 cellconfig.o: ${AUTH}/cellconfig.c
119         ${AFS_CCRULE} -I../auth ${AUTH}/cellconfig.c
120
121 keys.o: ${AUTH}/keys.c
122         ${AFS_CCRULE} -I../auth ${AUTH}/keys.c
123
124 ktc.o: ${AUTH}/ktc.c
125         ${AFS_CCRULE} -I../auth ${AUTH}/ktc.c
126
127 token.o: ${AUTH}/token.c
128         ${AFS_CCRULE} -I../auth ${AUTH}/token.c
129
130 token.xdr.o: ../auth/token.xdr.c
131         ${AFS_CCRULE} -I../auth ../auth/token.xdr.c
132
133 userok.o: ${AUTH}/userok.c
134         ${AFS_CCRULE} -I../auth ${AUTH}/userok.c
135
136 writeconfig.o: ${AUTH}/writeconfig.c
137         ${AFS_CCRULE} -I../auth ${AUTH}/writeconfig.c
138
139 authcon.o: ${AUTH}/authcon.c
140         ${AFS_CCRULE} -I../auth ${AUTH}/authcon.c
141
142 ktc_errors.o: ../auth/ktc_errors.c
143         ${AFS_CCRULE} ../auth/ktc_errors.c
144
145 acfg_errors.o: ../auth/acfg_errors.c
146         ${AFS_CCRULE} ../auth/acfg_errors.c
147
148 kauth.xdr.o: ../kauth/kauth.xdr.c
149         ${AFS_CCRULE} ../kauth/kauth.xdr.c
150
151 kauth.cs.o: ../kauth/kauth.cs.c
152         ${AFS_CCRULE} ../kauth/kauth.cs.c
153
154 kaaux.o: ${KAUTH}/kaaux.c
155         ${AFS_CCRULE} -I../kauth ${KAUTH}/kaaux.c
156
157 client.o: ${KAUTH}/client.c
158         ${AFS_CCRULE} -I../kauth ${KAUTH}/client.c
159
160 authclient.o: ${KAUTH}/authclient.c
161         ${AFS_CCRULE} -I../kauth ${KAUTH}/authclient.c
162
163 katoken.o: ${KAUTH}/katoken.c
164         ${AFS_CCRULE} -I../kauth ${KAUTH}/katoken.c
165
166 kautils.o: ${KAUTH}/kautils.c
167         ${AFS_CCRULE} -I../kauth ${KAUTH}/kautils.c
168
169 kalocalcell.o: ${KAUTH}/kalocalcell.c
170         ${AFS_CCRULE} -I ../kauth ${KAUTH}/kalocalcell.c
171
172 kaerrors.o: ../kauth/kaerrors.c
173         ${AFS_CCRULE} ../kauth/kaerrors.c
174
175 user.o: ${KAUTH}/user.c
176         ${AFS_CCRULE} -I ../kauth ${KAUTH}/user.c
177
178 read_passwd.o: ${KAUTH}/read_passwd.c
179         ${AFS_CCRULE} ${KAUTH}/read_passwd.c
180
181 ubikclient.o: ${UBIK}/ubikclient.c
182         ${AFS_CCRULE} ${UBIK}/ubikclient.c
183
184 uinit.o: ${UBIK}/uinit.c
185         ${AFS_CCRULE} ${UBIK}/uinit.c
186
187 uerrors.o: ../ubik/uerrors.c
188         ${AFS_CCRULE} ../ubik/uerrors.c
189
190 ubik_int.cs.o: ../ubik/ubik_int.cs.c
191         ${AFS_CCRULE} ../ubik/ubik_int.cs.c
192
193 ubik_int.xdr.o: ../ubik/ubik_int.xdr.c
194         ${AFS_CCRULE} ../ubik/ubik_int.xdr.c
195
196
197 get_krbrlm.o: ${UTIL}/get_krbrlm.c
198         ${AFS_CCRULE} ${UTIL}/get_krbrlm.c
199
200 dirpath.o: ${UTIL}/dirpath.c
201         ${AFS_CCRULE} ${UTIL}/dirpath.c
202
203 serverLog.o: ${UTIL}/serverLog.c
204         ${AFS_CCRULE} ${UTIL}/serverLog.c
205
206 fileutil.o: ${UTIL}/fileutil.c
207         ${AFS_CCRULE} ${UTIL}/fileutil.c
208
209 pthread_glock.o: ${UTIL}/pthread_glock.c
210         ${AFS_CCRULE} ${UTIL}/pthread_glock.c
211
212 rxkad_errs.o: ../rxkad/rxkad_errs.c
213         ${AFS_CCRULE} ../rxkad/rxkad_errs.c
214
215 ptclient.o: ${PTSERVER}/ptclient.c
216         ${AFS_CCRULE} -I../ptserver ${PTSERVER}/ptclient.c
217
218 # The special treatment of this file for hp_ux110 is because of a bug
219 # in version A.11.01.00 of the HP C compiler.  This bug appears to be
220 # fixed in version A.11.01.02 of the HP C compiler, however this version
221 # of the compiler is not installed on all of our build machines.
222 # The symptom of the problem is an error when linking the pthread fileserver:
223 # /usr/ccs/bin/ld: TP override with DATA_ONE_SYM fixup for non thread local
224 # storage symbol pr_Initialize in file DEST/lib/libafsauthent.a(ptuser.o)
225 ptuser.o: ${PTSERVER}/ptuser.c
226         set -x; \
227         case ${SYS_NAME} in \
228         hp_ux11*) \
229                 set X `echo ${AFS_CCRULE} -I../ptserver ${PTSERVER}/ptuser.c | sed s/-g//`; shift; \
230                 "$$@" \
231                 ;; \
232         *) \
233                 ${AFS_CCRULE} -I../ptserver ${PTSERVER}/ptuser.c \
234                 ;; \
235         esac
236
237 display.o: ${PTSERVER}/display.c
238         ${AFS_CCRULE} -I../ptserver ${PTSERVER}/display.c
239
240 ptint.cs.o: ../ptserver/ptint.cs.c
241         ${AFS_CCRULE} ../ptserver/ptint.cs.c
242
243 ptint.xdr.o: ../ptserver/ptint.xdr.c
244         ${AFS_CCRULE} ../ptserver/ptint.xdr.c
245
246 pterror.o: ../ptserver/pterror.c
247         ${AFS_CCRULE} ../ptserver/pterror.c
248
249 rmtsysc.o: ${SYS}/rmtsysc.c
250         ${AFS_CCRULE} -I../sys ${SYS}/rmtsysc.c
251
252 rmtsys.xdr.o: ../sys/rmtsys.xdr.c
253         ${AFS_CCRULE} ../sys/rmtsys.xdr.c
254
255 rmtsys.cs.o: ../sys/rmtsys.cs.c
256         ${AFS_CCRULE} ../sys/rmtsys.cs.c
257
258 afssyscalls.o: ${SYS}/afssyscalls.c
259         ${AFS_CCRULE} ${SYS}/afssyscalls.c
260
261 rmtsysnet.o: ${SYS}/rmtsysnet.c
262         ${AFS_CCRULE} -I../sys ${SYS}/rmtsysnet.c
263
264 glue.o: ${SYS}/glue.c
265         ${AFS_CCRULE} ${SYS}/glue.c
266
267 setpag.o: ${SYS}/setpag.c
268         ${AFS_CCRULE} ${SYS}/setpag.c
269
270 pioctl.o: ${SYS}/pioctl.c
271         ${AFS_CCRULE} ${SYS}/pioctl.c
272
273 clean:
274         $(RM) -f *.o *.a libafsauthent*
275
276 install: libafsauthent.a
277         ${INSTALL} -d ${DESTDIR}${libdir}
278         ${INSTALL_DATA} libafsauthent.a ${DESTDIR}${libdir}/libafsauthent.a
279
280 dest: libafsauthent.a
281         ${INSTALL} -d ${DEST}/lib
282         ${INSTALL_DATA} libafsauthent.a ${DEST}/lib/libafsauthent.a