xref: /illumos-gate/usr/src/uts/i86xpv/npe/Makefile (revision d3b5f563)
15cff7825Smh#
25cff7825Smh# CDDL HEADER START
35cff7825Smh#
45cff7825Smh# The contents of this file are subject to the terms of the
55cff7825Smh# Common Development and Distribution License (the "License").
65cff7825Smh# You may not use this file except in compliance with the License.
75cff7825Smh#
85cff7825Smh# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
95cff7825Smh# or http://www.opensolaris.org/os/licensing.
105cff7825Smh# See the License for the specific language governing permissions
115cff7825Smh# and limitations under the License.
125cff7825Smh#
135cff7825Smh# When distributing Covered Code, include this CDDL HEADER in each
145cff7825Smh# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
155cff7825Smh# If applicable, add the following below this CDDL HEADER, with the
165cff7825Smh# fields enclosed by brackets "[]" replaced with your own identifying
175cff7825Smh# information: Portions Copyright [yyyy] [name of copyright owner]
185cff7825Smh#
195cff7825Smh# CDDL HEADER END
205cff7825Smh#
21843e1988Sjohnlev
225cff7825Smh#
2326947304SEvan Yan# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
245cff7825Smh# Use is subject to license terms.
255cff7825Smh#
267b1019a6SJerry Jelinek# Copyright 2016 Joyent, Inc.
277b1019a6SJerry Jelinek#
28843e1988Sjohnlev#	This makefile drives the production of the PCI-E nexus driver
295cff7825Smh#
30843e1988Sjohnlev#	i86xpv implementation architecture dependent
315cff7825Smh#
325cff7825Smh
335cff7825Smh#
345cff7825Smh#	Path to the base of the uts directory tree (usually /usr/src/uts).
355cff7825Smh#
36843e1988SjohnlevUTSBASE	= ../..
375cff7825Smh
385cff7825Smh#
395cff7825Smh#	Define the module and object file sets.
405cff7825Smh#
41843e1988SjohnlevMODULE		= npe
42843e1988SjohnlevOBJECTS		= $(PCI_E_NEXUS_OBJS:%=$(OBJS_DIR)/%)
43843e1988SjohnlevLINTS		= $(PCI_E_NEXUS_OBJS:%.o=$(LINTS_DIR)/%.ln)
445cff7825SmhROOTMODULE	= $(ROOT_PSM_DRV_DIR)/$(MODULE)
455cff7825Smh
465cff7825Smh#
475cff7825Smh#	Include common rules.
485cff7825Smh#
49843e1988Sjohnlevinclude $(UTSBASE)/i86xpv/Makefile.i86xpv
505cff7825Smh
515cff7825Smh#
525cff7825Smh#	Define targets
535cff7825Smh#
545cff7825SmhALL_TARGET	= $(BINARY)
555cff7825SmhLINT_TARGET	= $(MODULE).lint
565cff7825SmhINSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
575cff7825Smh
58843e1988Sjohnlev#
5926947304SEvan Yan# depends on misc/acpica and misc/pcie
60843e1988Sjohnlev#
61843e1988Sjohnlev# acpica supplies ACPI access routines
62843e1988Sjohnlev#
6326947304SEvan Yan# pcie supplies PCI Express fabric error support
6426947304SEvan Yan#
6526947304SEvan YanLDFLAGS	+= -dy -Nmisc/acpica -Nmisc/pcie
66843e1988Sjohnlev
67843e1988Sjohnlev#
68843e1988Sjohnlev# Name of the module is needed by the source, to distinguish from other
69843e1988Sjohnlev# PCI/PCI-express nexi
70843e1988Sjohnlev#
71843e1988SjohnlevCFLAGS		+= -D_MODULE_NAME="\"$(MODULE)\""
72843e1988SjohnlevLINTFLAGS	+= -D_MODULE_NAME="\"$(MODULE)\""
73843e1988Sjohnlev
74843e1988SjohnlevLINTTAGS	+= -erroff=E_ASSIGN_NARROW_CONV
75843e1988SjohnlevLINTTAGS	+= -erroff=E_SUSPICIOUS_COMPARISON
76843e1988Sjohnlev
77*d3b5f563SJohn LevonCERRWARN	+= $(CNOWARN_UNINIT)
787014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-parentheses
797b1019a6SJerry JelinekCERRWARN	+= -_gcc=-Wno-unused-function
807014882cSRichard Lowe
815cff7825Smh#
825cff7825Smh#	Default build targets.
835cff7825Smh#
845cff7825Smh.KEEP_STATE:
855cff7825Smh
865cff7825Smhdef:		$(DEF_DEPS)
875cff7825Smh
885cff7825Smhall:		$(ALL_DEPS)
895cff7825Smh
905cff7825Smhclean:		$(CLEAN_DEPS)
915cff7825Smh
925cff7825Smhclobber:	$(CLOBBER_DEPS)
935cff7825Smh
945cff7825Smhlint:		$(LINT_DEPS)
955cff7825Smh
965cff7825Smhmodlintlib:	$(MODLINTLIB_DEPS)
975cff7825Smh
985cff7825Smhclean.lint:	$(CLEAN_LINT_DEPS)
995cff7825Smh
1005cff7825Smhinstall:	$(INSTALL_DEPS)
1015cff7825Smh
1025cff7825Smh#
1035cff7825Smh#	Include common targets.
1045cff7825Smh#
105843e1988Sjohnlevinclude $(UTSBASE)/i86xpv/Makefile.targ
106