xref: /titanic_41/usr/src/lib/libpool/Makefile (revision fd9cb95cbb2f626355a60efb9d02c5f0a33c10e6)
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, Version 1.0 only
6# (the "License").  You may not use this file except in compliance
7# with the License.
8#
9# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10# or http://www.opensolaris.org/os/licensing.
11# See the License for the specific language governing permissions
12# and limitations under the License.
13#
14# When distributing Covered Code, include this CDDL HEADER in each
15# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16# If applicable, add the following below this CDDL HEADER, with the
17# fields enclosed by brackets "[]" replaced with your own identifying
18# information: Portions Copyright [yyyy] [name of copyright owner]
19#
20# CDDL HEADER END
21#
22#
23# Copyright (c) 2001 by Sun Microsystems, Inc.
24# All rights reserved.
25#
26#ident	"%Z%%M%	%I%	%E% SMI"
27#
28# lib/libpool/Makefile
29#
30
31include ../Makefile.lib
32
33SUBDIRS=	$(MACH)
34$(BUILD64)SUBDIRS += $(MACH64)
35
36all :=		TARGET = all
37clean :=	TARGET = clean
38clobber :=	TARGET = clobber
39debug :=	TARGET = debug
40delete :=	TARGET = delete
41install :=	TARGET = install
42lint :=		TARGET = lint
43
44#
45# Definitions for header files
46#
47
48HDRS =		pool.h
49ROOTHDRDIR =	$(ROOT)/usr/include
50ROOTHDRS =	$(HDRS:%=$(ROOTHDRDIR)/%)
51CHECKHDRS =	$(HDRS:%.h=common/%.check)
52$(ROOTHDRS) :=	FILEMODE= 644
53
54$(ROOTHDRDIR)/%: common/%
55	$(INS.file)
56
57#
58# Definitions for message catalogue
59#
60MSGFILES =	`$(GREP) -l gettext common/*.[ch]`
61POFILE =	libpool.po
62
63#
64# Definitions for DTDs
65#
66DTDS =		dtd/rm_pool.dtd.1
67XMLDIR =	$(ROOT)/usr/share/lib/xml
68ROOTDTDS=	$(DTDS:%=$(XMLDIR)/%)
69
70$(ROOTDTDS) :=	FILEMODE = 444
71$(ROOTDTDS) :=	OWNER = root
72$(ROOTDTDS) :=	GROUP = bin
73
74$(XMLDIR)/%: %
75	$(INS.file)
76
77.KEEP_STATE:
78
79all clean clobber install: spec .WAIT $(SUBDIRS)
80
81$(POFILE):	pofile_MSGFILES
82
83lint:		$(SUBDIRS)
84
85install:	$(ROOTDTDS)
86
87install_h:	$(ROOTHDRS)
88
89check:		$(CHECKHDRS)
90
91_msg:		$(MSGDOMAINPOFILE)
92
93spec $(SUBDIRS):	FRC
94	@cd $@; pwd; $(MAKE) $(TARGET)
95
96FRC:
97
98include ../Makefile.targ
99include ../../Makefile.msg.targ
100