1b819cea2SGordon Ross#
2b819cea2SGordon Ross# CDDL HEADER START
3b819cea2SGordon Ross#
4b819cea2SGordon Ross# The contents of this file are subject to the terms of the
5b819cea2SGordon Ross# Common Development and Distribution License, Version 1.0 only
6b819cea2SGordon Ross# (the "License").  You may not use this file except in compliance
7b819cea2SGordon Ross# with the License.
8b819cea2SGordon Ross#
9b819cea2SGordon Ross# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10b819cea2SGordon Ross# or http://www.opensolaris.org/os/licensing.
11b819cea2SGordon Ross# See the License for the specific language governing permissions
12b819cea2SGordon Ross# and limitations under the License.
13b819cea2SGordon Ross#
14b819cea2SGordon Ross# When distributing Covered Code, include this CDDL HEADER in each
15b819cea2SGordon Ross# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16b819cea2SGordon Ross# If applicable, add the following below this CDDL HEADER, with the
17b819cea2SGordon Ross# fields enclosed by brackets "[]" replaced with your own identifying
18b819cea2SGordon Ross# information: Portions Copyright [yyyy] [name of copyright owner]
19b819cea2SGordon Ross#
20b819cea2SGordon Ross# CDDL HEADER END
21b819cea2SGordon Ross#
22b819cea2SGordon Ross#
23b819cea2SGordon Ross# Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
24b819cea2SGordon Ross# Use is subject to license terms.
25b819cea2SGordon Ross#
26b819cea2SGordon Ross# Copyright 2013 Nexenta Systems, Inc.  All rights reserved.
27b819cea2SGordon Ross#
28b819cea2SGordon Ross
29b819cea2SGordon Rossinclude	../Makefile.lib
30b819cea2SGordon Ross
31b819cea2SGordon RossHDRS=		fakekernel.h
32b819cea2SGordon RossHDRDIR=		common
33b819cea2SGordon Ross
34b819cea2SGordon RossROOTHDRDIR=	$(ROOT)/usr/include/libfakekernel
35b819cea2SGordon RossROOTHDRS= $(HDRS:%=$(ROOTHDRDIR)/%)
36b819cea2SGordon Ross
37b819cea2SGordon RossSUBDIRS = $(MACH)
38b819cea2SGordon Ross$(BUILD64)SUBDIRS += $(MACH64)
39b819cea2SGordon Ross
40b819cea2SGordon Rossall :=		TARGET= all
41b819cea2SGordon Rossclean :=	TARGET= clean
42b819cea2SGordon Rossclobber :=	TARGET= clobber
43b819cea2SGordon Rossinstall :=	TARGET= install
44b819cea2SGordon Ross
45b819cea2SGordon Ross.KEEP_STATE:
46b819cea2SGordon Ross
47*241c90a0SRichard Loweall clean clobber install: $(SUBDIRS)
48b819cea2SGordon Ross
49b819cea2SGordon Rossinstall_h: $(ROOTHDRDIR) $(ROOTHDRS)
50b819cea2SGordon Ross
51b819cea2SGordon Rosscheck: $(CHECKHDRS)
52b819cea2SGordon Ross
53b819cea2SGordon Ross$(ROOTHDRDIR)/%: $(HDRDIR)/%
54b819cea2SGordon Ross	$(INS.file)
55b819cea2SGordon Ross
56b819cea2SGordon Ross$(ROOTHDRDIR):
57b819cea2SGordon Ross	$(INS.dir)
58b819cea2SGordon Ross
59b819cea2SGordon Ross$(MACH) $(MACH64): FRC
60b819cea2SGordon Ross	@cd $@; pwd; $(MAKE) $(TARGET)
61b819cea2SGordon Ross
62b819cea2SGordon RossFRC: