xref: /titanic_51/usr/src/uts/sparc/sgen/Makefile (revision 9a016c63ca347047a236dff12f0da83aac8981d1)
1*9a016c63Sstevel#
2*9a016c63Sstevel# CDDL HEADER START
3*9a016c63Sstevel#
4*9a016c63Sstevel# The contents of this file are subject to the terms of the
5*9a016c63Sstevel# Common Development and Distribution License (the "License").
6*9a016c63Sstevel# You may not use this file except in compliance with the License.
7*9a016c63Sstevel#
8*9a016c63Sstevel# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*9a016c63Sstevel# or http://www.opensolaris.org/os/licensing.
10*9a016c63Sstevel# See the License for the specific language governing permissions
11*9a016c63Sstevel# and limitations under the License.
12*9a016c63Sstevel#
13*9a016c63Sstevel# When distributing Covered Code, include this CDDL HEADER in each
14*9a016c63Sstevel# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*9a016c63Sstevel# If applicable, add the following below this CDDL HEADER, with the
16*9a016c63Sstevel# fields enclosed by brackets "[]" replaced with your own identifying
17*9a016c63Sstevel# information: Portions Copyright [yyyy] [name of copyright owner]
18*9a016c63Sstevel#
19*9a016c63Sstevel# CDDL HEADER END
20*9a016c63Sstevel#
21*9a016c63Sstevel
22*9a016c63Sstevel#
23*9a016c63Sstevel# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
24*9a016c63Sstevel# Use is subject to license terms.
25*9a016c63Sstevel#
26*9a016c63Sstevel
27*9a016c63Sstevel#
28*9a016c63Sstevel#pragma ident	"%Z%%M%	%I%	%E% SMI"
29*9a016c63Sstevel#
30*9a016c63Sstevel# This makefile drives the production of the sgen driver.
31*9a016c63Sstevel# sparc architecture dependent
32*9a016c63Sstevel#
33*9a016c63Sstevel
34*9a016c63Sstevel#
35*9a016c63Sstevel# Path to the base of the uts directory tree (usually /usr/src/uts).
36*9a016c63Sstevel#
37*9a016c63SstevelUTSBASE   = ../..
38*9a016c63Sstevel
39*9a016c63Sstevel#
40*9a016c63Sstevel# Define the module and object file sets.
41*9a016c63Sstevel#
42*9a016c63SstevelMODULE		= sgen
43*9a016c63SstevelOBJECTS		= $(SGEN_OBJS:%=$(OBJS_DIR)/%)
44*9a016c63SstevelLINTS		= $(SGEN_OBJS:%.o=$(LINTS_DIR)/%.ln)
45*9a016c63SstevelROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
46*9a016c63SstevelCONF_SRCDIR	= $(UTSBASE)/common/io/scsi/targets
47*9a016c63Sstevel
48*9a016c63Sstevel#
49*9a016c63Sstevel# Include common rules.
50*9a016c63Sstevel#
51*9a016c63Sstevelinclude $(UTSBASE)/sparc/Makefile.sparc
52*9a016c63Sstevel
53*9a016c63Sstevel#
54*9a016c63Sstevel# Define targets.
55*9a016c63Sstevel#
56*9a016c63SstevelALL_TARGET	= $(BINARY) $(SRC_CONFILE)
57*9a016c63SstevelLINT_TARGET	= $(MODULE).lint
58*9a016c63SstevelINSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
59*9a016c63Sstevel
60*9a016c63Sstevel#
61*9a016c63Sstevel# Note dependancy on misc/scsi.
62*9a016c63Sstevel#
63*9a016c63SstevelLDFLAGS += -dy -N"misc/scsi"
64*9a016c63Sstevel
65*9a016c63Sstevel#
66*9a016c63Sstevel# Overrides.
67*9a016c63Sstevel#
68*9a016c63SstevelCFLAGS += $(CCVERBOSE)
69*9a016c63Sstevel
70*9a016c63Sstevel#
71*9a016c63Sstevel# Default build targets.
72*9a016c63Sstevel#
73*9a016c63Sstevel.KEEP_STATE:
74*9a016c63Sstevel
75*9a016c63Ssteveldef:		$(DEF_DEPS)
76*9a016c63Sstevel
77*9a016c63Sstevelall:		$(ALL_DEPS)
78*9a016c63Sstevel
79*9a016c63Sstevelclean:		$(CLEAN_DEPS)
80*9a016c63Sstevel
81*9a016c63Sstevelclobber:	$(CLOBBER_DEPS)
82*9a016c63Sstevel
83*9a016c63Sstevellint:		$(LINT_DEPS)
84*9a016c63Sstevel
85*9a016c63Sstevelmodlintlib:	$(MODLINTLIB_DEPS)
86*9a016c63Sstevel
87*9a016c63Sstevelclean.lint:	$(CLEAN_LINT_DEPS)
88*9a016c63Sstevel
89*9a016c63Sstevelinstall:	$(INSTALL_DEPS)
90*9a016c63Sstevel
91*9a016c63Sstevel#
92*9a016c63Sstevel# Include common targets.
93*9a016c63Sstevel#
94*9a016c63Sstevelinclude $(UTSBASE)/sparc/Makefile.targ
95