xref: /illumos-gate/usr/src/uts/i86pc/pcie/Makefile (revision 337fc9e235877b459e389f54daf9833bbc645439)
1*337fc9e2Sanish#
2*337fc9e2Sanish# CDDL HEADER START
3*337fc9e2Sanish#
4*337fc9e2Sanish# The contents of this file are subject to the terms of the
5*337fc9e2Sanish# Common Development and Distribution License (the "License").
6*337fc9e2Sanish# You may not use this file except in compliance with the License.
7*337fc9e2Sanish#
8*337fc9e2Sanish# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*337fc9e2Sanish# or http://www.opensolaris.org/os/licensing.
10*337fc9e2Sanish# See the License for the specific language governing permissions
11*337fc9e2Sanish# and limitations under the License.
12*337fc9e2Sanish#
13*337fc9e2Sanish# When distributing Covered Code, include this CDDL HEADER in each
14*337fc9e2Sanish# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*337fc9e2Sanish# If applicable, add the following below this CDDL HEADER, with the
16*337fc9e2Sanish# fields enclosed by brackets "[]" replaced with your own identifying
17*337fc9e2Sanish# information: Portions Copyright [yyyy] [name of copyright owner]
18*337fc9e2Sanish#
19*337fc9e2Sanish# CDDL HEADER END
20*337fc9e2Sanish#
21*337fc9e2Sanish#
22*337fc9e2Sanish# uts/i86pc/pcie/Makefile
23*337fc9e2Sanish#
24*337fc9e2Sanish# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
25*337fc9e2Sanish# Use is subject to license terms.
26*337fc9e2Sanish#
27*337fc9e2Sanish#ident	"%Z%%M%	%I%	%E% SMI"
28*337fc9e2Sanish#
29*337fc9e2Sanish#	This makefile drives the production of the kernel/misc/pcie module
30*337fc9e2Sanish#	for PCI-E Error handling support in PCI-E nexus drivers.
31*337fc9e2Sanish#
32*337fc9e2Sanish#	i86pc implementation architecture dependent
33*337fc9e2Sanish#
34*337fc9e2Sanish
35*337fc9e2Sanish#
36*337fc9e2Sanish#	Path to the base of the uts directory tree (usually /usr/src/uts).
37*337fc9e2Sanish#
38*337fc9e2SanishUTSBASE	= ../..
39*337fc9e2Sanish
40*337fc9e2Sanish#
41*337fc9e2Sanish#	Define the module and object file sets.
42*337fc9e2Sanish#
43*337fc9e2SanishMODULE		= pcie
44*337fc9e2SanishOBJECTS		= $(PCI_E_MISC_OBJS:%=$(OBJS_DIR)/%)
45*337fc9e2SanishLINTS		= $(PCI_E_MISC_OBJS:%.o=$(LINTS_DIR)/%.ln)
46*337fc9e2SanishROOTMODULE	= $(ROOT_PSM_MISC_DIR)/$(MODULE)
47*337fc9e2Sanish
48*337fc9e2Sanish#
49*337fc9e2Sanish#	Include common rules.
50*337fc9e2Sanish#
51*337fc9e2Sanishinclude $(UTSBASE)/i86pc/Makefile.i86pc
52*337fc9e2Sanish
53*337fc9e2Sanish#
54*337fc9e2Sanish#	Define targets
55*337fc9e2Sanish#
56*337fc9e2SanishALL_TARGET	= $(BINARY)
57*337fc9e2SanishLINT_TARGET	= $(MODULE).lint
58*337fc9e2SanishINSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
59*337fc9e2Sanish
60*337fc9e2Sanish#
61*337fc9e2Sanish#	Default build targets.
62*337fc9e2Sanish#
63*337fc9e2Sanish.KEEP_STATE:
64*337fc9e2Sanish
65*337fc9e2Sanishdef:		$(DEF_DEPS)
66*337fc9e2Sanish
67*337fc9e2Sanishall:		$(ALL_DEPS)
68*337fc9e2Sanish
69*337fc9e2Sanishclean:		$(CLEAN_DEPS)
70*337fc9e2Sanish
71*337fc9e2Sanishclobber:	$(CLOBBER_DEPS)
72*337fc9e2Sanish
73*337fc9e2Sanishlint:		$(LINT_DEPS)
74*337fc9e2Sanish
75*337fc9e2Sanishmodlintlib:	$(MODLINTLIB_DEPS)
76*337fc9e2Sanish
77*337fc9e2Sanishclean.lint:	$(CLEAN_LINT_DEPS)
78*337fc9e2Sanish
79*337fc9e2Sanishinstall:	$(INSTALL_DEPS)
80*337fc9e2Sanish
81*337fc9e2Sanish#
82*337fc9e2Sanish#	Include common targets.
83*337fc9e2Sanish#
84*337fc9e2Sanishinclude $(UTSBASE)/i86pc/Makefile.targ
85