xref: /illumos-gate/usr/src/lib/libpool/Makefile (revision 8cd45542f2a452ca0dab13d8b2d5cfa876ccbebc)
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 2006 Sun Microsystems, Inc.  All rights reserved.
23# Use is subject to license terms.
24#
25# ident	"%Z%%M%	%I%	%E% SMI"
26#
27
28include ../Makefile.lib
29
30SUBDIRS=	$(MACH)
31$(BUILD64)SUBDIRS += $(MACH64)
32
33all :=		TARGET = all
34clean :=	TARGET = clean
35clobber :=	TARGET = clobber
36debug :=	TARGET = debug
37delete :=	TARGET = delete
38install :=	TARGET = install
39lint :=		TARGET = lint
40
41#
42# Definitions for header files
43#
44
45HDRS =		pool.h
46ROOTHDRDIR =	$(ROOT)/usr/include
47ROOTHDRS =	$(HDRS:%=$(ROOTHDRDIR)/%)
48CHECKHDRS =	$(HDRS:%.h=common/%.check)
49$(ROOTHDRS) :=	FILEMODE= 644
50
51$(ROOTHDRDIR)/%: common/%
52	$(INS.file)
53
54#
55# Definitions for message catalogue
56#
57MSGFILES =	`$(GREP) -l gettext common/*.[ch]`
58POFILE =	libpool.po
59
60#
61# Definitions for DTDs
62#
63DTDS =		dtd/rm_pool.dtd.1
64XMLDIR =	$(ROOT)/usr/share/lib/xml
65ROOTDTDS=	$(DTDS:%=$(XMLDIR)/%)
66
67$(ROOTDTDS) :=	FILEMODE = 444
68$(ROOTDTDS) :=	OWNER = root
69$(ROOTDTDS) :=	GROUP = bin
70
71$(XMLDIR)/%: %
72	$(INS.file)
73
74.KEEP_STATE:
75
76all clean clobber install lint: $(SUBDIRS)
77
78$(POFILE):	pofile_MSGFILES
79
80install:	$(ROOTDTDS)
81
82install_h:	$(ROOTHDRS)
83
84check:		$(CHECKHDRS)
85
86_msg:		$(MSGDOMAINPOFILE)
87
88$(SUBDIRS):	FRC
89	@cd $@; pwd; $(MAKE) $(TARGET)
90
91FRC:
92
93include ../Makefile.targ
94include ../../Makefile.msg.targ
95