#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
#
# This make file will build mech_krb5.so.1. This shared object
# contains all the functionality needed to support the Kereros V5 GSS-API
# mechanism. No other Kerberos libraries are needed.
#
VERS = .1
FILEMODE= 755
# objects are listed by source directory
REL_PATH= ../
# crypto
# et error_tables
OBJECTS= \
$(SUPPORT_OBJS) \
$(KWARN_OBJS) \
$(PROFILE_OBJS) \
$(CRYPTO) $(CRYPTO_UTS) \
$(CRYPTO_CRC32) \
$(CRYPTO_CRC32_UTS) \
$(CRYPTO_DES) $(CRYPTO_DES_UTS) \
$(CRYPTO_MD4) \
$(CRYPTO_DK) $(CRYPTO_DK_UTS) \
$(CRYPTO_ARCFOUR) $(CRYPTO_ARCFOUR_UTS) \
$(CRYPTO_AES) \
$(CRYPTO_ENC) \
$(CRYPTO_HASH) $(CRYPTO_HASH_UTS) \
$(CRYPTO_KEYHASH) $(CRYPTO_KEYHASH_UTS) \
$(CRYPTO_OLD) $(CRYPTO_OLD_UTS) \
$(CRYPTO_RAW) \
$(DTRACE_OBJS) \
$(ET) \
$(K5_ASN1) \
$(K5_CC) \
$(K5_KT) \
$(K5_KRB) $(K5_KRB_UTS) \
$(K5_UNICODE)
# include library definitions
# Must come after Makefile.lib so CPPFLAGS doesn't get overwritten
# The following objects are unused. Refer to comments in Makefile.master.
UNUSEDFILES = \
# override default text domain
-I.
# KRB5_DEFS can be assigned various preprocessor flags, typically -D
# defines on the make invocation. These values will be appended to
# CPPFLAGS so the other flags in CPPFLAGS will not be overwritten.
#CPPFLAGS += -D_REENTRANT
# override ROOTLIBDIR and ROOTLINKS
$(INS.dir)
# create libmech_krb5 link locally
$(INS.liblink)
$(INS.liblink)
$(INS.liblink)
$(INS.liblink)
$(INS.liblink2)
$(INS.liblink2)
$(INS.liblink2)
$(INS.liblink2)
# -z ignore causes linker to ignore unneeded dependencies. This is
# needed because -lnsl is only used if DEBUG is defined.
# mech lib needs special initialization at load time
$(COMPILE.c) -o $@ $<
$(COMPILE.c) -o $@ $<
$(COMPILE.c) -o $@ $<
$(COMPILE.c) -o $@ $<
$(COMPILE.c) -o $@ $<
$(COMPILE.c) -o $@ $<
$(COMPILE.c) -o $@ $<
$(COMPILE.c) -o $@ $<
$(COMPILE.c) -o $@ $<
$(COMPILE.c) -o $@ $<
$(COMPILE.c) -o $@ $<
$(COMPILE.c) -o $@ $<
$(COMPILE.c) -o $@ $<
$(COMPILE.c) -o $@ $<
$(COMPILE.c) -o $@ $<
$(COMPILE.c) -o $@ $<
$(COMPILE.c) -o $@ $<
$(COMPILE.c) -o $@ $<
$(COMPILE.c) -o $@ $<
$(COMPILE.c) -o $@ $<
$(COMPILE.c) -o $@ $<
$(COMPILE.c) -o $@ $<
$(COMPILE.c) -o $@ $<
$(COMPILE.c) -o $@ $<
$(COMPILE.c) -o $@ $<
$(COMPILE.c) -o $@ $<
$(COMPILE.c) -o $@ $<
$(COMPILE.c) -o $@ $<
$(COMPILE.c) -o $@ $<
$(COMPILE.c) -o $@ $<
$(COMPILE.c) -o $@ $<
$(COMPILE.c) -o $@ $<
$(COMPILE.c) -o $@ $<
$(COMPILE.c) -o $@ $<
$(COMPILE.c) -o $@ $<
$(COMPILE.c) -o $@ $<
$(COMPILE.c) -o $@ $<
$(COMPILE.c) -o $@ $<
$(COMPILE.c) -o $@ $<
$(COMPILE.c) -o $@ $<
$(COMPILE.c) -o $@ $<
$(COMPILE.c) -o $@ $<
$(COMPILE.c) -o $@ $<
$(COMPILE.c) -o $@ $<
# include library targets
SOURCES= \
$(RM) $@
$(RM) $@
$(RM) $@
$(RM) $@
$(RM) $@
# DTrace
KERBEROS_D_SRC = $(KERBEROS_D:%=%.m4)
KRB_IMPL_HDR_SRC = $(KRB_IMPL_HDR:%=%.m4)
PROVIDER_HDR = $(PROVIDER_SRC:%.d=%.h)
PROVIDER_OBJ = $(PROVIDER_SRC:%.d=%.o)
$(DYNLIB): $(PROVIDER_OBJ)
# Rules for building intermediate files
$(M4) $? > $@
$(INS.file)
CLOBBERFILES += $(KERBEROS_D)
# So lint.out won't be needlessly recreated