xref: /illumos-gate/usr/src/uts/i86pc/pcie/Makefile (revision 26947304)
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#
24fc51f9bbSKrishna 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*26947304SEvan YanOBJECTS		= $(PCIE_MISC_OBJS:%=$(OBJS_DIR)/%) \
44*26947304SEvan Yan		  $(PCI_STRING_OBJS:%=$(OBJS_DIR)/%)
45*26947304SEvan YanLINTS		= $(PCIE_MISC_OBJS:%.o=$(LINTS_DIR)/%.ln) \
46*26947304SEvan Yan		  $(PCI_STRING_OBJS:%.o=$(LINTS_DIR)/%.ln)
47337fc9e2SanishROOTMODULE	= $(ROOT_PSM_MISC_DIR)/$(MODULE)
48337fc9e2Sanish
49337fc9e2Sanish#
50337fc9e2Sanish#	Include common rules.
51337fc9e2Sanish#
52337fc9e2Sanishinclude $(UTSBASE)/i86pc/Makefile.i86pc
53337fc9e2Sanish
54*26947304SEvan Yan#
55*26947304SEvan Yan#	Dependency
56*26947304SEvan Yan#
57*26947304SEvan YanLDFLAGS		+= -dy -Nmisc/acpica -Nmisc/busra
58fc51f9bbSKrishna Elango
59337fc9e2Sanish#
60337fc9e2Sanish#	Define targets
61337fc9e2Sanish#
62337fc9e2SanishALL_TARGET	= $(BINARY)
63337fc9e2SanishLINT_TARGET	= $(MODULE).lint
64337fc9e2SanishINSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
65337fc9e2Sanish
66337fc9e2Sanish#
67337fc9e2Sanish#	Default build targets.
68337fc9e2Sanish#
69337fc9e2Sanish.KEEP_STATE:
70337fc9e2Sanish
71337fc9e2Sanishdef:		$(DEF_DEPS)
72337fc9e2Sanish
73337fc9e2Sanishall:		$(ALL_DEPS)
74337fc9e2Sanish
75337fc9e2Sanishclean:		$(CLEAN_DEPS)
76337fc9e2Sanish
77337fc9e2Sanishclobber:	$(CLOBBER_DEPS)
78337fc9e2Sanish
79337fc9e2Sanishlint:		$(LINT_DEPS)
80337fc9e2Sanish
81337fc9e2Sanishmodlintlib:	$(MODLINTLIB_DEPS)
82337fc9e2Sanish
83337fc9e2Sanishclean.lint:	$(CLEAN_LINT_DEPS)
84337fc9e2Sanish
85337fc9e2Sanishinstall:	$(INSTALL_DEPS)
86337fc9e2Sanish
87337fc9e2Sanish#
88337fc9e2Sanish#	Include common targets.
89337fc9e2Sanish#
90337fc9e2Sanishinclude $(UTSBASE)/i86pc/Makefile.targ
91