xref: /titanic_41/usr/src/uts/sun4u/pcie/Makefile (revision 7014882c6a3672fd0e5d60200af8643ae53c5928)
1c0da6274SZhi-Jun Robin Fu#
2c0da6274SZhi-Jun Robin Fu# CDDL HEADER START
3c0da6274SZhi-Jun Robin Fu#
4c0da6274SZhi-Jun Robin Fu# The contents of this file are subject to the terms of the
5c0da6274SZhi-Jun Robin Fu# Common Development and Distribution License (the "License").
6c0da6274SZhi-Jun Robin Fu# You may not use this file except in compliance with the License.
7c0da6274SZhi-Jun Robin Fu#
8c0da6274SZhi-Jun Robin Fu# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9c0da6274SZhi-Jun Robin Fu# or http://www.opensolaris.org/os/licensing.
10c0da6274SZhi-Jun Robin Fu# See the License for the specific language governing permissions
11c0da6274SZhi-Jun Robin Fu# and limitations under the License.
12c0da6274SZhi-Jun Robin Fu#
13c0da6274SZhi-Jun Robin Fu# When distributing Covered Code, include this CDDL HEADER in each
14c0da6274SZhi-Jun Robin Fu# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15c0da6274SZhi-Jun Robin Fu# If applicable, add the following below this CDDL HEADER, with the
16c0da6274SZhi-Jun Robin Fu# fields enclosed by brackets "[]" replaced with your own identifying
17c0da6274SZhi-Jun Robin Fu# information: Portions Copyright [yyyy] [name of copyright owner]
18c0da6274SZhi-Jun Robin Fu#
19c0da6274SZhi-Jun Robin Fu# CDDL HEADER END
20c0da6274SZhi-Jun Robin Fu#
21c0da6274SZhi-Jun Robin Fu#
22c0da6274SZhi-Jun Robin Fu# uts/sun4u/pcie/Makefile
23c0da6274SZhi-Jun Robin Fu#
24c0da6274SZhi-Jun Robin Fu# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
25c0da6274SZhi-Jun Robin Fu# Use is subject to license terms.
26c0da6274SZhi-Jun Robin Fu#
27c0da6274SZhi-Jun Robin Fu#
28c0da6274SZhi-Jun Robin Fu#	This makefile drives the production of the sun4u/kernel/misc/sparcv9/pcie module
29c0da6274SZhi-Jun Robin Fu#	for PCI-E Error handling support in PCI-E nexus drivers.
30c0da6274SZhi-Jun Robin Fu#
31c0da6274SZhi-Jun Robin Fu#	sun4u implementation architecture dependent
32c0da6274SZhi-Jun Robin Fu#
33c0da6274SZhi-Jun Robin Fu
34c0da6274SZhi-Jun Robin Fu#
35c0da6274SZhi-Jun Robin Fu#	Path to the base of the uts directory tree (usually /usr/src/uts).
36c0da6274SZhi-Jun Robin Fu#
37c0da6274SZhi-Jun Robin FuUTSBASE	= ../..
38c0da6274SZhi-Jun Robin Fu
39c0da6274SZhi-Jun Robin Fu#
40c0da6274SZhi-Jun Robin Fu#	Define the module and object file sets.
41c0da6274SZhi-Jun Robin Fu#
42c0da6274SZhi-Jun Robin FuMODULE		= pcie
43c0da6274SZhi-Jun Robin FuOBJECTS		= $(PCIE_MISC_OBJS:%=$(OBJS_DIR)/%) \
44c0da6274SZhi-Jun Robin Fu		  $(PCI_STRING_OBJS:%=$(OBJS_DIR)/%)
45c0da6274SZhi-Jun Robin FuLINTS		= $(PCIE_MISC_OBJS:%.o=$(LINTS_DIR)/%.ln) \
46c0da6274SZhi-Jun Robin Fu		  $(PCI_STRING_OBJS:%.o=$(LINTS_DIR)/%.ln)
47c0da6274SZhi-Jun Robin FuROOTMODULE	= $(ROOT_PSM_MISC_DIR)/$(MODULE)
48c0da6274SZhi-Jun Robin Fu
49c0da6274SZhi-Jun Robin Fu#
50c0da6274SZhi-Jun Robin Fu#	Include common rules.
51c0da6274SZhi-Jun Robin Fu#
52c0da6274SZhi-Jun Robin Fuinclude $(UTSBASE)/sun4u/Makefile.sun4u
53c0da6274SZhi-Jun Robin Fu
54c0da6274SZhi-Jun Robin Fu#
55c0da6274SZhi-Jun Robin Fu#	Define targets
56c0da6274SZhi-Jun Robin Fu#
57c0da6274SZhi-Jun Robin FuALL_TARGET	= $(BINARY)
58c0da6274SZhi-Jun Robin FuLINT_TARGET	= $(MODULE).lint
59c0da6274SZhi-Jun Robin FuINSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
60c0da6274SZhi-Jun Robin Fu
61c0da6274SZhi-Jun Robin Fu#
62c0da6274SZhi-Jun Robin Fu#     Dependency
63c0da6274SZhi-Jun Robin Fu#
64c0da6274SZhi-Jun Robin FuLDFLAGS += -dy -Nmisc/busra
65c0da6274SZhi-Jun Robin Fu
66*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-uninitialized
67*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-value
68*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-parentheses
69*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-type-limits
70*7014882cSRichard Lowe
71c0da6274SZhi-Jun Robin Fu#
72c0da6274SZhi-Jun Robin Fu#	Default build targets.
73c0da6274SZhi-Jun Robin Fu#
74c0da6274SZhi-Jun Robin Fu.KEEP_STATE:
75c0da6274SZhi-Jun Robin Fu
76c0da6274SZhi-Jun Robin Fudef:		$(DEF_DEPS)
77c0da6274SZhi-Jun Robin Fu
78c0da6274SZhi-Jun Robin Fuall:		$(ALL_DEPS)
79c0da6274SZhi-Jun Robin Fu
80c0da6274SZhi-Jun Robin Fuclean:		$(CLEAN_DEPS)
81c0da6274SZhi-Jun Robin Fu
82c0da6274SZhi-Jun Robin Fuclobber:	$(CLOBBER_DEPS)
83c0da6274SZhi-Jun Robin Fu
84c0da6274SZhi-Jun Robin Fulint:		$(LINT_DEPS)
85c0da6274SZhi-Jun Robin Fu
86c0da6274SZhi-Jun Robin Fumodlintlib:	$(MODLINTLIB_DEPS)
87c0da6274SZhi-Jun Robin Fu
88c0da6274SZhi-Jun Robin Fuclean.lint:	$(CLEAN_LINT_DEPS)
89c0da6274SZhi-Jun Robin Fu
90c0da6274SZhi-Jun Robin Fuinstall:	$(INSTALL_DEPS)
91c0da6274SZhi-Jun Robin Fu
92c0da6274SZhi-Jun Robin Fu#
93c0da6274SZhi-Jun Robin Fu#	Include common targets.
94c0da6274SZhi-Jun Robin Fu#
95c0da6274SZhi-Jun Robin Fuinclude $(UTSBASE)/sun4u/Makefile.targ
96