xref: /illumos-gate/usr/src/lib/pam_modules/krb5/Makefile (revision f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01)
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 2006 Sun Microsystems, Inc.  All rights reserved.
23# Use is subject to license terms.
24#
25# ident	"%Z%%M%	%I%	%E% SMI"
26#
27
28include		../../Makefile.lib
29
30TEXT_DOMAIN=	SUNW_OST_SYSOSPAM
31POFILE=		pam_krb5.po
32MSGFILES=	krb5_acct_mgmt.c krb5_authenticate.c krb5_password.c \
33		krb5_setcred.c
34
35SUBDIRS=	$(MACH)
36$(BUILD64)SUBDIRS +=	$(MACH64)
37
38all :=		TARGET= all
39clean :=	TARGET= clean
40clobber :=	TARGET= clobber
41install :=	TARGET= install
42lint :=		TARGET= lint
43
44# EXPORT DELETE START
45# CRYPT DELETE START
46EXPORT_SRC :=	TARGET= EXPORT_SRC
47CRYPT_SRC :=	TARGET= CRYPT_SRC
48# CRYPT DELETE END
49# EXPORT DELETE END
50
51.KEEP_STATE:
52
53all clean clobber install lint: $(SUBDIRS)
54
55$(POFILE):	$(MSGFILES)
56	$(BUILDPO.msgfiles)
57
58_msg:		$(MSGDOMAINPOFILE)
59
60$(SUBDIRS):	FRC
61	@cd $@; pwd; $(MAKE) $(TARGET)
62
63# EXPORT DELETE START
64# CRYPT DELETE START
65# Special target to clean up the source tree for export distribution
66# Warning: This target changes the source tree
67EXPORT_SRC:
68	$(SED) -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d"	\
69		< Makefile.com > Makefile.com+
70	$(MV) Makefile.com+ Makefile.com
71	$(CHMOD) 444 Makefile.com
72	$(SED) -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d"	\
73		< Makefile > Makefile+
74	$(MV) Makefile+ Makefile
75	$(CHMOD) 444 Makefile
76
77CRYPT_SRC:
78	$(SED) -e "/^# CRYPT DELETE START/,/^# CRYPT DELETE END/d"	\
79		< Makefile.com \
80	    | $(SED) -e "/EXPORT DELETE/d" \
81		> Makefile.com+
82	$(MV) Makefile.com+ Makefile.com
83	$(CHMOD) 444 Makefile.com
84	$(SED) -e "/^# CRYPT DELETE START/,/^# CRYPT DELETE END/d"	\
85		< Makefile \
86	    | $(SED) -e "/EXPORT DELETE/d" \
87		> Makefile+
88	$(MV) Makefile+ Makefile
89	$(CHMOD) 444 Makefile
90# CRYPT DELETE END
91# EXPORT DELETE END
92
93FRC:
94
95include $(SRC)/Makefile.msg.targ
96include ../../Makefile.targ
97