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