xref: /titanic_50/usr/src/lib/libbsdmalloc/Makefile.com (revision 25cf1a301a396c38e8adf52c15f537b80d2483f7)
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 2004 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25#
26# ident	"%Z%%M%	%I%	%E% SMI"
27#
28
29LIBRARY=	libbsdmalloc.a
30VERS=		.1
31
32OBJECTS=  \
33	malloc.bsd43.o
34
35# include library definitions
36include ../../Makefile.lib
37
38MAPFILE=	$(MAPDIR)/mapfile
39SRCS=           $(OBJECTS:%.o=../common/%.c)
40CLOBBERFILES +=	$(MAPFILE)
41
42LIBS =          $(DYNLIB) $(LINTLIB)
43
44# definitions for lint
45
46LINTFLAGS =	-uax
47LINTFLAGS64 =	-uax -Xarch=$(MACH64:sparcv9=v9)
48LINTOUT=	lint.out
49
50LINTSRC=	$(LINTLIB:%.ln=%)
51ROOTLINTDIR=	$(ROOTLIBDIR)
52ROOTLINT=	$(LINTSRC:%=$(ROOTLINTDIR)/%)
53
54CLEANFILES +=	$(LINTOUT) $(LINTLIB)
55
56CFLAGS +=	$(CCVERBOSE)
57CPPFLAGS +=	-D_REENTRANT
58DYNFLAGS +=     -M$(MAPFILE) $(ZINTERPOSE)
59LDLIBS +=       -lc
60
61.KEEP_STATE:
62
63lint:
64	$(LINT.c) $(SRCS) $(LDLIBS)
65
66$(DYNLIB):      $(MAPFILE)
67
68$(MAPFILE):
69	@cd $(MAPDIR); $(MAKE) mapfile
70
71#
72# create message catalogue files
73#
74TEXT_DOMAIN= SUNW_OST_OSLIB
75_msg:	$(MSGDOMAIN) catalog
76
77catalog:
78	sh ../makelibcmdcatalog.sh $(MSGDOMAIN)
79
80$(MSGDOMAIN):
81	$(INS.dir)
82
83# include library targets
84include ../../Makefile.targ
85
86pics/%.o: ../common/%.c
87	$(COMPILE.c) -o $@ $<
88	$(POST_PROCESS_O)
89
90# install rule for lint library target
91$(ROOTLINTDIR)/%:	../common/%
92	$(INS.file)
93
94