xref: /illumos-gate/usr/src/uts/i86pc/pcie/Makefile (revision fc51f9bb)
1337fc9e2Sanish#
2337fc9e2Sanish# CDDL HEADER START
3337fc9e2Sanish#
4337fc9e2Sanish# The contents of this file are subject to the terms of the
5337fc9e2Sanish# Common Development and Distribution License (the "License").
6337fc9e2Sanish# You may not use this file except in compliance with the License.
7337fc9e2Sanish#
8337fc9e2Sanish# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9337fc9e2Sanish# or http://www.opensolaris.org/os/licensing.
10337fc9e2Sanish# See the License for the specific language governing permissions
11337fc9e2Sanish# and limitations under the License.
12337fc9e2Sanish#
13337fc9e2Sanish# When distributing Covered Code, include this CDDL HEADER in each
14337fc9e2Sanish# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15337fc9e2Sanish# If applicable, add the following below this CDDL HEADER, with the
16337fc9e2Sanish# fields enclosed by brackets "[]" replaced with your own identifying
17337fc9e2Sanish# information: Portions Copyright [yyyy] [name of copyright owner]
18337fc9e2Sanish#
19337fc9e2Sanish# CDDL HEADER END
20337fc9e2Sanish#
21337fc9e2Sanish#
22337fc9e2Sanish# uts/i86pc/pcie/Makefile
23337fc9e2Sanish#
24*fc51f9bbSKrishna Elango# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
25337fc9e2Sanish# Use is subject to license terms.
26337fc9e2Sanish#
27337fc9e2Sanish#
28337fc9e2Sanish#	This makefile drives the production of the kernel/misc/pcie module
29337fc9e2Sanish#	for PCI-E Error handling support in PCI-E nexus drivers.
30337fc9e2Sanish#
31337fc9e2Sanish#	i86pc implementation architecture dependent
32337fc9e2Sanish#
33337fc9e2Sanish
34337fc9e2Sanish#
35337fc9e2Sanish#	Path to the base of the uts directory tree (usually /usr/src/uts).
36337fc9e2Sanish#
37337fc9e2SanishUTSBASE	= ../..
38337fc9e2Sanish
39337fc9e2Sanish#
40337fc9e2Sanish#	Define the module and object file sets.
41337fc9e2Sanish#
42337fc9e2SanishMODULE		= pcie
43*fc51f9bbSKrishna ElangoOBJECTS		= $(PCIE_MISC_OBJS:%=$(OBJS_DIR)/%)
44*fc51f9bbSKrishna ElangoLINTS		= $(PCIE_MISC_OBJS:%.o=$(LINTS_DIR)/%.ln)
45337fc9e2SanishROOTMODULE	= $(ROOT_PSM_MISC_DIR)/$(MODULE)
46337fc9e2Sanish
47337fc9e2Sanish#
48337fc9e2Sanish#	Include common rules.
49337fc9e2Sanish#
50337fc9e2Sanishinclude $(UTSBASE)/i86pc/Makefile.i86pc
51337fc9e2Sanish
52*fc51f9bbSKrishna ElangoLDFLAGS         += -dy -Nmisc/acpica
53*fc51f9bbSKrishna Elango
54337fc9e2Sanish#
55337fc9e2Sanish#	Define targets
56337fc9e2Sanish#
57337fc9e2SanishALL_TARGET	= $(BINARY)
58337fc9e2SanishLINT_TARGET	= $(MODULE).lint
59337fc9e2SanishINSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
60337fc9e2Sanish
61337fc9e2Sanish#
62337fc9e2Sanish#	Default build targets.
63337fc9e2Sanish#
64337fc9e2Sanish.KEEP_STATE:
65337fc9e2Sanish
66337fc9e2Sanishdef:		$(DEF_DEPS)
67337fc9e2Sanish
68337fc9e2Sanishall:		$(ALL_DEPS)
69337fc9e2Sanish
70337fc9e2Sanishclean:		$(CLEAN_DEPS)
71337fc9e2Sanish
72337fc9e2Sanishclobber:	$(CLOBBER_DEPS)
73337fc9e2Sanish
74337fc9e2Sanishlint:		$(LINT_DEPS)
75337fc9e2Sanish
76337fc9e2Sanishmodlintlib:	$(MODLINTLIB_DEPS)
77337fc9e2Sanish
78337fc9e2Sanishclean.lint:	$(CLEAN_LINT_DEPS)
79337fc9e2Sanish
80337fc9e2Sanishinstall:	$(INSTALL_DEPS)
81337fc9e2Sanish
82337fc9e2Sanish#
83337fc9e2Sanish#	Include common targets.
84337fc9e2Sanish#
85337fc9e2Sanishinclude $(UTSBASE)/i86pc/Makefile.targ
86