xref: /titanic_41/usr/src/lib/libgss/Makefile (revision 70025d765b044c6d8594bb965a2247a61e991a99)
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, Version 1.0 only
6# (the "License").  You may not use this file except in compliance
7# with the License.
8#
9# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10# or http://www.opensolaris.org/os/licensing.
11# See the License for the specific language governing permissions
12# and limitations under the License.
13#
14# When distributing Covered Code, include this CDDL HEADER in each
15# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16# If applicable, add the following below this CDDL HEADER, with the
17# fields enclosed by brackets "[]" replaced with your own identifying
18# information: Portions Copyright [yyyy] [name of copyright owner]
19#
20# CDDL HEADER END
21#
22#
23# Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25#
26#pragma ident	"%Z%%M%	%I%	%E% SMI"
27#
28# lib/libgss/Makefile
29#
30include ../Makefile.lib
31
32LIBRARY=	libgss.a
33
34# defines the duplicate sources we share with gsscred
35GSSCRED_DIR = $(SRC)/cmd/gss/gsscred
36DUPLICATE_SRC = gsscred_utils.c gsscred_file.c # gen_oids.c
37CLEAN_SRC = $(DUPLICATE_SRC) gen_oids.c
38
39SUBDIRS	= $(MACH)
40$(BUILD64)SUBDIRS +=	$(MACH64)
41
42ROOTDIRS= $(ROOT)/usr/include
43GSSMECH_DIR=	$(ROOT)/usr/lib/gss
44
45all :=		TARGET= all
46clean :=	TARGET= clean
47clobber :=	TARGET= clobber
48install :=	TARGET= install
49lint :=         TARGET= lint
50
51POFILE =	$(LIBRARY:.a=.po)
52XGETFLAGS+=	-a
53MSGFILES =	`$(GREP) -l gettext *.[ch]`
54
55.KEEP_STATE:
56
57all clean clobber install:  spec .WAIT $(SUBDIRS)
58
59lint: $(SUBDIRS)
60
61install: $(GSSMECH_DIR) all .WAIT $(SUBDIRS)
62
63check install_h:
64
65_msg:	$(MSGDOMAINPOFILE)
66
67$(POFILE):	pofile_MSGFILES
68
69$(GSSMECH_DIR):
70	$(INS.dir)
71
72$(SUBDIRS) spec:   FRC
73	@cd $@; pwd; $(MAKE) $(TARGET)
74
75FRC:
76
77# include library targets
78include ../Makefile.targ
79
80# EXPORT DELETE START
81# Special target to clean up the source tree for export distribution
82# Warning: This target changes the source tree
83
84EXPORT_SRC:
85	$(RM) Makefile+ g_seal.c+ g_unseal.c+
86	sed -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \
87		< g_seal.c > g_seal.c+
88	$(MV) g_seal.c+ g_seal.c
89	sed -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \
90		< g_unseal.c > g_unseal.c+
91	$(MV) g_unseal.c+ g_unseal.c
92	sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
93		< Makefile > Makefile+
94	$(MV) Makefile+ Makefile
95	$(CHMOD) 444 Makefile g_seal.c g_unseal.c
96
97# EXPORT DELETE END
98
99
100include $(SRC)/Makefile.msg.targ
101