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