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 (the "License"). 6# You may not use this file except in compliance with the License. 7# 8# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9# or http://www.opensolaris.org/os/licensing. 10# See the License for the specific language governing permissions 11# and limitations under the License. 12# 13# When distributing Covered Code, include this CDDL HEADER in each 14# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15# If applicable, add the following below this CDDL HEADER, with the 16# fields enclosed by brackets "[]" replaced with your own identifying 17# information: Portions Copyright [yyyy] [name of copyright owner] 18# 19# CDDL HEADER END 20# 21# 22# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 23# Use is subject to license terms. 24# 25# 26 27LIBRARY= pkinit.a 28VERS= .1 29 30PKINIT_OBJS= \ 31 pkinit_accessor.o \ 32 pkinit_clnt.o \ 33 pkinit_crypto_openssl.o \ 34 pkinit_identity.o \ 35 pkinit_lib.o \ 36 pkinit_matching.o \ 37 pkinit_profile.o \ 38 pkinit_srv.o 39 40 41OBJECTS= $(PKINIT_OBJS) 42 43# include library definitions 44include $(SRC)/lib/krb5/Makefile.lib 45 46SRCS= $(PKINIT_OBJS:%.o=../%.c) 47 48LIBS= $(DYNLIB) 49 50include $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5 51 52POFILE = $(LIBRARY:%.a=%.po) 53POFILES = generic.po 54 55#override liblink 56INS.liblink= -$(RM) $@; $(SYMLINK) $(LIBLINKS)$(VERS) $@ 57 58include $(SRC)/lib/openssl/Makefile.openssl 59 60CPPFLAGS += $(OPENSSL_CPPFLAGS) \ 61 -I$(SRC)/lib/krb5 \ 62 -I$(SRC)/lib/krb5/kdb \ 63 -I$(SRC)/lib/gss_mechs/mech_krb5/include \ 64 -I$(SRC)/lib/gss_mechs/mech_krb5/krb5/os \ 65 -I$(SRC)/lib/gss_mechs/mech_krb5/include/krb5 \ 66 -I$(SRC)/uts/common/gssapi/include/ \ 67 -I$(SRC)/uts/common/gssapi/mechs/krb5/include \ 68 -I$(SRC) 69 70CFLAGS += $(CCVERBOSE) -I.. 71DYNFLAGS += $(KRUNPATH) $(KMECHLIB) $(OPENSSL_DYNFLAGS) -znodelete 72LDLIBS += -L $(ROOTLIBDIR) $(OPENSSL_LDFLAGS) -lcrypto -lc 73 74ROOTLIBDIR= $(ROOT)/usr/lib/krb5/plugins/preauth 75 76$(ROOTLIBDIR): 77 $(INS.dir) 78 79.KEEP_STATE: 80 81all: $(LIBS) 82 83lint: lintcheck 84 85# include library targets 86include $(SRC)/lib/krb5/Makefile.targ 87 88FRC: 89 90generic.po: FRC 91 $(RM) messages.po 92 $(XGETTEXT) $(XGETFLAGS) `$(GREP) -l gettext ../*.[ch]` 93 $(SED) "/^domain/d" messages.po > $@ 94 $(RM) messages.po 95