xref: /titanic_50/usr/src/lib/libgss/Makefile (revision 210938ebfcf386cf4819f16c23979173b0d78097)
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
30LIBRARY=	libgss.a
31
32# defines the duplicate sources we share with gsscred
33GSSCRED_DIR = $(SRC)/cmd/gss/gsscred
34DUPLICATE_SRC = gsscred_utils.c gsscred_file.c # gen_oids.c
35CLEAN_SRC = $(DUPLICATE_SRC) gen_oids.c
36
37SUBDIRS	= $(MACH)
38$(BUILD64)SUBDIRS +=	$(MACH64)
39
40ROOTDIRS= $(ROOT)/usr/include
41GSSMECH_DIR=	$(ROOT)/usr/lib/gss
42
43all :=		TARGET= all
44clean :=	TARGET= clean
45clobber :=	TARGET= clobber
46install :=	TARGET= install
47lint :=         TARGET= lint
48
49POFILE =	$(LIBRARY:.a=.po)
50XGETFLAGS+=	-a
51MSGFILES =	`$(GREP) -l gettext *.[ch]`
52
53.KEEP_STATE:
54
55all clean clobber lint:  $(SUBDIRS)
56
57install: $(GSSMECH_DIR) all .WAIT $(SUBDIRS)
58
59check install_h:
60
61_msg:	$(MSGDOMAINPOFILE)
62
63$(POFILE):	pofile_MSGFILES
64
65$(GSSMECH_DIR):
66	$(INS.dir)
67
68$(SUBDIRS):   FRC
69	@cd $@; pwd; $(MAKE) $(TARGET)
70
71FRC:
72
73# include library targets
74include ../Makefile.targ
75
76# EXPORT DELETE START
77# Special target to clean up the source tree for export distribution
78# Warning: This target changes the source tree
79
80EXPORT_SRC:
81	$(RM) Makefile+ g_seal.c+ g_unseal.c+
82	sed -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \
83		< g_seal.c > g_seal.c+
84	$(MV) g_seal.c+ g_seal.c
85	sed -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \
86		< g_unseal.c > g_unseal.c+
87	$(MV) g_unseal.c+ g_unseal.c
88	sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
89		< Makefile > Makefile+
90	$(MV) Makefile+ Makefile
91	$(CHMOD) 444 Makefile g_seal.c g_unseal.c
92
93# EXPORT DELETE END
94
95
96include $(SRC)/Makefile.msg.targ
97