build-system-specific-makefile-configuration-from-configure-20011031
[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
14 CC=${MT_CC}
15 CFLAGS=-I. -I${srcdir} ${OPTMZ} ${DBG} -I${TOP_OBJDIR}/src/config -I${TOP_INCDIR} ${MT_CFLAGS} \
16         -I../auth -I../kauth -I../ptserver -I../sys
17 CCRULE = ${CC} ${CFLAGS} -c $?
18
19 AUDIT= ../audit
20 AUTH = ../auth
21 KAUTH = ../kauth
22 UBIK = ../ubik
23 UTIL = ../util
24 RXKAD = ../rxkad
25 PTSERVER = ../ptserver
26 SYS = ../sys
27
28 AUDITOBJS = audit.o
29
30 AUTHOBJS = \
31         cellconfig.o \
32         ktc.o \
33         userok.o \
34         writeconfig.o \
35         authcon.o \
36         ktc_errors.o \
37         acfg_errors.o
38
39 KAUTHOBJS = \
40         kauth.xdr.o \
41         kauth.cs.o \
42         kaaux.o \
43         client.o \
44         authclient.o \
45         token.o \
46         kautils.o \
47         kalocalcell.o \
48         kaerrors.o \
49         user.o \
50         read_passwd.o
51
52 UBIKOBJS = \
53         ubikclient.o \
54         uerrors.o \
55         ubik_int.cs.o \
56         ubik_int.xdr.o
57
58 UTILOBJS = \
59         pthread_glock.o \
60         get_krbrlm.o \
61         dirpath.o \
62         fileutil.o \
63         casestrcpy.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
75 PTSERVEROBJS = \
76         ptclient.o \
77         ptint.cs.o \
78         ptint.xdr.o \
79         ptuser.o \
80         display.o \
81         pterror.o
82
83 LIBOBJS = \
84         ${AUDITOBJS} \
85         ${AUTHOBJS} \
86         ${KAUTHOBJS} \
87         ${UBIKOBJS} \
88         ${UTILOBJS} \
89         ${RXKADOBJS} \
90         ${PTSERVEROBJS} \
91         ${SYSOBJS}
92
93 all: ${TOP_LIBDIR}/libafsauthent.a
94
95 install: ${DESTDIR}${libdir}/libafsauthent.a
96
97 ${DEST}/lib/libafsauthent.a: libafsauthent.a
98         ${INSTALL} $? $@
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 uerrors.o: ${UBIK}/uerrors.c
166         ${CCRULE}
167
168 ubik_int.cs.o: ${UBIK}/ubik_int.cs.c
169         ${CCRULE}
170
171 ubik_int.xdr.o: ${UBIK}/ubik_int.xdr.c
172         ${CCRULE}
173
174 get_krbrlm.o: ${UTIL}/get_krbrlm.c
175         ${CCRULE}
176
177 dirpath.o: ${UTIL}/dirpath.c
178         ${CCRULE}
179
180 fileutil.o: ${UTIL}/fileutil.c
181         ${CCRULE}
182
183 casestrcpy.o: ${UTIL}/casestrcpy.c
184         ${CCRULE}
185
186 pthread_glock.o: ${UTIL}/pthread_glock.c
187         ${CCRULE}
188
189 rxkad_errs.o: ${RXKAD}/rxkad_errs.c
190         ${CCRULE}
191
192 ptclient.o: ${PTSERVER}/ptclient.c
193         ${CCRULE}
194
195 # The special treatment of this file for hp_ux110 is because of a bug
196 # in version A.11.01.00 of the HP C compiler.  This bug appears to be
197 # fixed in version A.11.01.02 of the HP C compiler, however this version
198 # of the compiler is not installed on all of our build machines.
199 # The symptom of the problem is an error when linking the pthread fileserver:
200 # /usr/ccs/bin/ld: TP override with DATA_ONE_SYM fixup for non thread local
201 # storage symbol pr_Initialize in file DEST/lib/libafsauthent.a(ptuser.o)
202 ptuser.o: ${PTSERVER}/ptuser.c
203         set -x; \
204         case ${SYS_NAME} in \
205         hp_ux11*) \
206                 set X `echo ${CCRULE} | sed s/-g//`; shift; \
207                 "$$@" \
208                 ;; \
209         *) \
210                 ${CCRULE} \
211                 ;; \
212         esac
213
214 display.o: ${PTSERVER}/display.c
215         ${CCRULE}
216
217 ptint.cs.o: ${PTSERVER}/ptint.cs.c
218         ${CCRULE}
219
220 ptint.xdr.o: ${PTSERVER}/ptint.xdr.c
221         ${CCRULE}
222
223 pterror.o: ${PTSERVER}/pterror.c
224         ${CCRULE}
225
226 rmtsysc.o: ${SYS}/rmtsysc.c
227         ${CCRULE}
228
229 rmtsys.xdr.o: ${SYS}/rmtsys.xdr.c
230         ${CCRULE}
231
232 rmtsys.cs.o: ${SYS}/rmtsys.cs.c
233         ${CCRULE}
234
235 afssyscalls.o: ${SYS}/afssyscalls.c
236         ${CCRULE}
237
238 rmtsysnet.o: ${SYS}/rmtsysnet.c
239         ${CCRULE}
240
241 clean:
242         $(RM) -f *.o *.a libafsauthent*
243
244 ${DESTDIR}${libdir}/libafsauthent.a: libafsauthent.a
245         ${INSTALL} $? $@
246
247 ${TOP_LIBDIR}/libafsauthent.a: libafsauthent.a
248         ${INSTALL} $? $@
249
250 dest: ${DEST}/lib/libafsauthent.a
251