Makefile revision 9444c26f4faabda140242c3986089704c4073ced
199767f8919635c4928607450d9e0abb932109ceToomas Soome#
199767f8919635c4928607450d9e0abb932109ceToomas Soome# CDDL HEADER START
199767f8919635c4928607450d9e0abb932109ceToomas Soome#
199767f8919635c4928607450d9e0abb932109ceToomas Soome# The contents of this file are subject to the terms of the
199767f8919635c4928607450d9e0abb932109ceToomas Soome# Common Development and Distribution License (the "License").
199767f8919635c4928607450d9e0abb932109ceToomas Soome# You may not use this file except in compliance with the License.
199767f8919635c4928607450d9e0abb932109ceToomas Soome#
199767f8919635c4928607450d9e0abb932109ceToomas Soome# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
199767f8919635c4928607450d9e0abb932109ceToomas Soome# or http://www.opensolaris.org/os/licensing.
199767f8919635c4928607450d9e0abb932109ceToomas Soome# See the License for the specific language governing permissions
199767f8919635c4928607450d9e0abb932109ceToomas Soome# and limitations under the License.
199767f8919635c4928607450d9e0abb932109ceToomas Soome#
199767f8919635c4928607450d9e0abb932109ceToomas Soome# When distributing Covered Code, include this CDDL HEADER in each
199767f8919635c4928607450d9e0abb932109ceToomas Soome# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
199767f8919635c4928607450d9e0abb932109ceToomas Soome# If applicable, add the following below this CDDL HEADER, with the
199767f8919635c4928607450d9e0abb932109ceToomas Soome# fields enclosed by brackets "[]" replaced with your own identifying
199767f8919635c4928607450d9e0abb932109ceToomas Soome# information: Portions Copyright [yyyy] [name of copyright owner]
199767f8919635c4928607450d9e0abb932109ceToomas Soome#
199767f8919635c4928607450d9e0abb932109ceToomas Soome# CDDL HEADER END
199767f8919635c4928607450d9e0abb932109ceToomas Soome#
199767f8919635c4928607450d9e0abb932109ceToomas Soome#
199767f8919635c4928607450d9e0abb932109ceToomas Soome# Copyright 2010 Sun Microsystems, Inc. All rights reserved.
199767f8919635c4928607450d9e0abb932109ceToomas Soome# Use is subject to license terms.
199767f8919635c4928607450d9e0abb932109ceToomas Soome#
199767f8919635c4928607450d9e0abb932109ceToomas Soome#
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soomeinclude ../../Makefile.master
199767f8919635c4928607450d9e0abb932109ceToomas Soomeinclude ../Makefile.lib
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas SoomeMANIFEST= client.xml
199767f8919635c4928607450d9e0abb932109ceToomas SoomeMANIFESTDIR= $(ROOT)/lib/svc/manifest/network/dns
199767f8919635c4928607450d9e0abb932109ceToomas SoomeROOTMANIFEST= $(MANIFEST:%=$(MANIFESTDIR)/%)
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soome$(ROOTMANIFEST) := FILEMODE = 444
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas SoomeCHKMANIFEST= $(MANIFEST:%.xml=%.xmlchk)
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas SoomeSUBDIRS= include $(MACH)
199767f8919635c4928607450d9e0abb932109ceToomas Soome$(BUILD64)SUBDIRS += $(MACH64)
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soomeall := TARGET= all
199767f8919635c4928607450d9e0abb932109ceToomas Soomeclean := TARGET= clean
199767f8919635c4928607450d9e0abb932109ceToomas Soomeclobber := TARGET= clobber
199767f8919635c4928607450d9e0abb932109ceToomas Soomeinstall := TARGET= install
199767f8919635c4928607450d9e0abb932109ceToomas Soomelint := TARGET= lint
199767f8919635c4928607450d9e0abb932109ceToomas Soome_msg := TARGET= _msg
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas SoomeLIBRARY= libresolv.a
199767f8919635c4928607450d9e0abb932109ceToomas SoomeTEXT_DOMAIN= SUNW_OST_OSLIB
199767f8919635c4928607450d9e0abb932109ceToomas SoomeXGETFLAGS= -a
199767f8919635c4928607450d9e0abb932109ceToomas SoomePOFILE= $(LIBRARY:.a=.po)
199767f8919635c4928607450d9e0abb932109ceToomas SoomePOFILES= generic.po
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas SoomeSED= sed
199767f8919635c4928607450d9e0abb932109ceToomas SoomeGREP= grep
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soome.KEEP_STATE:
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soomeall clean clobber lint: $(SUBDIRS)
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soomeinstall: $(SUBDIRS) $(ROOTMANIFEST)
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soome$(ROOTMANIFEST): $(MANIFESTDIR)
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soome$(MANIFESTDIR):
199767f8919635c4928607450d9e0abb932109ceToomas Soome $(INS.dir)
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soome$(MANIFESTDIR)/%: %
199767f8919635c4928607450d9e0abb932109ceToomas Soome $(INS.file)
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soome# install rule for install_h target
199767f8919635c4928607450d9e0abb932109ceToomas Soome$(ROOTHDRDIR)/%: %
199767f8919635c4928607450d9e0abb932109ceToomas Soome $(INS.file)
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soomeinstall_h: $(ROOTHDRS)
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soomecheck: $(CHECKHDRS) $(CHKMANIFEST)
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soome_msg: $(MSGDOMAIN) $(POFILE)
199767f8919635c4928607450d9e0abb932109ceToomas Soome $(RM) $(MSGDOMAIN)/$(POFILE)
199767f8919635c4928607450d9e0abb932109ceToomas Soome $(CP) $(POFILE) $(MSGDOMAIN)
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soome$(POFILE): $(POFILES)
199767f8919635c4928607450d9e0abb932109ceToomas Soome $(RM) $@
199767f8919635c4928607450d9e0abb932109ceToomas Soome $(CAT) $(POFILES) > $@
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soome$(POFILES):
199767f8919635c4928607450d9e0abb932109ceToomas Soome $(RM) messages.po
199767f8919635c4928607450d9e0abb932109ceToomas Soome $(XGETTEXT) $(XGETFLAGS) *.[ch]* */*.[ch]*
199767f8919635c4928607450d9e0abb932109ceToomas Soome $(SED) -e '/^# msg/d' -e '/^domain/d' messages.po > $@
199767f8919635c4928607450d9e0abb932109ceToomas Soome $(RM) messages.po
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soome$(SUBDIRS): FRC
199767f8919635c4928607450d9e0abb932109ceToomas Soome @cd $@; pwd; $(MAKE) $(TARGET); echo
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas SoomeFRC:
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soome