rpc-authent-shlib-support-mostly-20020826
[openafs.git] / src / libafsauthent / Makefile.in
1 # API version. When something changes, increment as appropriate. 
2 # Ignore at your own risk.
3 LIBAFSAUTHENTMAJOR=1
4 LIBAFSAUTHENTMINOR=0
5
6 # Copyright 2000, International Business Machines Corporation and others.
7 # All Rights Reserved.
8
9 # This software has been released under the terms of the IBM Public
10 # License.  For details, see the LICENSE file in the top-level source
11 # directory or online at http://www.openafs.org/dl/license10.html
12
13 # This is a pthread safe library containing ubikclient, auth, kauth.
14
15 srcdir=@srcdir@
16 include @TOP_OBJDIR@/src/config/Makefile.config
17
18
19 CC=${MT_CC}
20 CFLAGS=-I. -I${srcdir} ${OPTMZ} ${DBG} -I${TOP_OBJDIR}/src/config -I${TOP_INCDIR} ${MT_CFLAGS} \
21         -I../auth -I../kauth -I../ptserver -I../sys
22 CCRULE = ${CC} ${CFLAGS} -c $?
23
24 AUDIT= ../audit
25 AUTH = ../auth
26 KAUTH = ../kauth
27 UBIK = ../ubik
28 UTIL = ../util
29 RXKAD = ../rxkad
30 PTSERVER = ../ptserver
31 SYS = ../sys
32
33 AUDITOBJS = audit.o
34
35 AUTHOBJS = \
36         cellconfig.o \
37         ktc.o \
38         userok.o \
39         writeconfig.o \
40         authcon.o \
41         ktc_errors.o \
42         acfg_errors.o
43
44 KAUTHOBJS = \
45         kauth.xdr.o \
46         kauth.cs.o \
47         kaaux.o \
48         client.o \
49         authclient.o \
50         token.o \
51         kautils.o \
52         kalocalcell.o \
53         kaerrors.o \
54         user.o \
55         read_passwd.o
56
57 UBIKOBJS = \
58         ubikclient.o \
59         uerrors.o \
60         ubik_int.cs.o \
61         ubik_int.xdr.o
62
63 UTILOBJS = \
64         pthread_glock.o \
65         get_krbrlm.o \
66         dirpath.o \
67         fileutil.o \
68         casestrcpy.o
69
70 RXKADOBJS = \
71         rxkad_errs.o
72
73 SYSOBJS = \
74         rmtsysc.o \
75         rmtsys.xdr.o \
76         rmtsys.cs.o \
77         afssyscalls.o \
78         rmtsysnet.o
79
80 PTSERVEROBJS = \
81         ptclient.o \
82         ptint.cs.o \
83         ptint.xdr.o \
84         ptuser.o \
85         display.o \
86         pterror.o
87
88 LIBOBJS = \
89         ${AUDITOBJS} \
90         ${AUTHOBJS} \
91         ${KAUTHOBJS} \
92         ${UBIKOBJS} \
93         ${UTILOBJS} \
94         ${RXKADOBJS} \
95         ${PTSERVEROBJS} \
96         ${SYSOBJS}
97
98 all: ${TOP_LIBDIR}/libafsauthent.a
99
100 install: ${DESTDIR}${libdir}/libafsauthent.a
101
102 LIBAFSAUTHENT = libafsauthent.${SHLIB_SUFFIX}.${LIBAFSAUTHENTMAJOR}.${LIBAFSAUTHENTMINOR}
103
104 ${DEST}${libdir}/libafsauthent.${SHLIB_SUFFIX}: ${LIBAFSAUTHENT}
105         ${INSTALL} ${LIBAFSAUTHENT} ${DEST}${libdir}/${LIBAFSAUTHENT}
106         -ln -f -s ${LIBAFSAUTHENT} ${DEST}${libdir}/libafsauthent.${SHLIB_SUFFIX}
107
108 ${LIBAFSAUTHENT}: ${LIBOBJS}
109         case ${SYS_NAME} in \
110         rs_aix4*) \
111                 ${SHLIB_LINKER} -o ${LIBAFSAUTHENT} ${LIBOBJS} -L${TOP_LIBDIR} -bE:afsauthent.exp -lafsrpc ${MT_LIBS};; \
112         sun*_5*) \
113                 ${SHLIB_LINKER} -h ${LIBAFSAUTHENT} -o ${LIBAFSAUTHENT} -L${TOP_LIBDIR} -lafsrpc ${MT_LIBS};; \
114         *) \
115                 ${SHLIB_LINKER} -o ${LIBAFSAUTHENT} -L${TOP_LIBDIR} -lafsrpc ${MT_LIBS};; \
116         esac
117
118 ${DEST}/lib/libafsauthent.a: libafsauthent.a
119         ${INSTALL} $? $@
120
121 libafsauthent.a: ${LIBOBJS}
122         $(RM) -f $@
123         $(AR) crv $@ ${LIBOBJS}
124         $(RANLIB) $@
125
126 audit.o: ${AUDIT}/audit.c
127         ${CCRULE}
128
129 cellconfig.o: ${AUTH}/cellconfig.c
130         ${CCRULE}
131
132 ktc.o: ${AUTH}/ktc.c
133         ${CCRULE}
134
135 userok.o: ${AUTH}/userok.c
136         ${CCRULE}
137
138 writeconfig.o: ${AUTH}/writeconfig.c
139         ${CCRULE}
140
141 authcon.o: ${AUTH}/authcon.c
142         ${CCRULE}
143
144 ktc_errors.o: ${AUTH}/ktc_errors.c
145         ${CCRULE}
146
147 acfg_errors.o: ${AUTH}/acfg_errors.c
148         ${CCRULE}
149
150 kauth.xdr.o: ${KAUTH}/kauth.xdr.c
151         ${CCRULE}
152
153 kauth.cs.o: ${KAUTH}/kauth.cs.c
154         ${CCRULE}
155
156 kaaux.o: ${KAUTH}/kaaux.c
157         ${CCRULE}
158
159 client.o: ${KAUTH}/client.c
160         ${CCRULE}
161
162 authclient.o: ${KAUTH}/authclient.c
163         ${CCRULE}
164
165 token.o: ${KAUTH}/token.c
166         ${CCRULE}
167
168 kautils.o: ${KAUTH}/kautils.c
169         ${CCRULE}
170
171 kalocalcell.o: ${KAUTH}/kalocalcell.c
172         ${CCRULE}
173
174 kaerrors.o: ${KAUTH}/kaerrors.c
175         ${CCRULE}
176
177 user.o: ${KAUTH}/user.c
178         ${CCRULE}
179
180 read_passwd.o: ${KAUTH}/read_passwd.c
181         ${CCRULE}
182
183 ubikclient.o: ${UBIK}/ubikclient.c
184         ${CCRULE}
185
186 uerrors.o: ${UBIK}/uerrors.c
187         ${CCRULE}
188
189 ubik_int.cs.o: ${UBIK}/ubik_int.cs.c
190         ${CCRULE}
191
192 ubik_int.xdr.o: ${UBIK}/ubik_int.xdr.c
193         ${CCRULE}
194
195 get_krbrlm.o: ${UTIL}/get_krbrlm.c
196         ${CCRULE}
197
198 dirpath.o: ${UTIL}/dirpath.c
199         ${CCRULE}
200
201 fileutil.o: ${UTIL}/fileutil.c
202         ${CCRULE}
203
204 casestrcpy.o: ${UTIL}/casestrcpy.c
205         ${CCRULE}
206
207 pthread_glock.o: ${UTIL}/pthread_glock.c
208         ${CCRULE}
209
210 rxkad_errs.o: ${RXKAD}/rxkad_errs.c
211         ${CCRULE}
212
213 ptclient.o: ${PTSERVER}/ptclient.c
214         ${CCRULE}
215
216 # The special treatment of this file for hp_ux110 is because of a bug
217 # in version A.11.01.00 of the HP C compiler.  This bug appears to be
218 # fixed in version A.11.01.02 of the HP C compiler, however this version
219 # of the compiler is not installed on all of our build machines.
220 # The symptom of the problem is an error when linking the pthread fileserver:
221 # /usr/ccs/bin/ld: TP override with DATA_ONE_SYM fixup for non thread local
222 # storage symbol pr_Initialize in file DEST/lib/libafsauthent.a(ptuser.o)
223 ptuser.o: ${PTSERVER}/ptuser.c
224         set -x; \
225         case ${SYS_NAME} in \
226         hp_ux11*) \
227                 set X `echo ${CCRULE} | sed s/-g//`; shift; \
228                 "$$@" \
229                 ;; \
230         *) \
231                 ${CCRULE} \
232                 ;; \
233         esac
234
235 display.o: ${PTSERVER}/display.c
236         ${CCRULE}
237
238 ptint.cs.o: ${PTSERVER}/ptint.cs.c
239         ${CCRULE}
240
241 ptint.xdr.o: ${PTSERVER}/ptint.xdr.c
242         ${CCRULE}
243
244 pterror.o: ${PTSERVER}/pterror.c
245         ${CCRULE}
246
247 rmtsysc.o: ${SYS}/rmtsysc.c
248         ${CCRULE}
249
250 rmtsys.xdr.o: ${SYS}/rmtsys.xdr.c
251         ${CCRULE}
252
253 rmtsys.cs.o: ${SYS}/rmtsys.cs.c
254         ${CCRULE}
255
256 afssyscalls.o: ${SYS}/afssyscalls.c
257         ${CCRULE}
258
259 rmtsysnet.o: ${SYS}/rmtsysnet.c
260         ${CCRULE}
261
262 clean:
263         $(RM) -f *.o *.a libafsauthent*
264
265 ${DESTDIR}${libdir}/libafsauthent.a: libafsauthent.a
266         ${INSTALL} $? $@
267
268 ${DESTDIR}${libdir}/libafsauthent.${SHLIB_SUFFIX}: ${LIBAFSAUTHENT}
269         ${INSTALL} ${LIBAFSAUTHENT} ${DESTDIR}${libdir}/${LIBAFSAUTHENT}
270         -ln -f -s ${LIBAFSAUTHENT} ${DESTDIR}${libdir}/libafsauthent.${SHLIB_SUFFIX}
271
272 ${TOP_LIBDIR}/libafsauthent.a: libafsauthent.a
273         ${INSTALL} $? $@
274
275 ${TOP_LIBDIR}/libafsauthent.${SHLIB_SUFFIX}: ${LIBAFSAUTHENT}
276         ${INSTALL} ${LIBAFSAUTHENT} ${TOP_LIBDIR}/${LIBAFSAUTHENT}
277         -ln -f -s ${LIBAFSAUTHENT} ${TOP_LIBDIR}/libafsauthent.${SHLIB_SUFFIX}
278
279 dest: ${DEST}/lib/libafsauthent.a
280