17c478bd9Sstevel@tonic-gate#
267e3a03eSrie# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
37c478bd9Sstevel@tonic-gate# Use is subject to license terms.
47c478bd9Sstevel@tonic-gate#
57c478bd9Sstevel@tonic-gate# Makefile.mech_krb5, global definitions for dealing with Kerberos V5
67c478bd9Sstevel@tonic-gate# plug in.
77c478bd9Sstevel@tonic-gate
87c478bd9Sstevel@tonic-gate# 32 bit library directories
97c478bd9Sstevel@tonic-gateKLIBDIR = /usr/lib/gss
107c478bd9Sstevel@tonic-gateROOT_KLIBDIR = $(ROOT)/$(KLIBDIR)
117c478bd9Sstevel@tonic-gate
127c478bd9Sstevel@tonic-gate# 64 bit library directories
137c478bd9Sstevel@tonic-gateKLIBDIR64 = /usr/lib/$(MACH64)/gss
147c478bd9Sstevel@tonic-gateROOT_KLIBDIR64 = $(ROOT)/$(KLIBDIR64)
157c478bd9Sstevel@tonic-gate
167c478bd9Sstevel@tonic-gate# Kerberos V GSS-API Mechanism library
177c478bd9Sstevel@tonic-gateKMECHLIB = $(ROOT)$(KLIBDIR)/mech_krb5.so
187c478bd9Sstevel@tonic-gateKLIB = $(KMECHLIB)
197c478bd9Sstevel@tonic-gateKMECHLIB64 = $(ROOT)/$(KLIBDIR64)/mech_krb5.so
207c478bd9Sstevel@tonic-gate
217c478bd9Sstevel@tonic-gate# KADM5 client library
227c478bd9Sstevel@tonic-gateKERBLIBDIR = /usr/lib/krb5
237c478bd9Sstevel@tonic-gateKERBLIBDIR64 = /usr/lib/krb5/$(MACH64)
247c478bd9Sstevel@tonic-gateKCLNTLIB = $(ROOT)$(KERBLIBDIR)/libkadm5clnt.so
257c478bd9Sstevel@tonic-gateKCLNTLIB64 = $(ROOT)$(KERBLIBDIR64)/libkadm5clnt.so
267c478bd9Sstevel@tonic-gate
277c478bd9Sstevel@tonic-gate# Run-time library seach path
2867e3a03eSrieKRUNPATH = -R$(KLIBDIR)
2967e3a03eSrieKRUNPATH64 = -R$(KLIBDIR64)
3067e3a03eSrieKERBRUNPATH = -R$(KERBLIBDIR)
3167e3a03eSrieKERBRUNPATH64 = -R$(KERBLIBDIR64)
327c478bd9Sstevel@tonic-gate
337c478bd9Sstevel@tonic-gateCPPFLAGS +=	-DKRB5_DNS_LOOKUP \
347c478bd9Sstevel@tonic-gate		-DKRB5_DNS_LOOKUP_KDC
357c478bd9Sstevel@tonic-gate
36*b5291a33S# Ensure assert()s are not in the non-debug bits
37*b5291a33S$(RELEASE_BUILD)CPPFLAGS += -DNDEBUG
38