1*6bbe0590SSundeep Panicker#
2*6bbe0590SSundeep Panicker# CDDL HEADER START
3*6bbe0590SSundeep Panicker#
4*6bbe0590SSundeep Panicker# The contents of this file are subject to the terms of the
5*6bbe0590SSundeep Panicker# Common Development and Distribution License (the "License").
6*6bbe0590SSundeep Panicker# You may not use this file except in compliance with the License.
7*6bbe0590SSundeep Panicker#
8*6bbe0590SSundeep Panicker# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*6bbe0590SSundeep Panicker# or http://www.opensolaris.org/os/licensing.
10*6bbe0590SSundeep Panicker# See the License for the specific language governing permissions
11*6bbe0590SSundeep Panicker# and limitations under the License.
12*6bbe0590SSundeep Panicker#
13*6bbe0590SSundeep Panicker# When distributing Covered Code, include this CDDL HEADER in each
14*6bbe0590SSundeep Panicker# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*6bbe0590SSundeep Panicker# If applicable, add the following below this CDDL HEADER, with the
16*6bbe0590SSundeep Panicker# fields enclosed by brackets "[]" replaced with your own identifying
17*6bbe0590SSundeep Panicker# information: Portions Copyright [yyyy] [name of copyright owner]
18*6bbe0590SSundeep Panicker#
19*6bbe0590SSundeep Panicker# CDDL HEADER END
20*6bbe0590SSundeep Panicker#
21*6bbe0590SSundeep Panicker#
22*6bbe0590SSundeep Panicker# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
23*6bbe0590SSundeep Panicker# Use is subject to license terms.
24*6bbe0590SSundeep Panicker#
25*6bbe0590SSundeep Panicker#
26*6bbe0590SSundeep Panicker
27*6bbe0590SSundeep Panickerinclude	$(SRC)/lib/Makefile.lib
28*6bbe0590SSundeep Panicker
29*6bbe0590SSundeep PanickerSUBDIRS = .WAIT $(MACH) $(BUILD64) $(MACH64)
30*6bbe0590SSundeep Panicker
31*6bbe0590SSundeep Panicker# conditional assignments
32*6bbe0590SSundeep Panickerall :=      	TARGET= all
33*6bbe0590SSundeep Panickerinstall :=      TARGET= install
34*6bbe0590SSundeep Panickerclean :=        TARGET= clean
35*6bbe0590SSundeep Panickerclobber :=      TARGET= clobber
36*6bbe0590SSundeep Panickerlint :=         TARGET= lint
37*6bbe0590SSundeep Panicker_msg :=         TARGET= _msg
38*6bbe0590SSundeep Panicker
39*6bbe0590SSundeep Panickersparc_HDRS=
40*6bbe0590SSundeep Panickersparcv9_HDRS=
41*6bbe0590SSundeep Panickeri386_HDRS=
42*6bbe0590SSundeep PanickerHDRS=	$($(MACH)_HDRS)
43*6bbe0590SSundeep PanickerROOTHDRDIR=     $(ROOT)/usr/include
44*6bbe0590SSundeep PanickerROOTHDRS=       $(HDRS:%=$(ROOTHDRDIR)/%)
45*6bbe0590SSundeep PanickerCHECKHDRS=      $(HDRS:%.h=%.check)
46*6bbe0590SSundeep Panicker
47*6bbe0590SSundeep Panicker.KEEP_STATE:
48*6bbe0590SSundeep Panicker
49*6bbe0590SSundeep Panickerall install clean clobber lint: $(SUBDIRS)
50*6bbe0590SSundeep Panicker
51*6bbe0590SSundeep Panicker_msg:	$(MACH) $(MACH64)
52*6bbe0590SSundeep Panicker
53*6bbe0590SSundeep Panicker
54*6bbe0590SSundeep Panicker$(ROOTHDRDIR)/%: %
55*6bbe0590SSundeep Panicker	$(INS.file)
56*6bbe0590SSundeep Panicker
57*6bbe0590SSundeep Panicker$(ROOTHDRDIR):
58*6bbe0590SSundeep Panicker	$(INS.dir)
59*6bbe0590SSundeep Panicker
60*6bbe0590SSundeep Panickercheck: $(CHECKHDRS)
61*6bbe0590SSundeep Panicker
62*6bbe0590SSundeep Panicker$(MACH) $(MACH64): FRC
63*6bbe0590SSundeep Panicker	@cd $@; pwd; $(MAKE) $(TARGET)
64*6bbe0590SSundeep Panicker
65*6bbe0590SSundeep PanickerFRC:
66*6bbe0590SSundeep Panicker
67