xref: /titanic_51/usr/src/uts/sparc/blkdev/Makefile (revision 531aa4e241ba5493b8c232a85b0524302f7415f0)
13f7d54a6SGarrett D'Amore#
23f7d54a6SGarrett D'Amore# CDDL HEADER START
33f7d54a6SGarrett D'Amore#
43f7d54a6SGarrett D'Amore# The contents of this file are subject to the terms of the
53f7d54a6SGarrett D'Amore# Common Development and Distribution License (the "License").
63f7d54a6SGarrett D'Amore# You may not use this file except in compliance with the License.
73f7d54a6SGarrett D'Amore#
83f7d54a6SGarrett D'Amore# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
93f7d54a6SGarrett D'Amore# or http://www.opensolaris.org/os/licensing.
103f7d54a6SGarrett D'Amore# See the License for the specific language governing permissions
113f7d54a6SGarrett D'Amore# and limitations under the License.
123f7d54a6SGarrett D'Amore#
133f7d54a6SGarrett D'Amore# When distributing Covered Code, include this CDDL HEADER in each
143f7d54a6SGarrett D'Amore# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
153f7d54a6SGarrett D'Amore# If applicable, add the following below this CDDL HEADER, with the
163f7d54a6SGarrett D'Amore# fields enclosed by brackets "[]" replaced with your own identifying
173f7d54a6SGarrett D'Amore# information: Portions Copyright [yyyy] [name of copyright owner]
183f7d54a6SGarrett D'Amore#
193f7d54a6SGarrett D'Amore# CDDL HEADER END
203f7d54a6SGarrett D'Amore#
213f7d54a6SGarrett D'Amore
223f7d54a6SGarrett D'Amore#
233f7d54a6SGarrett D'Amore# Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
24*531aa4e2SHans Rosenfeld# Copyright 2014, Nexenta Systems Inc.  All rights reserved.
253f7d54a6SGarrett D'Amore#
263f7d54a6SGarrett D'Amore
273f7d54a6SGarrett D'Amore#
283f7d54a6SGarrett D'Amore# This makefile drives the production of the blkdev driver
293f7d54a6SGarrett D'Amore#
303f7d54a6SGarrett D'Amore
313f7d54a6SGarrett D'Amore#
323f7d54a6SGarrett D'Amore#	Paths to the base of the uts directory trees
333f7d54a6SGarrett D'Amore#
343f7d54a6SGarrett D'AmoreUTSBASE   = ../..
353f7d54a6SGarrett D'Amore
363f7d54a6SGarrett D'Amore#
373f7d54a6SGarrett D'Amore# Define the module and object file sets.
383f7d54a6SGarrett D'Amore#
393f7d54a6SGarrett D'AmoreMODULE		= blkdev
403f7d54a6SGarrett D'AmoreOBJECTS		= $(BLKDEV_OBJS:%=$(OBJS_DIR)/%)
413f7d54a6SGarrett D'AmoreLINTS		= $(BLKDEV_OBJS:%.o=$(LINTS_DIR)/%.ln)
423f7d54a6SGarrett D'AmoreROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
433f7d54a6SGarrett D'Amore
443f7d54a6SGarrett D'Amore#
453f7d54a6SGarrett D'Amore# Include common rules.
463f7d54a6SGarrett D'Amore#
473f7d54a6SGarrett D'Amoreinclude $(UTSBASE)/sparc/Makefile.sparc
483f7d54a6SGarrett D'Amore
493f7d54a6SGarrett D'Amore#
503f7d54a6SGarrett D'Amore# Define targets.
513f7d54a6SGarrett D'Amore#
523f7d54a6SGarrett D'AmoreALL_TARGET	= $(BINARY)
533f7d54a6SGarrett D'AmoreLINT_TARGET	= $(MODULE).lint
543f7d54a6SGarrett D'AmoreINSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
553f7d54a6SGarrett D'Amore
563f7d54a6SGarrett D'Amore#
573f7d54a6SGarrett D'Amore# Note dependancy on misc/scsi.
583f7d54a6SGarrett D'Amore#
593f7d54a6SGarrett D'AmoreLDFLAGS += -dy -Nmisc/cmlb
603f7d54a6SGarrett D'Amore
613f7d54a6SGarrett D'Amore#
623f7d54a6SGarrett D'Amore# Default build targets.
633f7d54a6SGarrett D'Amore#
643f7d54a6SGarrett D'Amore.KEEP_STATE:
653f7d54a6SGarrett D'Amore
663f7d54a6SGarrett D'Amoredef:		$(DEF_DEPS)
673f7d54a6SGarrett D'Amore
683f7d54a6SGarrett D'Amoreall:		$(ALL_DEPS)
693f7d54a6SGarrett D'Amore
703f7d54a6SGarrett D'Amoreclean:		$(CLEAN_DEPS)
713f7d54a6SGarrett D'Amore
723f7d54a6SGarrett D'Amoreclobber:	$(CLOBBER_DEPS)
733f7d54a6SGarrett D'Amore
743f7d54a6SGarrett D'Amorelint:		$(LINT_DEPS)
753f7d54a6SGarrett D'Amore
763f7d54a6SGarrett D'Amoremodlintlib:	$(MODLINTLIB_DEPS)
773f7d54a6SGarrett D'Amore
783f7d54a6SGarrett D'Amoreclean.lint:	$(CLEAN_LINT_DEPS)
793f7d54a6SGarrett D'Amore
803f7d54a6SGarrett D'Amoreinstall:	$(INSTALL_DEPS)
813f7d54a6SGarrett D'Amore
823f7d54a6SGarrett D'Amore#
833f7d54a6SGarrett D'Amore# Include common targets.
843f7d54a6SGarrett D'Amore#
853f7d54a6SGarrett D'Amoreinclude $(UTSBASE)/sparc/Makefile.targ
86