xref: /titanic_44/usr/src/uts/intel/arcmsr/Makefile (revision 7014882c6a3672fd0e5d60200af8643ae53c5928)
1508aff1aSJames C. McPherson#
2508aff1aSJames C. McPherson# CDDL HEADER START
3508aff1aSJames C. McPherson#
4508aff1aSJames C. McPherson# The contents of this file are subject to the terms of the
5508aff1aSJames C. McPherson# Common Development and Distribution License (the "License").
6508aff1aSJames C. McPherson# You may not use this file except in compliance with the License.
7508aff1aSJames C. McPherson#
8508aff1aSJames C. McPherson# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9508aff1aSJames C. McPherson# or http://www.opensolaris.org/os/licensing.
10508aff1aSJames C. McPherson# See the License for the specific language governing permissions
11508aff1aSJames C. McPherson# and limitations under the License.
12508aff1aSJames C. McPherson#
13508aff1aSJames C. McPherson# When distributing Covered Code, include this CDDL HEADER in each
14508aff1aSJames C. McPherson# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15508aff1aSJames C. McPherson# If applicable, add the following below this CDDL HEADER, with the
16508aff1aSJames C. McPherson# fields enclosed by brackets "[]" replaced with your own identifying
17508aff1aSJames C. McPherson# information: Portions Copyright [yyyy] [name of copyright owner]
18508aff1aSJames C. McPherson#
19508aff1aSJames C. McPherson# CDDL HEADER END
20508aff1aSJames C. McPherson#
21508aff1aSJames C. McPherson# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
22508aff1aSJames C. McPherson# Use is subject to license terms.
23508aff1aSJames C. McPherson#
24508aff1aSJames C. McPherson
25508aff1aSJames C. McPherson#
26508aff1aSJames C. McPherson#	Paths to the base of the uts directory trees
27508aff1aSJames C. McPherson#
286628d1d9SJames C. McPhersonUTSBASE   = ../..
29508aff1aSJames C. McPherson
30508aff1aSJames C. McPherson#
31508aff1aSJames C. McPherson# Define the module and object file sets.
32508aff1aSJames C. McPherson#
33508aff1aSJames C. McPhersonMODULE		= arcmsr
34508aff1aSJames C. McPhersonOBJECTS		= $(ARCMSR_OBJS:%=$(OBJS_DIR)/%)
35508aff1aSJames C. McPhersonLINTS		= $(ARCMSR_OBJS:%.o=$(LINTS_DIR)/%.ln)
36508aff1aSJames C. McPhersonROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
37508aff1aSJames C. McPhersonCONF_SRCDIR	= $(UTSBASE)/intel/io/scsi/adapters/arcmsr
38508aff1aSJames C. McPherson
39508aff1aSJames C. McPherson#
40508aff1aSJames C. McPherson# Include common rules.
41508aff1aSJames C. McPherson#
42508aff1aSJames C. McPhersoninclude $(UTSBASE)/intel/Makefile.intel
43508aff1aSJames C. McPherson
44*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-switch
45*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-unused-label
46*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-parentheses
47*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-uninitialized
48*7014882cSRichard Lowe
49508aff1aSJames C. McPherson#
50508aff1aSJames C. McPherson# Define targets.
51508aff1aSJames C. McPherson#
52508aff1aSJames C. McPhersonALL_TARGET	= $(BINARY) $(CONFMOD)
53508aff1aSJames C. McPhersonLINT_TARGET	= $(MODULE).lint
54508aff1aSJames C. McPhersonINSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
55508aff1aSJames C. McPherson
56508aff1aSJames C. McPherson#
57508aff1aSJames C. McPherson# Note dependancy on misc/scsi.
58508aff1aSJames C. McPherson#
59508aff1aSJames C. McPhersonLDFLAGS += -dy -N"misc/scsi"
60*7014882cSRichard Lowe
61508aff1aSJames C. McPherson#
62508aff1aSJames C. McPherson# Default build targets.
63508aff1aSJames C. McPherson#
64508aff1aSJames C. McPherson.KEEP_STATE:
65508aff1aSJames C. McPherson
66508aff1aSJames C. McPhersondef:		$(DEF_DEPS)
67508aff1aSJames C. McPherson
68508aff1aSJames C. McPhersonall:		$(ALL_DEPS)
69508aff1aSJames C. McPherson
70508aff1aSJames C. McPhersonclean:		$(CLEAN_DEPS)
71508aff1aSJames C. McPherson
72508aff1aSJames C. McPhersonclobber:	$(CLOBBER_DEPS)
73508aff1aSJames C. McPherson
74508aff1aSJames C. McPhersonlint:		$(LINT_DEPS)
75508aff1aSJames C. McPherson
76508aff1aSJames C. McPhersonmodlintlib:	$(MODLINTLIB_DEPS)
77508aff1aSJames C. McPherson
78508aff1aSJames C. McPhersonclean.lint:	$(CLEAN_LINT_DEPS)
79508aff1aSJames C. McPherson
80508aff1aSJames C. McPhersoninstall:	$(INSTALL_DEPS)
81508aff1aSJames C. McPherson
82508aff1aSJames C. McPherson#
83508aff1aSJames C. McPherson# Include common targets.
84508aff1aSJames C. McPherson#
85508aff1aSJames C. McPhersoninclude $(UTSBASE)/intel/Makefile.targ
86