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