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