Makefile revision ed31198c686205a26320612d2a5dd7b26ae63a15
147N/A#
147N/A# CDDL HEADER START
147N/A#
147N/A# The contents of this file are subject to the terms of the
147N/A# Common Development and Distribution License (the "License").
147N/A# You may not use this file except in compliance with the License.
147N/A#
147N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
147N/A# or http://www.opensolaris.org/os/licensing.
147N/A# See the License for the specific language governing permissions
147N/A# and limitations under the License.
147N/A#
147N/A# When distributing Covered Code, include this CDDL HEADER in each
147N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
147N/A# If applicable, add the following below this CDDL HEADER, with the
147N/A# fields enclosed by brackets "[]" replaced with your own identifying
147N/A# information: Portions Copyright [yyyy] [name of copyright owner]
147N/A#
147N/A# CDDL HEADER END
147N/A#
2899N/A
147N/A#
147N/A# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
147N/A# Use is subject to license terms.
147N/A#
147N/A
147N/Ainclude ../../Makefile.master
147N/Ainclude ../Makefile.lib
147N/A
844N/ASUBDIRS = $(MACH)
844N/A$(BUILD64)SUBDIRS += $(MACH64)
147N/A
1258N/Aall := TARGET= all
147N/Aclean := TARGET= clean
2899N/Aclobber := TARGET= clobber
2899N/Ainstall := TARGET= install
147N/Alint := TARGET= lint
147N/A_msg := TARGET= _msg
147N/Apackage := TARGET= package
147N/A
147N/ALIBRARY= libmail.a
147N/ATEXT_DOMAIN= SUNW_OST_OSLIB
206N/AXGETFLAGS= -a
206N/APOFILE= $(LIBRARY:.a=.po)
206N/APOFILES= generic.po
206N/A
806N/ASED= sed
806N/A
806N/A.KEEP_STATE:
806N/A
806N/Aall clean clobber install lint package: $(SUBDIRS)
147N/A
147N/A# definitions for install_h target
147N/AHDRS= maillock.h libmail.h s_string.h
806N/AROOTHDRDIR= $(ROOT)/usr/include
206N/AROOTHDRS= $(HDRS:%=$(ROOTHDRDIR)/%)
147N/A
147N/A# install rule for install_h target
147N/A$(ROOTHDRDIR)/%: inc/%
147N/A $(INS.file)
147N/A
147N/Ainstall_h: $(ROOTHDRS)
1938N/A
1938N/A# definitions for check
147N/APUBHDRS= maillock.h
147N/ACHECKHDRS= $(PUBHDRS:%.h=inc/%.check)
181N/A
147N/Acheck: $(CHECKHDRS)
181N/A
147N/A$(SUBDIRS): FRC
147N/A @cd $@; pwd; $(MAKE) $(TARGET)
147N/A
147N/A_msg: $(MSGDOMAIN) $(POFILE)
$(RM) $(MSGDOMAIN)/$(POFILE)
$(CP) $(POFILE) $(MSGDOMAIN)
$(POFILE): $(POFILES)
$(RM) $@
$(CAT) $(POFILES) > $@
$(POFILES):
$(RM) messages.po
$(XGETTEXT) $(XGETFLAGS) *.[ch]* */*.[ch]*
$(SED) -e '/^# msg/d' -e '/^domain/d' messages.po > $@
$(RM) messages.po
FRC: