10Sstevel@tonic-gate# 22522Sraf# CDDL HEADER START 32522Sraf# 42522Sraf# The contents of this file are subject to the terms of the 52522Sraf# Common Development and Distribution License (the "License"). 62522Sraf# You may not use this file except in compliance with the License. 72522Sraf# 82522Sraf# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 92522Sraf# or http://www.opensolaris.org/os/licensing. 102522Sraf# See the License for the specific language governing permissions 112522Sraf# and limitations under the License. 122522Sraf# 132522Sraf# When distributing Covered Code, include this CDDL HEADER in each 142522Sraf# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 152522Sraf# If applicable, add the following below this CDDL HEADER, with the 162522Sraf# fields enclosed by brackets "[]" replaced with your own identifying 172522Sraf# information: Portions Copyright [yyyy] [name of copyright owner] 182522Sraf# 192522Sraf# CDDL HEADER END 202522Sraf# 212522Sraf# 22*12926SMark.Haywood@Oracle.COM# Copyright (c) 1996, 2010, Oracle and/or its affiliates. All rights reserved. 230Sstevel@tonic-gate# 240Sstevel@tonic-gate 2511038SRao.Shoaib@Sun.COM 260Sstevel@tonic-gateinclude ../../Makefile.master 270Sstevel@tonic-gateinclude ../Makefile.lib 280Sstevel@tonic-gate 29*12926SMark.Haywood@Oracle.COMMANIFEST= client.xml install.xml 3011996SThomas.Whitten@Sun.COMMANIFESTDIR= $(ROOT)/lib/svc/manifest/network/dns 310Sstevel@tonic-gateROOTMANIFEST= $(MANIFEST:%=$(MANIFESTDIR)/%) 320Sstevel@tonic-gate 330Sstevel@tonic-gate$(ROOTMANIFEST) := FILEMODE = 444 340Sstevel@tonic-gate 35*12926SMark.Haywood@Oracle.COMSVCMETHOD= dns-install 36*12926SMark.Haywood@Oracle.COMSVCMETHODDIR= $(ROOT)/lib/svc/method 37*12926SMark.Haywood@Oracle.COMROOTSVCMETHOD= $(SVCMETHOD:%=$(SVCMETHODDIR)/%) 38*12926SMark.Haywood@Oracle.COM 39*12926SMark.Haywood@Oracle.COM$(ROOTSVCMETHOD) := FILEMODE = 0555 40*12926SMark.Haywood@Oracle.COM 410Sstevel@tonic-gateCHKMANIFEST= $(MANIFEST:%.xml=%.xmlchk) 420Sstevel@tonic-gate 432522SrafSUBDIRS= include $(MACH) 440Sstevel@tonic-gate$(BUILD64)SUBDIRS += $(MACH64) 450Sstevel@tonic-gate 460Sstevel@tonic-gateall := TARGET= all 470Sstevel@tonic-gateclean := TARGET= clean 480Sstevel@tonic-gateclobber := TARGET= clobber 490Sstevel@tonic-gateinstall := TARGET= install 500Sstevel@tonic-gatelint := TARGET= lint 510Sstevel@tonic-gate_msg := TARGET= _msg 520Sstevel@tonic-gate 530Sstevel@tonic-gateLIBRARY= libresolv.a 540Sstevel@tonic-gateTEXT_DOMAIN= SUNW_OST_OSLIB 550Sstevel@tonic-gateXGETFLAGS= -a 560Sstevel@tonic-gatePOFILE= $(LIBRARY:.a=.po) 570Sstevel@tonic-gatePOFILES= generic.po 580Sstevel@tonic-gate 590Sstevel@tonic-gateSED= sed 600Sstevel@tonic-gateGREP= grep 610Sstevel@tonic-gate 620Sstevel@tonic-gate.KEEP_STATE: 630Sstevel@tonic-gate 640Sstevel@tonic-gateall clean clobber lint: $(SUBDIRS) 650Sstevel@tonic-gate 66*12926SMark.Haywood@Oracle.COMinstall: $(SUBDIRS) $(ROOTMANIFEST) $(ROOTSVCMETHOD) 670Sstevel@tonic-gate 680Sstevel@tonic-gate$(ROOTMANIFEST): $(MANIFESTDIR) 690Sstevel@tonic-gate 700Sstevel@tonic-gate$(MANIFESTDIR): 710Sstevel@tonic-gate $(INS.dir) 720Sstevel@tonic-gate 730Sstevel@tonic-gate$(MANIFESTDIR)/%: % 740Sstevel@tonic-gate $(INS.file) 75*12926SMark.Haywood@Oracle.COM$(ROOTSVCMETHOD): $(SVCMETHODDIR) 76*12926SMark.Haywood@Oracle.COM 77*12926SMark.Haywood@Oracle.COM$(SVCMETHODDIR): 78*12926SMark.Haywood@Oracle.COM $(INS.dir) 79*12926SMark.Haywood@Oracle.COM 80*12926SMark.Haywood@Oracle.COM$(SVCMETHODDIR)/%: % 81*12926SMark.Haywood@Oracle.COM $(INS.file) 820Sstevel@tonic-gate 830Sstevel@tonic-gate# install rule for install_h target 840Sstevel@tonic-gate$(ROOTHDRDIR)/%: % 850Sstevel@tonic-gate $(INS.file) 860Sstevel@tonic-gate 870Sstevel@tonic-gateinstall_h: $(ROOTHDRS) 880Sstevel@tonic-gate 890Sstevel@tonic-gatecheck: $(CHECKHDRS) $(CHKMANIFEST) 900Sstevel@tonic-gate 910Sstevel@tonic-gate_msg: $(MSGDOMAIN) $(POFILE) 920Sstevel@tonic-gate $(RM) $(MSGDOMAIN)/$(POFILE) 930Sstevel@tonic-gate $(CP) $(POFILE) $(MSGDOMAIN) 940Sstevel@tonic-gate 950Sstevel@tonic-gate$(POFILE): $(POFILES) 960Sstevel@tonic-gate $(RM) $@ 970Sstevel@tonic-gate $(CAT) $(POFILES) > $@ 980Sstevel@tonic-gate 990Sstevel@tonic-gate$(POFILES): 1000Sstevel@tonic-gate $(RM) messages.po 1010Sstevel@tonic-gate $(XGETTEXT) $(XGETFLAGS) *.[ch]* */*.[ch]* 1020Sstevel@tonic-gate $(SED) -e '/^# msg/d' -e '/^domain/d' messages.po > $@ 1030Sstevel@tonic-gate $(RM) messages.po 1040Sstevel@tonic-gate 1050Sstevel@tonic-gate$(SUBDIRS): FRC 1060Sstevel@tonic-gate @cd $@; pwd; $(MAKE) $(TARGET); echo 1070Sstevel@tonic-gate 1080Sstevel@tonic-gateFRC: 10911038SRao.Shoaib@Sun.COM 110