Print this page
10079 smatch Makefile changes for usr/src/lib
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/lib/gss_mechs/mech_krb5/Makefile.com
+++ new/usr/src/lib/gss_mechs/mech_krb5/Makefile.com
1 1 #
2 2 # CDDL HEADER START
3 3 #
4 4 # The contents of this file are subject to the terms of the
5 5 # Common Development and Distribution License (the "License").
6 6 # You may not use this file except in compliance with the License.
7 7 #
8 8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 9 # or http://www.opensolaris.org/os/licensing.
10 10 # See the License for the specific language governing permissions
11 11 # and limitations under the License.
12 12 #
↓ open down ↓ |
12 lines elided |
↑ open up ↑ |
13 13 # When distributing Covered Code, include this CDDL HEADER in each
14 14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 15 # If applicable, add the following below this CDDL HEADER, with the
16 16 # fields enclosed by brackets "[]" replaced with your own identifying
17 17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 18 #
19 19 # CDDL HEADER END
20 20 #
21 21 # Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
22 22 #
23 +# Copyright (c) 2018, Joyent, Inc.
24 +#
23 25 # This make file will build mech_krb5.so.1. This shared object
24 26 # contains all the functionality needed to support the Kereros V5 GSS-API
25 27 # mechanism. No other Kerberos libraries are needed.
26 28 #
27 29
28 30 LIBRARY= mech_krb5.a
29 31 VERS = .1
30 32
31 33 FILEMODE= 755
32 34
33 35 # objects are listed by source directory
34 36 REL_PATH= ../
35 37
36 38 to_all: all
37 39
38 40 # crypto
39 41 CRYPTO = cksumtype_to_string.o \
40 42 coll_proof_cksum.o enctype_compare.o enctype_to_string.o \
41 43 keyed_checksum_types.o keyed_cksum.o \
42 44 make_random_key.o string_to_cksumtype.o \
43 45 string_to_enctype.o string_to_key.o valid_cksumtype.o \
44 46 valid_enctype.o pkcs11slot.o state.o pbkdf2.o old_api_glue.o \
45 47 keylengths.o random_to_key.o
46 48
47 49 CRYPTO_UTS= cksumtypes.o decrypt.o encrypt.o encrypt_length.o \
48 50 etypes.o nfold.o verify_checksum.o default_state.o \
49 51 prng.o block_size.o make_checksum.o checksum_length.o hmac.o \
50 52 mandatory_sumtype.o combine_keys.o
51 53
52 54 # crypto/raw
53 55 CRYPTO_RAW= raw_decrypt.o raw_encrypt.o
54 56
55 57 # crypto/des user space only
56 58 CRYPTO_DES= afsstring2key.o string2key.o
57 59
58 60 # crypto/des common to user and kernel space
59 61 CRYPTO_DES_UTS= f_cbc.o f_cksum.o f_parity.o weak_key.o d3_cbc.o
60 62
61 63 # crypto/arcfour user space only
62 64 CRYPTO_ARCFOUR= arcfour_str2key.o
63 65
64 66 # crypto/aes user space only
65 67 CRYPTO_AES= aes_s2k.o
66 68
67 69 # crypto/arcfour common to user and kernel space
68 70 CRYPTO_ARCFOUR_UTS = k5_arcfour.o
69 71
70 72 #crypto/dk
71 73 CRYPTO_DK= stringtokey.o
72 74
73 75 CRYPTO_DK_UTS= checksum.o derive.o dk_decrypt.o dk_encrypt.o
74 76
75 77 # crypto/crc32
76 78 CRYPTO_CRC32= crc.o
77 79
78 80 # crypto/crc32
79 81 CRYPTO_CRC32_UTS= crc32.o
80 82
81 83 # crypto/md4
82 84 CRYPTO_MD4= md4.o
83 85
84 86 # crypto/enc_provider
85 87 CRYPTO_ENC= des.o des3.o arcfour_provider.o aes_provider.o
86 88
87 89 # crypto/hash_provider
88 90 CRYPTO_HASH= hash_md5.o hash_sha1.o hash_ef_generic.o
89 91 CRYPTO_HASH_UTS= hash_crc32.o
90 92
91 93 # crypto/keyhash_provider
92 94 CRYPTO_KEYHASH= k5_md5des.o hmac_md5.o
93 95 CRYPTO_KEYHASH_UTS= descbc.o
94 96
95 97 # crypto/old
96 98 CRYPTO_OLD= des_stringtokey.o
97 99
98 100 # crypto/old
99 101 CRYPTO_OLD_UTS= old_encrypt.o old_decrypt.o
100 102
101 103 # et error_tables
102 104 ET= adb_err.o adm_err.o asn1_err.o chpass_util_strings.o error_message.o \
103 105 com_err.o gssapi_err_generic.o import_err.o \
104 106 gssapi_err_krb5.o kadm_err.o kdb5_err.o kpasswd_strings.o kdc5_err.o \
105 107 krb5_err.o kv5m_err.o prof_err.o pty_err.o ss_err.o
106 108
107 109 # krb5/asn.1
108 110 K5_ASN1= asn1_decode.o asn1_k_decode.o asn1_encode.o \
109 111 asn1_get.o asn1_make.o \
110 112 asn1buf.o krb5_decode.o krb5_encode.o \
111 113 asn1_k_encode.o asn1_misc.o ldap_key_seq.o
112 114
113 115 # krb5/ccache
114 116 K5_CC= cc_file.o cc_memory.o ccbase.o ccfns.o ccdefault.o ccdefops.o ser_cc.o cc_retr.o cccopy.o
115 117
116 118 # krb5/keytab
117 119 K5_KT= ktadd.o ktbase.o ktdefault.o ktfr_entry.o \
118 120 ktremove.o read_servi.o kt_file.o kt_srvtab.o ktfns.o kt_findrealm.o \
119 121 kt_solaris.o
120 122
121 123 K5_KRB= addr_comp.o addr_order.o addr_srch.o \
122 124 auth_con.o bld_pr_ext.o bld_princ.o chk_trans.o \
123 125 conv_princ.o copy_addrs.o copy_creds.o copy_data.o copy_tick.o \
124 126 cp_key_cnt.o decode_kdc.o decrypt_tk.o encode_kdc.o encrypt_tk.o \
125 127 free_rtree.o fwd_tgt.o gc_frm_kdc.o gc_via_tkt.o gen_seqnum.o \
126 128 gen_subkey.o get_creds.o get_in_tkt.o kdc_rep_dc.o mk_cred.o \
127 129 mk_error.o mk_priv.o mk_rep.o mk_req.o mk_req_ext.o mk_safe.o \
128 130 pr_to_salt.o princ_comp.o privacy_allowed.o rd_cred.o \
129 131 rd_error.o rd_priv.o rd_rep.o rd_req.o rd_req_dec.o rd_safe.o \
130 132 recvauth.o send_tgs.o sendauth.o srv_rcache.o str_conv.o \
131 133 tgtname.o valid_times.o walk_rtree.o appdefault.o deltat.o \
132 134 enc_helper.o gic_keytab.o gic_opt.o gic_pwd.o preauth2.o \
133 135 preauth.o vfy_increds.o vic_opt.o set_realm.o krb5_libinit.o chpw.o \
134 136 init_keyblock.o init_allocated_keyblock.o get_set_keyblock.o kerrs.o \
135 137 getuid.o pac.o
136 138
137 139 K5_KRB_UTS= copy_athctr.o copy_auth.o copy_cksum.o copy_key.o \
138 140 copy_princ.o init_ctx.o kfree.o parse.o ser_actx.o \
139 141 ser_adata.o ser_addr.o ser_auth.o \
140 142 ser_cksum.o ser_ctx.o ser_key.o \
141 143 ser_princ.o serialize.o unparse.o
142 144
143 145 K5_OS= an_to_ln.o def_realm.o ccdefname.o free_krbhs.o free_hstrl.o \
144 146 full_ipadr.o get_krbhst.o gen_port.o genaddrs.o gen_rname.o \
145 147 gmt_mktime.o hostaddr.o hst_realm.o krbfileio.o \
146 148 ktdefname.o kuserok.o mk_faddr.o localaddr.o locate_kdc.o lock_file.o \
147 149 net_read.o net_write.o osconfig.o port2ip.o promptusr.o \
148 150 read_msg.o read_pwd.o realm_dom.o sendto_kdc.o sn2princ.o \
149 151 unlck_file.o ustime.o write_msg.o safechown.o \
150 152 prompter.o realm_iter.o foreachaddr.o \
151 153 dnsglue.o dnssrv.o thread_safe.o changepw.o accessor.o
152 154
153 155 K5_OS_UTS=init_os_ctx.o timeofday.o toffset.o c_ustime.o
154 156
155 157 K5_POSIX= setenv.o
156 158
157 159 K5_RCACHE=rc_base.o rc_file.o rc_mem.o rc_common.o rc_io.o rcdef.o rc_conv.o \
158 160 ser_rc.o rcfns.o rc_none.o
159 161
160 162 MECH= accept_sec_context.o store_cred.o \
161 163 add_cred.o disp_com_err_status.o disp_major_status.o \
162 164 compare_name.o context_time.o copy_ccache.o \
163 165 disp_name.o disp_status.o export_sec_context.o \
164 166 get_tkt_flags.o import_name.o indicate_mechs.o \
165 167 inq_context.o inq_cred.o inq_names.o \
166 168 krb5_gss_glue.o \
167 169 pname_to_uid.o process_context_token.o \
168 170 rel_buffer.o rel_oid.o rel_oid_set.o \
169 171 rel_cred.o rel_name.o util_buffer.o \
170 172 util_dup.o util_localhost.o \
171 173 util_cksum.o acquire_cred.o init_sec_context.o \
172 174 set_ccache.o acquire_cred_with_pw.o lucid_context.o \
173 175 set_allowable_enctypes.o oid_ops.o export_name.o gss_libinit.o \
174 176 util_buffer_set.o util_errmap.o
175 177
176 178 MECH_UTS= delete_sec_context.o gssapi_krb5.o \
177 179 import_sec_context.o k5seal.o k5sealv3.o \
178 180 k5unseal.o seal.o ser_sctx.o \
179 181 sign.o unseal.o util_crypt.o \
180 182 util_ordering.o util_seed.o util_seqnum.o \
181 183 util_set.o util_token.o util_validate.o \
182 184 val_cred.o verify.o wrap_size_limit.o
183 185
184 186 GSSAPI_UTS= gen_oids.o
185 187
186 188 PROFILE_OBJS= prof_tree.o prof_file.o prof_parse.o prof_init.o \
187 189 prof_set.o prof_get.o prof_solaris.o
188 190
189 191 SUPPORT_OBJS= fake-addrinfo.o init-addrinfo.o threads.o errors.o plugins.o \
190 192 utf8_conv.o utf8.o
191 193
192 194 KWARN_OBJS= kwarnd_clnt_stubs.o kwarnd_clnt.o kwarnd_handle.o kwarnd_xdr.o
193 195
194 196 OBJECTS= \
195 197 $(MECH) $(MECH_UTS) $(GSSAPI_UTS)\
196 198 $(SUPPORT_OBJS) \
197 199 $(KWARN_OBJS) \
198 200 $(PROFILE_OBJS) \
199 201 $(CRYPTO) $(CRYPTO_UTS) \
200 202 $(CRYPTO_CRC32) \
201 203 $(CRYPTO_CRC32_UTS) \
202 204 $(CRYPTO_DES) $(CRYPTO_DES_UTS) \
203 205 $(CRYPTO_MD4) \
204 206 $(CRYPTO_DK) $(CRYPTO_DK_UTS) \
205 207 $(CRYPTO_ARCFOUR) $(CRYPTO_ARCFOUR_UTS) \
206 208 $(CRYPTO_AES) \
207 209 $(CRYPTO_ENC) \
208 210 $(CRYPTO_HASH) $(CRYPTO_HASH_UTS) \
209 211 $(CRYPTO_KEYHASH) $(CRYPTO_KEYHASH_UTS) \
210 212 $(CRYPTO_OLD) $(CRYPTO_OLD_UTS) \
211 213 $(CRYPTO_RAW) \
212 214 $(ET) \
213 215 $(K5_ASN1) \
214 216 $(K5_CC) \
215 217 $(K5_KT) \
216 218 $(K5_KRB) $(K5_KRB_UTS) \
217 219 $(K5_OS) $(K5_OS_UTS) \
218 220 $(K5_POSIX) $(K5_RCACHE)
219 221
220 222 # include library definitions
221 223 include $(REL_PATH)/../../Makefile.lib
222 224
223 225 # Must come after Makefile.lib so CPPFLAGS doesn't get overwritten
224 226 include $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5
225 227
226 228 K5LIBLINK=$(LIBRARY:%.a=lib%.so)
227 229
228 230 # override default text domain
229 231 TEXT_DOMAIN= SUNW_OST_NETRPC
230 232 INS.liblink2= -$(RM) $@; $(SYMLINK) gss/$(LIBLINKPATH)$(LIBLINKS) $@
231 233
232 234 CPPFLAGS += -I$(REL_PATH)/libgss -I../include \
233 235 -I$(SRC)/uts/common/gssapi \
234 236 -I$(SRC)/uts/common/gssapi/include \
235 237 -I$(SRC)/lib/gss_mechs/mech_krb5/mech \
236 238 -I$(SRC)/lib/gss_mechs/mech_krb5/include/krb5 \
237 239 -I../include/krb5 \
238 240 -I../krb5/keytab \
239 241 -I../krb5/krb \
240 242 -I../krb5/os \
241 243 -I../krb5/ccache \
242 244 -I../krb5/rcache \
243 245 -I$(SRC)/lib/krb5 \
244 246 -I$(SRC)/lib/krb5/kadm5 \
245 247 -I$(SRC)/uts/common/gssapi/mechs/krb5/include \
246 248 -I$(SRC)/uts/common/gssapi/mechs/krb5/crypto/des
247 249
248 250 # KRB5_DEFS can be assigned various preprocessor flags, typically -D
249 251 # defines on the make invocation. These values will be appended to
250 252 # CPPFLAGS so the other flags in CPPFLAGS will not be overwritten.
251 253
252 254 CPPFLAGS += $(KRB5_DEFS)
253 255
254 256 CERRWARN += -_gcc=-Wno-unused-function
↓ open down ↓ |
222 lines elided |
↑ open up ↑ |
255 257 CERRWARN += -_gcc=-Wno-type-limits
256 258 CERRWARN += -_gcc=-Wno-uninitialized
257 259 CERRWARN += -_gcc=-Wno-parentheses
258 260 CERRWARN += -_gcc=-Wno-unused-variable
259 261 CERRWARN += -_gcc=-Wno-unused-but-set-variable
260 262 CERRWARN += -_gcc=-Wno-unused-label
261 263 CERRWARN += -_gcc=-Wno-unused-value
262 264 CERRWARN += -_gcc=-Wno-empty-body
263 265 CERRWARN += -_gcc=-Wno-address
264 266
267 +# needs work
268 +SMATCH=off
269 +
265 270 MAPFILES = ../mapfile-vers
266 271
267 272 #CPPFLAGS += -D_REENTRANT
268 273 $(PICS) := CFLAGS += $(XFFLAG)
269 274 $(PICS) := CFLAGS64 += $(XFFLAG)
270 275 $(PICS) := CCFLAGS += $(XFFLAG)
271 276 $(PICS) := CCFLAGS64 += $(XFFLAG)
272 277
273 278 LIBS = $(DYNLIB) $(K5LIBLINK)
274 279
275 280 # override ROOTLIBDIR and ROOTLINKS
276 281 ROOTLIBDIR= $(ROOT)/usr/lib/gss
277 282 ROOTLIBDIR64= $(ROOT)/usr/lib/$(MACH64)/gss
278 283
279 284 K5MECHLINK= $(K5LIBLINK:%=$(ROOT)/usr/lib/%)
280 285 K5MECHLINK64= $(K5LIBLINK:%=$(ROOT)/usr/lib/$(MACH64)/%)
281 286
282 287 ROOTLIBS= $(LIBS:%=$(ROOTLIBDIR)/%) $(K5MECHLINK)
283 288 ROOTLIBS64= $(LIBS:%=$(ROOTLIBDIR64)/%) $(K5MECHLINK64)
284 289
285 290 $(ROOTLIBDIR) $(ROOTLIBDIR64):
286 291 $(INS.dir)
287 292
288 293 # create libmech_krb5 link locally
289 294 $(K5LIBLINK): $(DYNLIB)
290 295 -$(RM) $@; $(SYMLINK) $(DYNLIB) $@
291 296
292 297 # create libmech_krb5 link in $ROOT/usr/lib/gss/
293 298 $(ROOTLIBDIR)/$(K5LIBLINK): $(ROOTLIBDIR)/$(LIBLINKS)$(VERS)
294 299 $(INS.liblink)
295 300
296 301 # create libmech_krb5 link in $ROOT/usr/lib/$(MACH64)/gss
297 302 $(ROOTLIBDIR64)/$(K5LIBLINK): $(ROOTLIBDIR64)/$(LIBLINKS)$(VERS)
298 303 $(INS.liblink)
299 304
300 305 # create libmech_krb5 link in ROOT/usr/lib
301 306 $(K5MECHLINK): $(ROOTLIBDIR)/$(LIBLINKS)$(VERS)
302 307 $(INS.liblink2)
303 308
304 309 # create libmech_krb5 link in ROOT/usr/lib/$(MACH64)
305 310 $(K5MECHLINK64): $(ROOTLIBDIR64)/$(LIBLINKS)$(VERS)
306 311 $(INS.liblink2)
307 312
308 313 LDLIBS += -lgss -lsocket -lresolv -lc -lpkcs11 -lnsl -lkstat
309 314 # -z ignore causes linker to ignore unneeded dependencies. This is
310 315 # needed because -lnsl is only used if DEBUG is defined.
311 316 DYNFLAGS += $(ZIGNORE)
312 317
313 318 # mech lib needs special initialization at load time
314 319 DYNFLAGS += -zinitarray=krb5_ld_init
315 320
316 321 objs/%.o pics/%.o: $(SRC)/uts/common/gssapi/%.c
317 322 $(COMPILE.c) -o $@ $<
318 323 $(POST_PROCESS_O)
319 324
320 325 objs/%.o pics/%.o: $(SRC)/uts/common/gssapi/mechs/krb5/mech/%.c
321 326 $(COMPILE.c) -o $@ $<
322 327 $(POST_PROCESS_O)
323 328
324 329 objs/%.o pics/%.o: $(SRC)/lib/gss_mechs/mech_krb5/mech/%.c
325 330 $(COMPILE.c) -o $@ $<
326 331 $(POST_PROCESS_O)
327 332
328 333 objs/%.o pics/%.o: $(SRC)/uts/common/gssapi/mechs/krb5/crypto/%.c
329 334 $(COMPILE.c) -o $@ $<
330 335 $(POST_PROCESS_O)
331 336
332 337 objs/%.o pics/%.o: $(REL_PATH)/crypto/%.c
333 338 $(COMPILE.c) -o $@ $<
334 339 $(POST_PROCESS_O)
335 340
336 341 objs/%.o pics/%.o: $(REL_PATH)/crypto/md4/%.c
337 342 $(COMPILE.c) -o $@ $<
338 343 $(POST_PROCESS_O)
339 344
340 345 objs/%.o pics/%.o: $(SRC)/uts/common/gssapi/mechs/krb5/crypto/des/%.c
341 346 $(COMPILE.c) -o $@ $<
342 347 $(POST_PROCESS_O)
343 348
344 349 objs/%.o pics/%.o: $(REL_PATH)/crypto/des/%.c
345 350 $(COMPILE.c) -o $@ $<
346 351 $(POST_PROCESS_O)
347 352
348 353 objs/%.o pics/%.o: $(SRC)/uts/common/gssapi/mechs/krb5/crypto/arcfour/%.c
349 354 $(COMPILE.c) -o $@ $<
350 355 $(POST_PROCESS_O)
351 356
352 357 objs/%.o pics/%.o: $(REL_PATH)/crypto/arcfour/%.c
353 358 $(COMPILE.c) -o $@ $<
354 359 $(POST_PROCESS_O)
355 360
356 361 objs/%.o pics/%.o: $(REL_PATH)/crypto/aes/%.c
357 362 $(COMPILE.c) -o $@ $<
358 363 $(POST_PROCESS_O)
359 364
360 365 objs/%.o pics/%.o: $(SRC)/uts/common/gssapi/mechs/krb5/crypto/dk/%.c
361 366 $(COMPILE.c) -o $@ $<
362 367 $(POST_PROCESS_O)
363 368
364 369 objs/%.o pics/%.o: $(REL_PATH)/crypto/dk/%.c
365 370 $(COMPILE.c) -o $@ $<
366 371 $(POST_PROCESS_O)
367 372
368 373 objs/%.o pics/%.o: $(SRC)/uts/common/gssapi/mechs/krb5/crypto/raw/%.c
369 374 $(COMPILE.c) -o $@ $<
370 375 $(POST_PROCESS_O)
371 376
372 377 objs/%.o pics/%.o: $(SRC)/uts/common/gssapi/mechs/krb5/crypto/crc32/%.c
373 378 $(COMPILE.c) -o $@ $<
374 379 $(POST_PROCESS_O)
375 380
376 381 objs/%.o pics/%.o: $(REL_PATH)/crypto/crc32/%.c
377 382 $(COMPILE.c) -o $@ $<
378 383 $(POST_PROCESS_O)
379 384
380 385 objs/%.o pics/%.o: $(SRC)/uts/common/gssapi/mechs/krb5/crypto/sha1/%.c
381 386 $(COMPILE.c) -o $@ $<
382 387 $(POST_PROCESS_O)
383 388
384 389 objs/%.o pics/%.o: $(SRC)/uts/common/gssapi/mechs/krb5/crypto/enc_provider/%.c
385 390 $(COMPILE.c) -o $@ $<
386 391 $(POST_PROCESS_O)
387 392
388 393 objs/%.o pics/%.o: $(REL_PATH)/crypto/hash_provider/%.c
389 394 $(COMPILE.c) -o $@ $<
390 395 $(POST_PROCESS_O)
391 396
392 397 objs/%.o pics/%.o: $(SRC)/uts/common/gssapi/mechs/krb5/crypto/hash_provider/%.c
393 398 $(COMPILE.c) -o $@ $<
394 399 $(POST_PROCESS_O)
395 400
396 401 objs/%.o pics/%.o: $(REL_PATH)/crypto/keyhash_provider/%.c
397 402 $(COMPILE.c) -o $@ $<
398 403 $(POST_PROCESS_O)
399 404
400 405 objs/%.o pics/%.o: $(SRC)/uts/common/gssapi/mechs/krb5/crypto/keyhash_provider/%.c
401 406 $(COMPILE.c) -o $@ $<
402 407 $(POST_PROCESS_O)
403 408
404 409 objs/%.o pics/%.o: $(SRC)/uts/common/gssapi/mechs/krb5/crypto/old/%.c
405 410 $(COMPILE.c) -o $@ $<
406 411 $(POST_PROCESS_O)
407 412
408 413 objs/%.o pics/%.o: $(REL_PATH)/crypto/old/%.c
409 414 $(COMPILE.c) -o $@ $<
410 415 $(POST_PROCESS_O)
411 416
412 417 objs/%.o pics/%.o: $(SRC)/uts/common/gssapi/mechs/krb5/crypto/os/%.c
413 418 $(COMPILE.c) -o $@ $<
414 419 $(POST_PROCESS_O)
415 420
416 421 objs/%.o pics/%.o: $(REL_PATH)/crypto/sha1/%.c
417 422 $(COMPILE.c) -o $@ $<
418 423 $(POST_PROCESS_O)
419 424
420 425 objs/%.o pics/%.o: $(REL_PATH)/et/%.c
421 426 $(COMPILE.c) -o $@ $<
422 427 $(POST_PROCESS_O)
423 428
424 429 objs/%.o pics/%.o: $(REL_PATH)/krb5/asn.1/%.c
425 430 $(COMPILE.c) -o $@ $<
426 431 $(POST_PROCESS_O)
427 432
428 433 objs/%.o pics/%.o: $(REL_PATH)/krb5/ccache/%.c
429 434 $(COMPILE.c) -o $@ $<
430 435 $(POST_PROCESS_O)
431 436
432 437 objs/%.o pics/%.o: $(REL_PATH)/krb5/ccache/file/%.c
433 438 $(COMPILE.c) -o $@ $<
434 439 $(POST_PROCESS_O)
435 440
436 441 objs/%.o pics/%.o: $(REL_PATH)/krb5/ccache/stdio/%.c
437 442 $(COMPILE.c) -o $@ $<
438 443 $(POST_PROCESS_O)
439 444
440 445 objs/%.o pics/%.o: $(REL_PATH)/krb5/ccache/memory/%.c
441 446 $(COMPILE.c) -o $@ $<
442 447 $(POST_PROCESS_O)
443 448
444 449 objs/%.o pics/%.o: $(REL_PATH)/krb5/keytab/%.c
445 450 $(COMPILE.c) -o $@ $<
446 451 $(POST_PROCESS_O)
447 452
448 453 objs/%.o pics/%.o: $(REL_PATH)/krb5/keytab/file/%.c
449 454 $(COMPILE.c) -o $@ $<
450 455 $(POST_PROCESS_O)
451 456
452 457 objs/%.o pics/%.o: $(SRC)/uts/common/gssapi/mechs/krb5/krb5/krb/%.c
453 458 $(COMPILE.c) -o $@ $<
454 459 $(POST_PROCESS_O)
455 460
456 461 objs/%.o pics/%.o: $(REL_PATH)/krb5/krb/%.c
457 462 $(COMPILE.c) -o $@ $<
458 463 $(POST_PROCESS_O)
459 464
460 465 objs/%.o pics/%.o: $(SRC)/uts/common/gssapi/mechs/krb5/krb5/os/%.c
461 466 $(COMPILE.c) -o $@ $<
462 467 $(POST_PROCESS_O)
463 468
464 469 objs/%.o pics/%.o: $(REL_PATH)/krb5/os/%.c
465 470 $(COMPILE.c) -o $@ $<
466 471 $(POST_PROCESS_O)
467 472
468 473 objs/%.o pics/%.o: $(REL_PATH)/krb5/posix/%.c
469 474 $(COMPILE.c) -o $@ $<
470 475 $(POST_PROCESS_O)
471 476
472 477 objs/%.o pics/%.o: $(REL_PATH)/krb5/rcache/%.c
473 478 $(COMPILE.c) -o $@ $<
474 479 $(POST_PROCESS_O)
475 480
476 481 objs/%.o pics/%.o: $(REL_PATH)/profile/%.c
477 482 $(COMPILE.c) -o $@ $<
478 483 $(POST_PROCESS_O)
479 484
480 485 objs/%.o pics/%.o: $(REL_PATH)/support/%.c
481 486 $(COMPILE.c) -o $@ $<
482 487 $(POST_PROCESS_O)
483 488
484 489 # include library targets
485 490 include $(REL_PATH)/../../Makefile.targ
486 491 # We need to include all CPPFLAGS for the files since we are using
487 492 # the macro to expand and they are not aware of flags yet .. ugh..
488 493
489 494 OS_FLAGS = -DHAVE_LIBSOCKET -DHAVE_LIBNSL -DTIME_WITH_SYS_TIME \
490 495 -DHAVE_UNISTD_H -DHAVE_SYS_TIME_H -DHAVE_REGEX_H \
491 496 -DHAVE_REGEXP_H -DHAVE_RE_COMP -DHAVE_REGCOMP \
492 497 -DPOSIX_TYPES -DNDBM \
493 498 -DHAVE_STDLIB_H -DHAVE_STDARG_H -DHAVE_SYS_TYPES_H \
494 499 -DHAVE_NETINET_IN_H -DHAVE_SRAND48 \
495 500 -DHAVE_SRAND -DHAVE_SRANDOM -DHAVE_GETPID \
496 501 -DHAVE_ERRNO -DHAVE_STRFTIME -DHAVE_STRPTIME -DHAVE_STRERROR \
497 502 -DHAVE_STAT -DSIZEOF_INT=4 -DPROVIDE_KERNEL_IMPORT \
498 503 -DHAVE_STDINT_H -DPOSIX_SIGNALS -DHAVE_GETENV -DHAVE_SETENV \
499 504 -DHAVE_UNSETENV -DHAVE_FCHMOD -DHAVE_STRUCT_LIFCONF \
500 505 -DHAVE_VASPRINTF -DHAVE_RES_NINIT -DHAVE_RES_NDESTROY \
501 506 -DHAVE_RES_NSEARCH
502 507
503 508 CPPFLAGS += -I$(REL_PATH)krb5/ccache/file $(OS_FLAGS)
504 509
505 510 SOURCES= \
506 511 $(CRYPTO_OS_UTS:%.o= $(SRC)/uts/common/gssapi/mechs/krb5/crypto/os/%.c)\
507 512 $(K5_OS_UTS:%.o=$(SRC)/uts/common/gssapi/mechs/krb5/krb5/os/%.c) \
508 513 $(K5_OS:%.o=$(SRC)/lib/gss_mechs/mech_krb5/krb5/os/%.c) \
509 514 $(CRYPTO:%.o=$(SRC)/lib/gss_mechs/mech_krb5/crypto/%.c) \
510 515 $(CRYPTO_UTS:%.o= $(SRC)/uts/common/gssapi/mechs/krb5/crypto/%.c)\
511 516 $(CRYPTO_RAW:%.o= $(SRC)/uts/common/gssapi/mechs/krb5/crypto/raw/%.c)\
512 517 $(CRYPTO_DES:%.o= $(SRC)/lib/gss_mechs/mech_krb5/crypto/des/%.c)\
513 518 $(CRYPTO_DES_UTS:%.o= $(SRC)/uts/common/gssapi/mechs/krb5/crypto/des/%.c)\
514 519 $(CRYPTO_ARCFOUR:%.o= $(SRC)/lib/gss_mechs/mech_krb5/crypto/arcfour/%.c)\
515 520 $(CRYPTO_ARCFOUR_UTS:%.o= $(SRC)/uts/common/gssapi/mechs/krb5/crypto/arcfour/%.c)\
516 521 $(CRYPTO_AES:%.o= $(SRC)/lib/gss_mechs/mech_krb5/crypto/aes/%.c)\
517 522 $(CRYPTO_DK:%.o= $(SRC)/lib/gss_mechs/mech_krb5/crypto/dk/%.c)\
518 523 $(CRYPTO_DK_UTS:%.o= $(SRC)/uts/common/gssapi/mechs/krb5/crypto/dk/%.c)\
519 524 $(CRYPTO_CRC32:%.o= $(SRC)/lib/gss_mechs/mech_krb5/crypto/crc32/%.c)\
520 525 $(CRYPTO_MD4:%.o= $(SRC)/lib/gss_mechs/mech_krb5/crypto/md4/%.c)\
521 526 $(CRYPTO_CRC32_UTS:%.o= $(SRC)/uts/common/gssapi/mechs/krb5/crypto/crc32/%.c)\
522 527 $(CRYPTO_ENC:%.o= $(SRC)/uts/common/gssapi/mechs/krb5/crypto/enc_provider/%.c)\
523 528 $(CRYPTO_HASH:%.o= $(SRC)/lib/gss_mechs/mech_krb5/crypto/hash_provider/%.c)\
524 529 $(CRYPTO_HASH_UTS:%.o= $(SRC)/uts/common/gssapi/mechs/krb5/crypto/hash_provider/%.c)\
525 530 $(CRYPTO_KEYHASH:%.o= $(SRC)/lib/gss_mechs/mech_krb5/crypto/keyhash_provider/%.c)\
526 531 $(CRYPTO_KEYHASH_UTS:%.o= $(SRC)/uts/common/gssapi/mechs/krb5/crypto/keyhash_provider/%.c)\
527 532 $(CRYPTO_OLD:%.o= $(SRC)/lib/gss_mechs/mech_krb5/crypto/old/%.c)\
528 533 $(CRYPTO_OLD_UTS:%.o= $(SRC)/uts/common/gssapi/mechs/krb5/crypto/old/%.c)\
529 534 $(ET:%.o= $(SRC)/lib/gss_mechs/mech_krb5/et/%.c) \
530 535 $(K5_ASN1:%.o= $(SRC)/lib/gss_mechs/mech_krb5/krb5/asn.1/%.c) \
531 536 $(K5_CC:%.o= $(SRC)/lib/gss_mechs/mech_krb5/krb5/ccache/%.c) \
532 537 $(K5_KT:%.o= $(SRC)/lib/gss_mechs/mech_krb5/krb5/keytab/%.c) \
533 538 $(K5_KRB:%.o= $(SRC)/lib/gss_mechs/mech_krb5/krb5/krb/%.c)\
534 539 $(K5_KRB_UTS:%.o= $(SRC)/uts/common/gssapi/mechs/krb5/krb5/krb/%.c)\
535 540 $(K5_OS:%.o= $(SRC)/lib/gss_mechs/mech_krb5/krb5/os/%.c)\
536 541 $(K5_OS_UTS:%.o= $(SRC)/uts/common/gssapi/mechs/krb5/krb5/os/%.c)\
537 542 $(K5_POSIX:%.o= $(SRC)/lib/gss_mechs/mech_krb5/krb5/posix/%.c)\
538 543 $(K5_RCACHE:%.o= $(SRC)/lib/gss_mechs/mech_krb5/krb5/rcache/%.c) \
539 544 $(MECH:%.o= $(SRC)/lib/gss_mechs/mech_krb5/mech/%.c) \
540 545 $(MECH_UTS:%.o= $(SRC)/uts/common/gssapi/mechs/krb5/mech/%.c) \
541 546 $(GSSAPI_UTS:%.o= $(SRC)/uts/common/gssapi/%.c) \
542 547 $(PROFILE_OBJS:%.o= $(SRC)/lib/gss_mechs/mech_krb5/profile/%.c) \
543 548 $(SUPPORT_OBJS:%.o= $(SRC)/lib/gss_mechs/mech_krb5/support/%.c)
544 549
545 550 kwarnd.h: $(SRC)/cmd/krb5/kwarn/kwarnd.x
546 551 $(RM) $@
547 552 $(RPCGEN) -M -h $(SRC)/cmd/krb5/kwarn/kwarnd.x | \
548 553 $(SED) -e 's!$(SRC)/cmd/krb5/kwarn/kwarnd.h!kwarnd.h!' > $@
549 554
550 555 kwarnd_xdr.c: kwarnd.h $(SRC)/cmd/krb5/kwarn/kwarnd.x
551 556 $(RM) $@
552 557 $(RPCGEN) -M -c $(SRC)/cmd/krb5/kwarn/kwarnd.x | \
553 558 $(SED) -e 's!$(SRC)/cmd/krb5/kwarn/kwarnd.h!kwarnd.h!' > $@
554 559
555 560 kwarnd_clnt.c: kwarnd.h $(SRC)/cmd/krb5/kwarn/kwarnd.x
556 561 $(RM) $@
557 562 $(RPCGEN) -M -l $(SRC)/cmd/krb5/kwarn/kwarnd.x | \
558 563 $(SED) -e 's!$(SRC)/cmd/krb5/kwarn/kwarnd.h!kwarnd.h!' > $@
559 564
560 565 kwarnd_clnt_stubs.c: kwarnd.h $(SRC)/cmd/krb5/kwarn/kwarnd_clnt_stubs.c
561 566 $(RM) $@
562 567 $(CP) $(SRC)/cmd/krb5/kwarn/kwarnd_clnt_stubs.c $@
563 568
564 569 kwarnd_handle.c: $(SRC)/cmd/krb5/kwarn/kwarnd_handle.c
565 570 $(RM) $@
566 571 $(CP) $(SRC)/cmd/krb5/kwarn/kwarnd_handle.c $@
567 572
568 573 CLOBBERFILES += kwarnd.h \
569 574 kwarnd_clnt.c kwarnd_clnt_stubs.c kwarnd_handle.c kwarnd_xdr.c
570 575
571 576 # So lint.out won't be needlessly recreated
572 577 lint: $(LINTOUT)
573 578
574 579 $(LINTOUT): $(SOURCES)
575 580 $(LINT.c) -o $(LIBNAME) $(SOURCES) > $(LINTOUT) 2>&1
576 581
↓ open down ↓ |
302 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX