xref: /titanic_41/usr/src/lib/libmapmalloc/Makefile (revision 70025d765b044c6d8594bb965a2247a61e991a99)
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#ident	"%Z%%M%	%I%	%E% SMI"
24#
25# Copyright (c) 1989,1998-1999 by Sun Microsystems, Inc.
26# All rights reserved.
27#
28# lib/libmapmalloc/Makefile
29#
30
31include         ../../Makefile.master
32include		../Makefile.lib
33
34SUBDIRS=        spec .WAIT $(MACH) $(BUILD64) $(MACH64)
35
36all :=          TARGET= all
37clean :=        TARGET= clean
38clobber :=      TARGET= clobber
39delete :=       TARGET= delete
40install :=      TARGET= install
41lint :=         TARGET= lint
42_msg :=		TARGET= _msg
43package :=      TARGET= package
44
45_msg :=         TARGET= _msg
46
47LIBRARY= 	libmapmalloc.a
48TEXT_DOMAIN=	SUNW_OST_OSLIB
49XGETFLAGS=	-a
50POFILE=		$(LIBRARY:.a=.po)
51POFILES=	generic.po
52
53SED=	sed
54GREP=	grep
55CP=	cp
56
57.KEEP_STATE:
58
59all clean clobber delete install lint package: $(SUBDIRS)
60
61# definitions for install_h target
62HDRS=
63ROOTHDRDIR=     $(ROOT)/usr/include
64ROOTHDRS=       $(HDRS:%=$(ROOTHDRDIR)/%)
65CHECKHDRS=      $(HDRS:%.h=%.check)
66
67# install rule for install_h target
68$(ROOTHDRDIR)/%: %
69	$(INS.file)
70
71install_h: $(ROOTHDRS)
72
73check: $(CHECKHDRS)
74
75$(MACH) $(MACH64) spec:      FRC
76	@cd $@; pwd; $(MAKE) $(TARGET)
77
78_msg:	$(MSGDOMAIN) $(POFILE)
79	$(RM) $(MSGDOMAIN)/$(POFILE)
80	$(CP) $(POFILE) $(MSGDOMAIN)
81
82$(POFILE):	$(POFILES)
83	$(RM) $@
84	$(CAT) $(POFILES) > $@
85
86$(POFILES):
87	$(RM) messages.po
88	$(XGETTEXT) $(XGETFLAGS) *.[ch]* */*.[ch]*
89	$(SED) -e '/^# msg/d' -e '/^domain/d' messages.po > $@
90	$(RM) messages.po
91
92$(MSGDOMAIN):
93	$(INS.dir)
94
95FRC:
96
97