xref: /titanic_44/usr/src/uts/sparc/blkdev/Makefile (revision 3f7d54a6b84904c8f4d8daa4c7b577bede7df8b9)
1*3f7d54a6SGarrett D'Amore#
2*3f7d54a6SGarrett D'Amore# CDDL HEADER START
3*3f7d54a6SGarrett D'Amore#
4*3f7d54a6SGarrett D'Amore# The contents of this file are subject to the terms of the
5*3f7d54a6SGarrett D'Amore# Common Development and Distribution License (the "License").
6*3f7d54a6SGarrett D'Amore# You may not use this file except in compliance with the License.
7*3f7d54a6SGarrett D'Amore#
8*3f7d54a6SGarrett D'Amore# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*3f7d54a6SGarrett D'Amore# or http://www.opensolaris.org/os/licensing.
10*3f7d54a6SGarrett D'Amore# See the License for the specific language governing permissions
11*3f7d54a6SGarrett D'Amore# and limitations under the License.
12*3f7d54a6SGarrett D'Amore#
13*3f7d54a6SGarrett D'Amore# When distributing Covered Code, include this CDDL HEADER in each
14*3f7d54a6SGarrett D'Amore# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*3f7d54a6SGarrett D'Amore# If applicable, add the following below this CDDL HEADER, with the
16*3f7d54a6SGarrett D'Amore# fields enclosed by brackets "[]" replaced with your own identifying
17*3f7d54a6SGarrett D'Amore# information: Portions Copyright [yyyy] [name of copyright owner]
18*3f7d54a6SGarrett D'Amore#
19*3f7d54a6SGarrett D'Amore# CDDL HEADER END
20*3f7d54a6SGarrett D'Amore#
21*3f7d54a6SGarrett D'Amore
22*3f7d54a6SGarrett D'Amore#
23*3f7d54a6SGarrett D'Amore# Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
24*3f7d54a6SGarrett D'Amore#
25*3f7d54a6SGarrett D'Amore
26*3f7d54a6SGarrett D'Amore#
27*3f7d54a6SGarrett D'Amore# This makefile drives the production of the blkdev driver
28*3f7d54a6SGarrett D'Amore#
29*3f7d54a6SGarrett D'Amore
30*3f7d54a6SGarrett D'Amore#
31*3f7d54a6SGarrett D'Amore#	Paths to the base of the uts directory trees
32*3f7d54a6SGarrett D'Amore#
33*3f7d54a6SGarrett D'AmoreUTSBASE   = ../..
34*3f7d54a6SGarrett D'Amore
35*3f7d54a6SGarrett D'Amore#
36*3f7d54a6SGarrett D'Amore# Define the module and object file sets.
37*3f7d54a6SGarrett D'Amore#
38*3f7d54a6SGarrett D'AmoreMODULE		= blkdev
39*3f7d54a6SGarrett D'AmoreOBJECTS		= $(BLKDEV_OBJS:%=$(OBJS_DIR)/%)
40*3f7d54a6SGarrett D'AmoreLINTS		= $(BLKDEV_OBJS:%.o=$(LINTS_DIR)/%.ln)
41*3f7d54a6SGarrett D'AmoreROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
42*3f7d54a6SGarrett D'Amore
43*3f7d54a6SGarrett D'Amore#
44*3f7d54a6SGarrett D'Amore# Include common rules.
45*3f7d54a6SGarrett D'Amore#
46*3f7d54a6SGarrett D'Amoreinclude $(UTSBASE)/sparc/Makefile.sparc
47*3f7d54a6SGarrett D'Amore
48*3f7d54a6SGarrett D'Amore#
49*3f7d54a6SGarrett D'Amore# Define targets.
50*3f7d54a6SGarrett D'Amore#
51*3f7d54a6SGarrett D'AmoreALL_TARGET	= $(BINARY)
52*3f7d54a6SGarrett D'AmoreLINT_TARGET	= $(MODULE).lint
53*3f7d54a6SGarrett D'AmoreINSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
54*3f7d54a6SGarrett D'Amore
55*3f7d54a6SGarrett D'Amore#
56*3f7d54a6SGarrett D'Amore# Note dependancy on misc/scsi.
57*3f7d54a6SGarrett D'Amore#
58*3f7d54a6SGarrett D'AmoreLDFLAGS += -dy -Nmisc/cmlb
59*3f7d54a6SGarrett D'Amore
60*3f7d54a6SGarrett D'Amore#
61*3f7d54a6SGarrett D'Amore# Default build targets.
62*3f7d54a6SGarrett D'Amore#
63*3f7d54a6SGarrett D'Amore.KEEP_STATE:
64*3f7d54a6SGarrett D'Amore
65*3f7d54a6SGarrett D'Amoredef:		$(DEF_DEPS)
66*3f7d54a6SGarrett D'Amore
67*3f7d54a6SGarrett D'Amoreall:		$(ALL_DEPS)
68*3f7d54a6SGarrett D'Amore
69*3f7d54a6SGarrett D'Amoreclean:		$(CLEAN_DEPS)
70*3f7d54a6SGarrett D'Amore
71*3f7d54a6SGarrett D'Amoreclobber:	$(CLOBBER_DEPS)
72*3f7d54a6SGarrett D'Amore
73*3f7d54a6SGarrett D'Amorelint:		$(LINT_DEPS)
74*3f7d54a6SGarrett D'Amore
75*3f7d54a6SGarrett D'Amoremodlintlib:	$(MODLINTLIB_DEPS)
76*3f7d54a6SGarrett D'Amore
77*3f7d54a6SGarrett D'Amoreclean.lint:	$(CLEAN_LINT_DEPS)
78*3f7d54a6SGarrett D'Amore
79*3f7d54a6SGarrett D'Amoreinstall:	$(INSTALL_DEPS)
80*3f7d54a6SGarrett D'Amore
81*3f7d54a6SGarrett D'Amore#
82*3f7d54a6SGarrett D'Amore# Include common targets.
83*3f7d54a6SGarrett D'Amore#
84*3f7d54a6SGarrett D'Amoreinclude $(UTSBASE)/sparc/Makefile.targ
85