18329232eSGordon Ross# 28329232eSGordon Ross# CDDL HEADER START 38329232eSGordon Ross# 48329232eSGordon Ross# The contents of this file are subject to the terms of the 58329232eSGordon Ross# Common Development and Distribution License (the "License"). 68329232eSGordon Ross# You may not use this file except in compliance with the License. 78329232eSGordon Ross# 88329232eSGordon Ross# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 98329232eSGordon Ross# or http://www.opensolaris.org/os/licensing. 108329232eSGordon Ross# See the License for the specific language governing permissions 118329232eSGordon Ross# and limitations under the License. 128329232eSGordon Ross# 138329232eSGordon Ross# When distributing Covered Code, include this CDDL HEADER in each 148329232eSGordon Ross# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 158329232eSGordon Ross# If applicable, add the following below this CDDL HEADER, with the 168329232eSGordon Ross# fields enclosed by brackets "[]" replaced with your own identifying 178329232eSGordon Ross# information: Portions Copyright [yyyy] [name of copyright owner] 188329232eSGordon Ross# 198329232eSGordon Ross# CDDL HEADER END 208329232eSGordon Ross# 218329232eSGordon Ross# 228329232eSGordon Ross# Copyright 2007 Sun Microsystems, Inc. All rights reserved. 238329232eSGordon Ross# Use is subject to license terms. 248329232eSGordon Ross# 258329232eSGordon Ross# Copyright 2017 Nexenta Systems, Inc. All rights reserved. 268329232eSGordon Ross# 278329232eSGordon Ross 288329232eSGordon Ross# 298329232eSGordon Ross# Toplevel Makefile included by each subdirectory. Responsible for the 'check' 308329232eSGordon Ross# and 'install_h' targets, as well as descending into the architecture directory 318329232eSGordon Ross# to actually build the library. 328329232eSGordon Ross# 338329232eSGordon Ross 348329232eSGordon Rossinclude ../../Makefile.lib 358329232eSGordon Rossinclude ../Makefile.lib 368329232eSGordon Ross 378329232eSGordon RossSUBDIRS= $(MACH) 388329232eSGordon Ross$(BUILD64)SUBDIRS += $(MACH64) 398329232eSGordon Ross 408329232eSGordon RossHDRDIR= common 418329232eSGordon Ross 428329232eSGordon Rossall := TARGET = all 438329232eSGordon Rossclean := TARGET = clean 448329232eSGordon Rossclobber := TARGET = clobber 458329232eSGordon Rossinstall := TARGET = install 468329232eSGordon Ross 478329232eSGordon Ross.KEEP_STATE: 488329232eSGordon Ross 49*241c90a0SRichard Loweall clean clobber: $(SUBDIRS) 508329232eSGordon Ross 518329232eSGordon Rossinstall: install_h $(SUBDIRS) 528329232eSGordon Ross 538329232eSGordon Rosscheck: $(CHECKHDRS) 548329232eSGordon Ross 558329232eSGordon Rossinstall_h: $(ROOTSMBHDRS) 568329232eSGordon Ross 578329232eSGordon Ross$(SUBDIRS): FRC 588329232eSGordon Ross @cd $@; pwd; VERSION='$(VERSION)' $(MAKE) $(TARGET) 598329232eSGordon Ross 608329232eSGordon RossFRC: 618329232eSGordon Ross 628329232eSGordon Ross$(ROOTSMBHDRDIR)/%: common/% 638329232eSGordon Ross $(INS.file) 648329232eSGordon Ross 658329232eSGordon Rossinclude ../../Makefile.targ 66