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