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