8828 udapl: value computed is not used
[unleashed.git] / usr / src / lib / libresolv2 / Makefile
blob2e9e919762f3d4fcfe56cd6d2cd64f6e055bc5e8
2 # CDDL HEADER START
4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
19 # CDDL HEADER END
22 # Copyright (c) 1996, 2010, Oracle and/or its affiliates. All rights reserved.
26 include ../../Makefile.master
27 include ../Makefile.lib
29 MANIFEST= client.xml install.xml
30 MANIFESTDIR= $(ROOT)/lib/svc/manifest/network/dns
31 ROOTMANIFEST= $(MANIFEST:%=$(MANIFESTDIR)/%)
33 $(ROOTMANIFEST) := FILEMODE = 444
35 SVCMETHOD= dns-install
36 SVCMETHODDIR= $(ROOT)/lib/svc/method
37 ROOTSVCMETHOD= $(SVCMETHOD:%=$(SVCMETHODDIR)/%)
39 $(ROOTSVCMETHOD) := FILEMODE = 0555
41 CHKMANIFEST= $(MANIFEST:%.xml=%.xmlchk)
43 SUBDIRS= include $(MACH)
44 $(BUILD64)SUBDIRS += $(MACH64)
46 all := TARGET= all
47 clean := TARGET= clean
48 clobber := TARGET= clobber
49 install := TARGET= install
50 lint := TARGET= lint
51 _msg := TARGET= _msg
53 LIBRARY= libresolv.a
54 TEXT_DOMAIN= SUNW_OST_OSLIB
55 XGETFLAGS= -a
56 POFILE= $(LIBRARY:.a=.po)
57 POFILES= generic.po
59 SED= sed
60 GREP= grep
62 .KEEP_STATE:
64 all clean clobber lint: $(SUBDIRS)
66 install: $(SUBDIRS) $(ROOTMANIFEST) $(ROOTSVCMETHOD)
68 $(ROOTMANIFEST): $(MANIFESTDIR)
70 $(MANIFESTDIR):
71 $(INS.dir)
73 $(MANIFESTDIR)/%: %
74 $(INS.file)
75 $(ROOTSVCMETHOD): $(SVCMETHODDIR)
77 $(SVCMETHODDIR):
78 $(INS.dir)
80 $(SVCMETHODDIR)/%: %
81 $(INS.file)
83 # install rule for install_h target
84 $(ROOTHDRDIR)/%: %
85 $(INS.file)
87 install_h: $(ROOTHDRS)
89 check: $(CHECKHDRS) $(CHKMANIFEST)
91 _msg: $(MSGDOMAIN) $(POFILE)
92 $(RM) $(MSGDOMAIN)/$(POFILE)
93 $(CP) $(POFILE) $(MSGDOMAIN)
95 $(POFILE): $(POFILES)
96 $(RM) $@
97 $(CAT) $(POFILES) > $@
99 $(POFILES):
100 $(RM) messages.po
101 $(XGETTEXT) $(XGETFLAGS) *.[ch]* */*.[ch]*
102 $(SED) -e '/^# msg/d' -e '/^domain/d' messages.po > $@
103 $(RM) messages.po
105 $(SUBDIRS): FRC
106 @cd $@; pwd; $(MAKE) $(TARGET); echo
108 FRC: