import less(1)
[unleashed/tickless.git] / usr / src / lib / krb5 / plugins / preauth / pkinit / Makefile.com
bloba64def03e329da9bd2b4ac9a2fa54baee7886984
2 # CDDL HEADER START
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.
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.
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]
19 # CDDL HEADER END
22 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
23 # Use is subject to license terms.
27 LIBRARY= pkinit.a
28 VERS= .1
30 PKINIT_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
41 OBJECTS= $(PKINIT_OBJS)
43 # include library definitions
44 include $(SRC)/lib/krb5/Makefile.lib
46 SRCS= $(PKINIT_OBJS:%.o=../%.c)
48 LIBS=           $(DYNLIB)
50 include $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5
52 POFILE = $(LIBRARY:%.a=%.po)
53 POFILES = generic.po
55 #override liblink
56 INS.liblink=    -$(RM) $@; $(SYMLINK) $(LIBLINKS)$(VERS) $@
59 CPPFLAGS +=     -I$(SRC)/lib/krb5 \
60                 -I$(SRC)/lib/krb5/kdb \
61                 -I$(SRC)/lib/gss_mechs/mech_krb5/include \
62                 -I$(SRC)/lib/gss_mechs/mech_krb5/krb5/os \
63                 -I$(SRC)/lib/gss_mechs/mech_krb5/include/krb5 \
64                 -I$(SRC)/uts/common/gssapi/include/ \
65                 -I$(SRC)/uts/common/gssapi/mechs/krb5/include \
66                 -I$(SRC)
68 CERRWARN        += -Wno-uninitialized
69 CERRWARN        += -Wno-unused-function
71 CFLAGS +=       -I..
72 DYNFLAGS +=     $(KRUNPATH) $(KMECHLIB) -Wl,-znodelete
73 LDLIBS +=       -L $(ROOTLIBDIR) -lcrypto -lc
75 ROOTLIBDIR= $(ROOT)/usr/lib/krb5/plugins/preauth
77 $(ROOTLIBDIR):
78         $(INS.dir)
80 .KEEP_STATE:
82 all:    $(LIBS)
85 # include library targets
86 include $(SRC)/lib/krb5/Makefile.targ
88 FRC:
90 generic.po: FRC
91         $(RM) messages.po
92         $(XGETTEXT) $(XGETFLAGS) `$(GREP) -l gettext ../*.[ch]`
93         $(SED) "/^domain/d" messages.po > $@
94         $(RM) messages.po