xref: /illumos-gate/usr/src/lib/rpcsec_gss/Makefile (revision 03831d35f7499c87d51205817c93e9a8d42c4bae)
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 (c) 1995,1997, by Sun Microsystems, Inc.
24# All rights reserved.
25#
26#pragma ident	"%Z%%M%	%I%	%E% SMI"
27#
28include ../../Makefile.master
29
30SUBDIRS= $(MACH) $(BUILD64) $(MACH64)
31
32# include library definitions
33include ../Makefile.lib
34
35#override INS.liblink
36INS.liblink=	-$(RM) $@; $(SYMLINK) $(LIBLINKPATH)$(LIBLINKS)$(VERS) $@
37
38HDRS=
39
40CHECKHDRS= $(HDRS:%.h=%.check)
41
42#install rule
43$(ROOTDIRS)/%: %
44	$(INS.file)
45
46all :=		TARGET= all
47clean :=	TARGET= clean
48clobber :=	TARGET= clobber
49install :=	TARGET= install
50lint :=		TARGET= lint
51_msg :=         TARGET= _msg
52
53LIBRARY= 	rpcsec.a
54TEXT_DOMAIN=	SUNW_OST_NETRPC
55XGETFLAGS=	-a
56POFILE=		$(LIBRARY:.a=.po)
57POFILES=	generic.po
58
59.KEEP_STATE:
60
61all: .WAIT $(SUBDIRS)
62
63lint:   .WAIT $(SUBDIRS)
64
65install: all .WAIT $(SUBDIRS)
66
67install_h:
68
69clean clobber:  $(SUBDIRS)
70
71check: $(CHECKHDRS)
72
73# include library targets
74include ../Makefile.targ
75
76$(MACH) $(MACH64):	FRC
77	@cd $@; pwd; $(MAKE) $(TARGET)
78
79_msg:	$(MSGDOMAIN) $(POFILE)
80	$(RM) $(MSGDOMAIN)/$(POFILE)
81	$(CP) $(POFILE) $(MSGDOMAIN)
82
83$(POFILE):	.WAIT $(POFILES)
84	$(RM) $@
85	$(CAT) $(POFILES) > $@
86
87$(POFILES):
88	$(RM) messages.po
89	$(XGETTEXT) $(XGETFLAGS) `$(GREP) -l gettext *.[ch]`
90	$(SED) -e '/^# msg/d' -e '/^domain/d' messages.po > $@
91	$(RM) messages.po
92
93catalog:
94
95$(MSGDOMAIN):
96	$(INS.dir)
97
98FRC:
99