1*8329232eSGordon Ross#
2*8329232eSGordon Ross# CDDL HEADER START
3*8329232eSGordon Ross#
4*8329232eSGordon Ross# The contents of this file are subject to the terms of the
5*8329232eSGordon Ross# Common Development and Distribution License (the "License").
6*8329232eSGordon Ross# You may not use this file except in compliance with the License.
7*8329232eSGordon Ross#
8*8329232eSGordon Ross# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*8329232eSGordon Ross# or http://www.opensolaris.org/os/licensing.
10*8329232eSGordon Ross# See the License for the specific language governing permissions
11*8329232eSGordon Ross# and limitations under the License.
12*8329232eSGordon Ross#
13*8329232eSGordon Ross# When distributing Covered Code, include this CDDL HEADER in each
14*8329232eSGordon Ross# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*8329232eSGordon Ross# If applicable, add the following below this CDDL HEADER, with the
16*8329232eSGordon Ross# fields enclosed by brackets "[]" replaced with your own identifying
17*8329232eSGordon Ross# information: Portions Copyright [yyyy] [name of copyright owner]
18*8329232eSGordon Ross#
19*8329232eSGordon Ross# CDDL HEADER END
20*8329232eSGordon Ross#
21*8329232eSGordon Ross#
22*8329232eSGordon Ross# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
23*8329232eSGordon Ross# Use is subject to license terms.
24*8329232eSGordon Ross#
25*8329232eSGordon Ross# Copyright 2017 Nexenta Systems, Inc.  All rights reserved.
26*8329232eSGordon Ross#
27*8329232eSGordon Ross
28*8329232eSGordon Ross#
29*8329232eSGordon Ross# Toplevel Makefile included by each subdirectory.  Responsible for the 'check'
30*8329232eSGordon Ross# and 'install_h' targets, as well as descending into the architecture directory
31*8329232eSGordon Ross# to actually build the library.
32*8329232eSGordon Ross#
33*8329232eSGordon Ross
34*8329232eSGordon Rossinclude ../../Makefile.lib
35*8329232eSGordon Rossinclude ../Makefile.lib
36*8329232eSGordon Ross
37*8329232eSGordon RossSUBDIRS=		$(MACH)
38*8329232eSGordon Ross$(BUILD64)SUBDIRS +=	$(MACH64)
39*8329232eSGordon Ross
40*8329232eSGordon RossHDRDIR=		common
41*8329232eSGordon Ross
42*8329232eSGordon Rossall := TARGET = all
43*8329232eSGordon Rossclean := TARGET = clean
44*8329232eSGordon Rossclobber := TARGET = clobber
45*8329232eSGordon Rossinstall := TARGET = install
46*8329232eSGordon Rosslint := TARGET = lint
47*8329232eSGordon Ross
48*8329232eSGordon Ross.KEEP_STATE:
49*8329232eSGordon Ross
50*8329232eSGordon Rossall clean clobber lint: $(SUBDIRS)
51*8329232eSGordon Ross
52*8329232eSGordon Rossinstall: install_h $(SUBDIRS)
53*8329232eSGordon Ross
54*8329232eSGordon Rosscheck: $(CHECKHDRS)
55*8329232eSGordon Ross
56*8329232eSGordon Rossinstall_h: $(ROOTSMBHDRS)
57*8329232eSGordon Ross
58*8329232eSGordon Ross$(SUBDIRS): FRC
59*8329232eSGordon Ross	@cd $@; pwd; VERSION='$(VERSION)' $(MAKE) $(TARGET)
60*8329232eSGordon Ross
61*8329232eSGordon RossFRC:
62*8329232eSGordon Ross
63*8329232eSGordon Ross$(ROOTSMBHDRDIR)/%:	common/%
64*8329232eSGordon Ross	$(INS.file)
65*8329232eSGordon Ross
66*8329232eSGordon Rossinclude ../../Makefile.targ
67