xref: /titanic_50/usr/src/lib/krb5/plugins/preauth/pkinit/Makefile.com (revision 7014882c6a3672fd0e5d60200af8643ae53c5928)
1159d09a2SMark Phalan#
2159d09a2SMark Phalan# CDDL HEADER START
3159d09a2SMark Phalan#
4159d09a2SMark Phalan# The contents of this file are subject to the terms of the
5159d09a2SMark Phalan# Common Development and Distribution License (the "License").
6159d09a2SMark Phalan# You may not use this file except in compliance with the License.
7159d09a2SMark Phalan#
8159d09a2SMark Phalan# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9159d09a2SMark Phalan# or http://www.opensolaris.org/os/licensing.
10159d09a2SMark Phalan# See the License for the specific language governing permissions
11159d09a2SMark Phalan# and limitations under the License.
12159d09a2SMark Phalan#
13159d09a2SMark Phalan# When distributing Covered Code, include this CDDL HEADER in each
14159d09a2SMark Phalan# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15159d09a2SMark Phalan# If applicable, add the following below this CDDL HEADER, with the
16159d09a2SMark Phalan# fields enclosed by brackets "[]" replaced with your own identifying
17159d09a2SMark Phalan# information: Portions Copyright [yyyy] [name of copyright owner]
18159d09a2SMark Phalan#
19159d09a2SMark Phalan# CDDL HEADER END
20159d09a2SMark Phalan#
21159d09a2SMark Phalan#
22a026686cS# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
23159d09a2SMark Phalan# Use is subject to license terms.
24159d09a2SMark Phalan#
25159d09a2SMark Phalan#
26159d09a2SMark Phalan
27159d09a2SMark PhalanLIBRARY= pkinit.a
28159d09a2SMark PhalanVERS= .1
29159d09a2SMark Phalan
30159d09a2SMark PhalanPKINIT_OBJS= \
31159d09a2SMark Phalan	pkinit_accessor.o \
32159d09a2SMark Phalan	pkinit_clnt.o \
33159d09a2SMark Phalan	pkinit_crypto_openssl.o \
34159d09a2SMark Phalan	pkinit_identity.o \
35159d09a2SMark Phalan	pkinit_lib.o \
36159d09a2SMark Phalan	pkinit_matching.o \
37159d09a2SMark Phalan	pkinit_profile.o \
38159d09a2SMark Phalan	pkinit_srv.o
39159d09a2SMark Phalan
40159d09a2SMark Phalan
41159d09a2SMark PhalanOBJECTS= $(PKINIT_OBJS)
42159d09a2SMark Phalan
43159d09a2SMark Phalan# include library definitions
44159d09a2SMark Phalaninclude $(SRC)/lib/krb5/Makefile.lib
45159d09a2SMark Phalan
46159d09a2SMark PhalanSRCS= $(PKINIT_OBJS:%.o=../%.c)
47159d09a2SMark Phalan
48159d09a2SMark PhalanLIBS=		$(DYNLIB)
49159d09a2SMark Phalan
50159d09a2SMark Phalaninclude $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5
51159d09a2SMark Phalan
52159d09a2SMark PhalanPOFILE = $(LIBRARY:%.a=%.po)
53159d09a2SMark PhalanPOFILES = generic.po
54159d09a2SMark Phalan
55159d09a2SMark Phalan#override liblink
56159d09a2SMark PhalanINS.liblink=	-$(RM) $@; $(SYMLINK) $(LIBLINKS)$(VERS) $@
57159d09a2SMark Phalan
58159d09a2SMark Phalan
59bda1f129SMark PhalanCPPFLAGS += 	-I$(SRC)/lib/krb5 \
60159d09a2SMark Phalan		-I$(SRC)/lib/krb5/kdb \
61159d09a2SMark Phalan		-I$(SRC)/lib/gss_mechs/mech_krb5/include \
62159d09a2SMark Phalan		-I$(SRC)/lib/gss_mechs/mech_krb5/krb5/os \
63159d09a2SMark Phalan		-I$(SRC)/lib/gss_mechs/mech_krb5/include/krb5 \
64159d09a2SMark Phalan		-I$(SRC)/uts/common/gssapi/include/ \
65159d09a2SMark Phalan		-I$(SRC)/uts/common/gssapi/mechs/krb5/include \
66159d09a2SMark Phalan		-I$(SRC)
67159d09a2SMark Phalan
68*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-uninitialized
69*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-unused-function
70*7014882cSRichard Lowe
71159d09a2SMark PhalanCFLAGS +=	$(CCVERBOSE) -I..
72bda1f129SMark PhalanDYNFLAGS +=	$(KRUNPATH) $(KMECHLIB) -znodelete
73bda1f129SMark PhalanLDLIBS +=	-L $(ROOTLIBDIR) -lcrypto -lc
74159d09a2SMark Phalan
75159d09a2SMark PhalanROOTLIBDIR= $(ROOT)/usr/lib/krb5/plugins/preauth
76159d09a2SMark Phalan
77159d09a2SMark Phalan$(ROOTLIBDIR):
78159d09a2SMark Phalan	$(INS.dir)
79159d09a2SMark Phalan
80159d09a2SMark Phalan.KEEP_STATE:
81159d09a2SMark Phalan
82159d09a2SMark Phalanall:	$(LIBS)
83159d09a2SMark Phalan
84159d09a2SMark Phalanlint:	lintcheck
85159d09a2SMark Phalan
86159d09a2SMark Phalan# include library targets
87159d09a2SMark Phalaninclude $(SRC)/lib/krb5/Makefile.targ
88159d09a2SMark Phalan
89159d09a2SMark PhalanFRC:
90159d09a2SMark Phalan
91159d09a2SMark Phalangeneric.po: FRC
92159d09a2SMark Phalan	$(RM) messages.po
93159d09a2SMark Phalan	$(XGETTEXT) $(XGETFLAGS) `$(GREP) -l gettext ../*.[ch]`
94159d09a2SMark Phalan	$(SED) "/^domain/d" messages.po > $@
95159d09a2SMark Phalan	$(RM) messages.po
96