1# 2# CDDL HEADER START 3# 4# The contents of this file are subject to the terms of the 5# Common Development and Distribution License, Version 1.0 only 6# (the "License"). You may not use this file except in compliance 7# with the License. 8# 9# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10# or http://www.opensolaris.org/os/licensing. 11# See the License for the specific language governing permissions 12# and limitations under the License. 13# 14# When distributing Covered Code, include this CDDL HEADER in each 15# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16# If applicable, add the following below this CDDL HEADER, with the 17# fields enclosed by brackets "[]" replaced with your own identifying 18# information: Portions Copyright [yyyy] [name of copyright owner] 19# 20# CDDL HEADER END 21# 22# Copyright 2005 Sun Microsystems, Inc. All rights reserved. 23# Use is subject to license terms. 24# 25# ident "%Z%%M% %I% %E% SMI" 26 27LIBRARY= libkadmin.a 28VERS= .1 29 30CLASSES= Kadmin 31OBJECTS= $(CLASSES:%=%.o) 32 33include $(SRC)/lib/Makefile.lib 34# 35# Need this makefile to find the KRUNPATH and KMECHLIB definitions 36# 37include $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5 38 39SRCDIR= .. 40MAPFILE= ../mapfile-vers 41ROOTLIBDIR= $(ROOT)/usr/lib/krb5 42LIBS = $(DYNLIB) 43 44CPPFLAGS += -I../ -I$(SRC)/lib/krb5 \ 45 -I$(SRC)/lib/krb5/kadm5 \ 46 -I$(SRC)/lib/gss_mechs/mech_krb5/include \ 47 -I$(SRC)/lib/gss_mechs/mech_krb5/krb5/error_tables \ 48 -I$(SRC)/uts/common/gssapi/mechs/krb5/include \ 49 -I$(JAVA_ROOT)/include -I$(JAVA_ROOT)/include/solaris 50 51LDLIBS += $(KMECHLIB) -L$(ROOT)/$(KERBLIBDIR) -lkadm5clnt -lsocket -lc 52DYNFLAGS += $(KRUNPATH) -M $(MAPFILE) 53 54# 55# This library is not directly linked against by any C applications 56# (only by Java code), so we do not build a lint library. 57# 58 59.KEEP_STATE: 60 61all: $(LIBS) 62 63LINTFLAGS = -mxus 64 65lint: lintcheck 66 67$(DYNLIB): $(MAPFILE) 68 69include $(SRC)/lib/Makefile.targ 70 71