xref: /illumos-gate/usr/src/lib/gss_mechs/mech_krb5/Makefile (revision 2a8bcb4efb45d99ac41c94a75c396b362c414f7f)
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 2007 Sun Microsystems, Inc.  All rights reserved.
23# Use is subject to license terms.
24#
25
26#
27# This make file will build mech_krb5.so.1. This shared object
28# contains all the functionality needed to support the Kereros V5 GSS-API
29# mechanism. No other Kerberos libraries are needed.
30#
31
32include ../../../Makefile.master
33
34SUBDIRS =	$(MACH)
35$(BUILD64)SUBDIRS += $(MACH64)
36
37# include library definitions
38include ../../Makefile.lib
39
40GREP= find . \( -name SCCS -prune -o -name '*.[ch]' \) -print | sort | xargs grep
41
42sparcv9_C_PICFLAGS =  $(sparcv9_C_BIGPICFLAGS)
43TEXT_DOMAIN = SUNW_OST_NETRPC
44POFILE = mech_krb5.po
45POFILES = generic.po
46
47HDRS=
48
49CHECKHDRS= $(HDRS:%.h=%.check)
50
51$(ROOTDIRS)/%:  %
52	$(INS.file)
53
54all :=          TARGET= all
55clean :=        TARGET= clean
56clobber :=      TARGET= clobber
57install :=      TARGET= install
58
59.KEEP_STATE:
60
61all clean:    $(SUBDIRS)
62
63install: install_dir all .WAIT $(SUBDIRS)
64
65# override ROOTLIBDIR and ROOTLINKS
66ROOTLIBDIR=     $(ROOT)/usr/lib/gss
67
68install_dir:	$(ROOTLIBDIR) $(BUILD64)
69
70install_h:
71
72clobber: $(SUBDIRS)
73	$(RM) $(POFILE) $(POFILES)
74
75check: $(CHECKHDRS)
76
77do_pkg:
78	cd pkg ; pwd ; $(MAKE) install
79
80$(ROOTLIBDIR):
81	$(INS.dir)
82
83
84# include library targets
85# include ../../Makefile.targ
86
87$(SUBDIRS):	FRC
88	@cd $@; pwd; $(MAKE) $(TARGET)
89
90FRC:
91
92_msg: $(MSGDOMAIN) .WAIT $(POFILE)
93	$(RM) $(MSGDOMAIN)/$(POFILE)
94	$(CP) $(POFILE) $(MSGDOMAIN)
95
96$(POFILE): $(DERIVED_FILES) .WAIT $(POFILES)
97	$(RM) $@
98	$(CAT) $(POFILES) > $@
99
100generic.po: FRC
101	$(RM) messages.po
102	-$(XGETTEXT) $(XGETFLAGS) `$(GREP) -s -l gettext`
103	$(SED) "/^domain/d" messages.po > $@
104	$(RM) messages.po
105
106$(MSGDOMAIN):
107	$(INS.dir)
108