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# 23# Copyright 2004 Sun Microsystems, Inc. All rights reserved. 24# Use is subject to license terms. 25# 26# ident "%Z%%M% %I% %E% SMI" 27# 28 29LIBRARY= libkadmin.a 30VERS= .1 31 32CLASSES= Kadmin 33OBJECTS= $(CLASSES:%=%.o) 34 35include $(SRC)/lib/Makefile.lib 36# 37# Need this makefile to find the KRUNPATH and KMECHLIB definitions 38# 39include $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5 40 41SRCDIR= .. 42MAPFILE= ../mapfile-vers 43ROOTLIBDIR= $(ROOT)/usr/lib/krb5 44LIBS = $(DYNLIB) 45 46CPPFLAGS += -I../ -I$(SRC)/lib/krb5 \ 47 -I$(SRC)/lib/gss_mechs/mech_krb5/include \ 48 -I$(SRC)/lib/gss_mechs/mech_krb5/krb5/error_tables \ 49 -I$(SRC)/uts/common/gssapi/mechs/krb5/include \ 50 -I$(JAVA_ROOT)/include -I$(JAVA_ROOT)/include/solaris 51 52LDLIBS += $(KMECHLIB) -L$(ROOT)/$(KERBLIBDIR) -lkadm5clnt -lsocket -lc 53DYNFLAGS += $(KRUNPATH) -M $(MAPFILE) 54 55# 56# This library is not directly linked against by any C applications 57# (only by Java code), so we do not build a lint library. 58# 59 60.KEEP_STATE: 61 62all: $(LIBS) 63 64LINTFLAGS = -mxus 65 66lint: lintcheck 67 68$(DYNLIB): $(MAPFILE) 69 70include $(SRC)/lib/Makefile.targ 71 72