libc: make stdio_impl.h an internal libc header
[unleashed/tickless.git] / usr / src / lib / libresolv2 / Makefile
blobeb142280d5f7df980b01bf809a566f0885b6dcd8
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 _msg := TARGET= _msg
52 LIBRARY= libresolv.a
53 TEXT_DOMAIN= SUNW_OST_OSLIB
54 XGETFLAGS= -a
55 POFILE= $(LIBRARY:.a=.po)
56 POFILES= generic.po
58 SED= sed
59 GREP= grep
61 .KEEP_STATE:
63 all clean clobber: $(SUBDIRS)
65 install: $(SUBDIRS) $(ROOTMANIFEST) $(ROOTSVCMETHOD)
67 $(ROOTMANIFEST): $(MANIFESTDIR)
69 $(MANIFESTDIR):
70 $(INS.dir)
72 $(MANIFESTDIR)/%: %
73 $(INS.file)
74 $(ROOTSVCMETHOD): $(SVCMETHODDIR)
76 $(SVCMETHODDIR):
77 $(INS.dir)
79 $(SVCMETHODDIR)/%: %
80 $(INS.file)
82 # install rule for install_h target
83 $(ROOTHDRDIR)/%: %
84 $(INS.file)
86 install_h: $(ROOTHDRS)
88 check: $(CHECKHDRS) $(CHKMANIFEST)
90 _msg: $(MSGDOMAIN) $(POFILE)
91 $(RM) $(MSGDOMAIN)/$(POFILE)
92 $(CP) $(POFILE) $(MSGDOMAIN)
94 $(POFILE): $(POFILES)
95 $(RM) $@
96 $(CAT) $(POFILES) > $@
98 $(POFILES):
99 $(RM) messages.po
100 $(XGETTEXT) $(XGETFLAGS) *.[ch]* */*.[ch]*
101 $(SED) -e '/^# msg/d' -e '/^domain/d' messages.po > $@
102 $(RM) messages.po
104 $(SUBDIRS): FRC
105 @cd $@; pwd; $(MAKE) $(TARGET); echo
107 FRC: