xref: /illumos-gate/usr/src/lib/libresolv2/Makefile (revision 9525b14b)
1#
2# CDDL HEADER START
3#
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.
7#
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.
12#
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]
18#
19# CDDL HEADER END
20#
21#
22# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
23# Use is subject to license terms.
24#
25#
26
27
28include		../../Makefile.master
29include		../Makefile.lib
30
31MANIFEST=	client.xml
32MANIFESTDIR=	$(ROOT)/var/svc/manifest/network/dns
33ROOTMANIFEST=	$(MANIFEST:%=$(MANIFESTDIR)/%)
34
35$(ROOTMANIFEST) :=	FILEMODE = 444
36
37CHKMANIFEST=	$(MANIFEST:%.xml=%.xmlchk)
38
39SUBDIRS=	include $(MACH)
40$(BUILD64)SUBDIRS +=	$(MACH64)
41
42all :=		TARGET= all
43clean :=	TARGET= clean
44clobber :=	TARGET= clobber
45install :=	TARGET= install
46lint :=		TARGET= lint
47_msg :=		TARGET= _msg
48
49LIBRARY= 	libresolv.a
50TEXT_DOMAIN=	SUNW_OST_OSLIB
51XGETFLAGS=	-a
52POFILE=		$(LIBRARY:.a=.po)
53POFILES=	generic.po
54
55SED=	sed
56GREP=	grep
57
58.KEEP_STATE:
59
60all clean clobber lint: $(SUBDIRS)
61
62install: $(SUBDIRS) $(ROOTMANIFEST)
63
64$(ROOTMANIFEST): $(MANIFESTDIR)
65
66$(MANIFESTDIR):
67	$(INS.dir)
68
69$(MANIFESTDIR)/%: %
70	$(INS.file)
71
72# install rule for install_h target
73$(ROOTHDRDIR)/%: %
74	$(INS.file)
75
76install_h: $(ROOTHDRS)
77
78check: $(CHECKHDRS) $(CHKMANIFEST)
79
80_msg:	$(MSGDOMAIN) $(POFILE)
81	$(RM) $(MSGDOMAIN)/$(POFILE)
82	$(CP) $(POFILE) $(MSGDOMAIN)
83
84$(POFILE):	$(POFILES)
85	$(RM) $@
86	$(CAT) $(POFILES) > $@
87
88$(POFILES):
89	$(RM) messages.po
90	$(XGETTEXT) $(XGETFLAGS) *.[ch]* */*.[ch]*
91	$(SED) -e '/^# msg/d' -e '/^domain/d' messages.po > $@
92	$(RM) messages.po
93
94$(SUBDIRS): FRC
95	@cd $@; pwd; $(MAKE) $(TARGET); echo
96
97FRC:
98
99