xref: /onnv-gate/usr/src/lib/libmtmalloc/Makefile (revision 2522:79989c8fe091)
10Sstevel@tonic-gate#
20Sstevel@tonic-gate# CDDL HEADER START
30Sstevel@tonic-gate#
40Sstevel@tonic-gate# The contents of this file are subject to the terms of the
5*2522Sraf# Common Development and Distribution License (the "License").
6*2522Sraf# You may not use this file except in compliance with the License.
70Sstevel@tonic-gate#
80Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
90Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing.
100Sstevel@tonic-gate# See the License for the specific language governing permissions
110Sstevel@tonic-gate# and limitations under the License.
120Sstevel@tonic-gate#
130Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each
140Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
150Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the
160Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying
170Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner]
180Sstevel@tonic-gate#
190Sstevel@tonic-gate# CDDL HEADER END
200Sstevel@tonic-gate#
210Sstevel@tonic-gate#
22*2522Sraf# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
23*2522Sraf# Use is subject to license terms.
240Sstevel@tonic-gate#
25*2522Sraf# ident	"%Z%%M%	%I%	%E% SMI"
260Sstevel@tonic-gate#
270Sstevel@tonic-gate
280Sstevel@tonic-gateinclude ../Makefile.lib
290Sstevel@tonic-gate
300Sstevel@tonic-gate# definitions for install_h target
310Sstevel@tonic-gateHDRS=		mtmalloc.h
320Sstevel@tonic-gateROOTHDRDIR=	$(ROOT)/usr/include
330Sstevel@tonic-gateROOTHDRS=	$(HDRS:%=$(ROOTHDRDIR)/%)
340Sstevel@tonic-gateCHECKHDRS=	$(HDRS:%.h=common/%.check)
350Sstevel@tonic-gate
360Sstevel@tonic-gate$(ROOTHDRS) :=  FILEMODE= 644
370Sstevel@tonic-gate
380Sstevel@tonic-gate# install rule for install_h target
390Sstevel@tonic-gate$(ROOTHDRDIR)/%: common/%
400Sstevel@tonic-gate	$(INS.file)
410Sstevel@tonic-gate
42*2522SrafSUBDIRS=	$(MACH)
430Sstevel@tonic-gate$(BUILD64)SUBDIRS += $(MACH64)
440Sstevel@tonic-gate
450Sstevel@tonic-gateall :=		TARGET= all
460Sstevel@tonic-gateinstall :=	TARGET= install
470Sstevel@tonic-gateclean :=	TARGET= clean
480Sstevel@tonic-gateclobber :=	TARGET= clobber
490Sstevel@tonic-gatelint :=		TARGET= lint
500Sstevel@tonic-gateinstall_h :=	TARGET= install_h
510Sstevel@tonic-gate
520Sstevel@tonic-gate.KEEP_STATE:
530Sstevel@tonic-gate
540Sstevel@tonic-gateall install clean clobber lint: $(SUBDIRS)
550Sstevel@tonic-gate
560Sstevel@tonic-gateinstall_h: $(ROOTHDRS)
570Sstevel@tonic-gate
580Sstevel@tonic-gatecheck: $(CHECKHDRS)
590Sstevel@tonic-gate
600Sstevel@tonic-gate$(SUBDIRS):	FRC
610Sstevel@tonic-gate	@cd $@; pwd; $(MAKE) $(TARGET)
620Sstevel@tonic-gate
630Sstevel@tonic-gateFRC:
64