revert-linux-write-dirty-pages-once-20050802
[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         fileutil.o
62
63 RXKADOBJS = \
64         rxkad_errs.o
65
66 SYSOBJS = \
67         rmtsysc.o \
68         rmtsys.xdr.o \
69         rmtsys.cs.o \
70         afssyscalls.o \
71         rmtsysnet.o
72
73 PTSERVEROBJS = \
74         ptclient.o \
75         ptint.cs.o \
76         ptint.xdr.o \
77         ptuser.o \
78         display.o \
79         pterror.o
80
81 LIBOBJS = \
82         ${AUDITOBJS} \
83         ${AUTHOBJS} \
84         ${KAUTHOBJS} \
85         ${UBIKOBJS} \
86         ${UTILOBJS} \
87         ${RXKADOBJS} \
88         ${PTSERVEROBJS} \
89         ${SYSOBJS}
90
91 all: ${TOP_LIBDIR}/libafsauthent.a
92
93 install: ${DESTDIR}${libdir}/libafsauthent.a
94
95 ${DEST}/lib/libafsauthent.a: libafsauthent.a
96         ${INSTALL} $? $@
97
98 libafsauthent.a: ${LIBOBJS}
99         $(RM) -f $@
100         $(AR) crv $@ ${LIBOBJS}
101         $(RANLIB) $@
102
103 audit.o: ${AUDIT}/audit.c
104         ${CCRULE}
105
106 cellconfig.o: ${AUTH}/cellconfig.c
107         ${CCRULE}
108
109 ktc.o: ${AUTH}/ktc.c
110         ${CCRULE}
111
112 userok.o: ${AUTH}/userok.c
113         ${CCRULE}
114
115 writeconfig.o: ${AUTH}/writeconfig.c
116         ${CCRULE}
117
118 authcon.o: ${AUTH}/authcon.c
119         ${CCRULE}
120
121 ktc_errors.o: ${AUTH}/ktc_errors.c
122         ${CCRULE}
123
124 acfg_errors.o: ${AUTH}/acfg_errors.c
125         ${CCRULE}
126
127 kauth.xdr.o: ${KAUTH}/kauth.xdr.c
128         ${CCRULE}
129
130 kauth.cs.o: ${KAUTH}/kauth.cs.c
131         ${CCRULE}
132
133 kaaux.o: ${KAUTH}/kaaux.c
134         ${CCRULE}
135
136 client.o: ${KAUTH}/client.c
137         ${CCRULE}
138
139 authclient.o: ${KAUTH}/authclient.c
140         ${CCRULE}
141
142 token.o: ${KAUTH}/token.c
143         ${CCRULE}
144
145 kautils.o: ${KAUTH}/kautils.c
146         ${CCRULE}
147
148 kalocalcell.o: ${KAUTH}/kalocalcell.c
149         ${CCRULE}
150
151 kaerrors.o: ${KAUTH}/kaerrors.c
152         ${CCRULE}
153
154 user.o: ${KAUTH}/user.c
155         ${CCRULE}
156
157 read_passwd.o: ${KAUTH}/read_passwd.c
158         ${CCRULE}
159
160 ubikclient.o: ${UBIK}/ubikclient.c
161         ${CCRULE}
162
163 uinit.o: ${UBIK}/uinit.c
164         ${CCRULE}
165
166 uerrors.o: ${UBIK}/uerrors.c
167         ${CCRULE}
168
169 ubik_int.cs.o: ${UBIK}/ubik_int.cs.c
170         ${CCRULE}
171
172 ubik_int.xdr.o: ${UBIK}/ubik_int.xdr.c
173         ${CCRULE}
174
175 get_krbrlm.o: ${UTIL}/get_krbrlm.c
176         ${CCRULE}
177
178 dirpath.o: ${UTIL}/dirpath.c
179         ${CCRULE}
180
181 fileutil.o: ${UTIL}/fileutil.c
182         ${CCRULE}
183
184 pthread_glock.o: ${UTIL}/pthread_glock.c
185         ${CCRULE}
186
187 rxkad_errs.o: ${RXKAD}/rxkad_errs.c
188         ${CCRULE}
189
190 ptclient.o: ${PTSERVER}/ptclient.c
191         ${CCRULE}
192
193 # The special treatment of this file for hp_ux110 is because of a bug
194 # in version A.11.01.00 of the HP C compiler.  This bug appears to be
195 # fixed in version A.11.01.02 of the HP C compiler, however this version
196 # of the compiler is not installed on all of our build machines.
197 # The symptom of the problem is an error when linking the pthread fileserver:
198 # /usr/ccs/bin/ld: TP override with DATA_ONE_SYM fixup for non thread local
199 # storage symbol pr_Initialize in file DEST/lib/libafsauthent.a(ptuser.o)
200 ptuser.o: ${PTSERVER}/ptuser.c
201         set -x; \
202         case ${SYS_NAME} in \
203         hp_ux11*) \
204                 set X `echo ${CCRULE} | sed s/-g//`; shift; \
205                 "$$@" \
206                 ;; \
207         *) \
208                 ${CCRULE} \
209                 ;; \
210         esac
211
212 display.o: ${PTSERVER}/display.c
213         ${CCRULE}
214
215 ptint.cs.o: ${PTSERVER}/ptint.cs.c
216         ${CCRULE}
217
218 ptint.xdr.o: ${PTSERVER}/ptint.xdr.c
219         ${CCRULE}
220
221 pterror.o: ${PTSERVER}/pterror.c
222         ${CCRULE}
223
224 rmtsysc.o: ${SYS}/rmtsysc.c
225         ${CCRULE}
226
227 rmtsys.xdr.o: ${SYS}/rmtsys.xdr.c
228         ${CCRULE}
229
230 rmtsys.cs.o: ${SYS}/rmtsys.cs.c
231         ${CCRULE}
232
233 afssyscalls.o: ${SYS}/afssyscalls.c
234         ${CCRULE}
235
236 rmtsysnet.o: ${SYS}/rmtsysnet.c
237         ${CCRULE}
238
239 clean:
240         $(RM) -f *.o *.a libafsauthent*
241
242 ${DESTDIR}${libdir}/libafsauthent.a: libafsauthent.a
243         ${INSTALL} $? $@
244
245 ${TOP_LIBDIR}/libafsauthent.a: libafsauthent.a
246         ${INSTALL} $? $@
247
248 dest: ${DEST}/lib/libafsauthent.a
249