126947304SEvan Yan#
226947304SEvan Yan# CDDL HEADER START
326947304SEvan Yan#
426947304SEvan Yan# The contents of this file are subject to the terms of the
526947304SEvan Yan# Common Development and Distribution License (the "License").
626947304SEvan Yan# You may not use this file except in compliance with the License.
726947304SEvan Yan#
826947304SEvan Yan# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
926947304SEvan Yan# or http://www.opensolaris.org/os/licensing.
1026947304SEvan Yan# See the License for the specific language governing permissions
1126947304SEvan Yan# and limitations under the License.
1226947304SEvan Yan#
1326947304SEvan Yan# When distributing Covered Code, include this CDDL HEADER in each
1426947304SEvan Yan# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1526947304SEvan Yan# If applicable, add the following below this CDDL HEADER, with the
1626947304SEvan Yan# fields enclosed by brackets "[]" replaced with your own identifying
1726947304SEvan Yan# information: Portions Copyright [yyyy] [name of copyright owner]
1826947304SEvan Yan#
1926947304SEvan Yan# CDDL HEADER END
2026947304SEvan Yan#
2126947304SEvan Yan#
2226947304SEvan Yan# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
2326947304SEvan Yan# Use is subject to license terms.
2426947304SEvan Yan#
2526947304SEvan Yan#
2626947304SEvan Yan
2726947304SEvan Yaninclude		../../../Makefile.master
2826947304SEvan Yan
2926947304SEvan YanSUBDIRS =	$(MACH)
3026947304SEvan Yan$(BUILD64)SUBDIRS += $(MACH64)
3126947304SEvan Yan
3226947304SEvan Yanall :=		TARGET= all
3326947304SEvan Yanclean :=	TARGET= clean
3426947304SEvan Yanclobber :=	TARGET= clobber
3526947304SEvan Yandelete :=	TARGET= delete
3626947304SEvan Yaninstall :=	TARGET= install
3726947304SEvan Yan_msg :=		TARGET= _msg
3826947304SEvan Yanpackage :=	TARGET= package
3926947304SEvan Yan
4026947304SEvan YanTEXT_DOMAIN=	SUNW_OST_OSLIB
4126947304SEvan YanXGETFLAGS=	-a -x shp.xcl
4226947304SEvan YanPOFILE=		shp.po
4326947304SEvan YanPOFILES=	generic.po
4426947304SEvan Yan
4526947304SEvan YanSED=	sed
4626947304SEvan YanGREP=	grep
4726947304SEvan Yan
4826947304SEvan Yan.KEEP_STATE:
4926947304SEvan Yan
50*241c90a0SRichard Loweall clean delete install package: $(SUBDIRS)
51b6805bf7SGordon Rossclobber: $(SUBDIRS)
52b6805bf7SGordon Ross	$(RM) $(POFILE) $(POFILES)
5326947304SEvan Yan
54*241c90a0SRichard Lowe
5526947304SEvan Yan$(SUBDIRS):	FRC
5626947304SEvan Yan	@cd $@; pwd; $(MAKE) $(TARGET)
5726947304SEvan Yan
5826947304SEvan Yan_msg:	$(MSGDOMAIN) $(POFILE)
5926947304SEvan Yan	$(RM) $(MSGDOMAIN)/$(POFILE)
6026947304SEvan Yan	$(CP) $(POFILE) $(MSGDOMAIN)
6126947304SEvan Yan
6226947304SEvan Yan$(POFILE):	$(POFILES)
6326947304SEvan Yan	$(RM) $@
6426947304SEvan Yan	$(CAT) $(POFILES) > $@
6526947304SEvan Yan
6626947304SEvan Yan$(POFILES):
6726947304SEvan Yan	$(RM) messages.po
6826947304SEvan Yan	$(XGETTEXT) $(XGETFLAGS) `$(GREP) -l gettext *.[ch]* */*.[ch]*`
6926947304SEvan Yan	$(SED) -e '/^# msg/d' -e '/^domain/d' messages.po > $@
7026947304SEvan Yan	$(RM) messages.po
7126947304SEvan Yan
7226947304SEvan YanFRC:
73