xref: /titanic_52/usr/src/uts/i86pc/npe/Makefile (revision 385cc6b4ad1792caef3f84eb61eed3f27085801f)
170025d76Sjohnny#
270025d76Sjohnny# CDDL HEADER START
370025d76Sjohnny#
470025d76Sjohnny# The contents of this file are subject to the terms of the
5d89fccd8Sschwartz# Common Development and Distribution License (the "License").
6d89fccd8Sschwartz# You may not use this file except in compliance with the License.
770025d76Sjohnny#
870025d76Sjohnny# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
970025d76Sjohnny# or http://www.opensolaris.org/os/licensing.
1070025d76Sjohnny# See the License for the specific language governing permissions
1170025d76Sjohnny# and limitations under the License.
1270025d76Sjohnny#
1370025d76Sjohnny# When distributing Covered Code, include this CDDL HEADER in each
1470025d76Sjohnny# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1570025d76Sjohnny# If applicable, add the following below this CDDL HEADER, with the
1670025d76Sjohnny# fields enclosed by brackets "[]" replaced with your own identifying
1770025d76Sjohnny# information: Portions Copyright [yyyy] [name of copyright owner]
1870025d76Sjohnny#
1970025d76Sjohnny# CDDL HEADER END
2070025d76Sjohnny#
2170025d76Sjohnny#
2270025d76Sjohnny# uts/i86pc/npe/Makefile
23337fc9e2Sanish#
2426947304SEvan Yan# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
2570025d76Sjohnny# Use is subject to license terms.
2670025d76Sjohnny#
27*385cc6b4SJerry Jelinek# Copyright 2016 Joyent, Inc.
28*385cc6b4SJerry Jelinek#
2970025d76Sjohnny#	This makefile drives the production of the PCI-E nexus driver
3070025d76Sjohnny#
3170025d76Sjohnny#	i86pc implementation architecture dependent
3270025d76Sjohnny#
3370025d76Sjohnny
3470025d76Sjohnny#
3570025d76Sjohnny#	Path to the base of the uts directory tree (usually /usr/src/uts).
3670025d76Sjohnny#
3770025d76SjohnnyUTSBASE	= ../..
3870025d76Sjohnny
3970025d76Sjohnny#
4070025d76Sjohnny#	Define the module and object file sets.
4170025d76Sjohnny#
4270025d76SjohnnyMODULE		= npe
4370025d76SjohnnyOBJECTS		= $(PCI_E_NEXUS_OBJS:%=$(OBJS_DIR)/%)
4470025d76SjohnnyLINTS		= $(PCI_E_NEXUS_OBJS:%.o=$(LINTS_DIR)/%.ln)
4570025d76SjohnnyROOTMODULE	= $(ROOT_PSM_DRV_DIR)/$(MODULE)
4670025d76Sjohnny
4770025d76Sjohnny#
4870025d76Sjohnny#	Include common rules.
4970025d76Sjohnny#
5070025d76Sjohnnyinclude $(UTSBASE)/i86pc/Makefile.i86pc
5170025d76Sjohnny
5270025d76Sjohnny#
5370025d76Sjohnny#	Define targets
5470025d76Sjohnny#
5570025d76SjohnnyALL_TARGET	= $(BINARY)
5670025d76SjohnnyLINT_TARGET	= $(MODULE).lint
5770025d76SjohnnyINSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
5870025d76Sjohnny
5970025d76Sjohnny#
6026947304SEvan Yan# depends on misc/acpica and misc/pcie
6170025d76Sjohnny#
6270025d76Sjohnny# acpica supplies ACPI access routines
6370025d76Sjohnny#
64337fc9e2Sanish# pcie supplies PCI Express fabric error support
65337fc9e2Sanish#
6626947304SEvan YanLDFLAGS	+= -dy -Nmisc/acpica -Nmisc/pcie
6770025d76Sjohnny
6870025d76Sjohnny#
69d89fccd8Sschwartz# Name of the module is needed by the source, to distinguish from other
70d89fccd8Sschwartz# PCI/PCI-express nexi
71d89fccd8Sschwartz#
72d89fccd8SschwartzCFLAGS		+= -D_MODULE_NAME="\"$(MODULE)\""
73d89fccd8SschwartzLINTFLAGS	+= -D_MODULE_NAME="\"$(MODULE)\""
74d89fccd8Sschwartz
75d89fccd8Sschwartz#
76bb25c06cSjg# For now, disable these lint checks; maintainers should endeavor
77bb25c06cSjg# to investigate and remove these for maximum lint coverage.
78bb25c06cSjg# Please do not carry these forward to new Makefiles.
79bb25c06cSjg#
80bb25c06cSjgLINTTAGS	+= -erroff=E_SUSPICIOUS_COMPARISON
81bb25c06cSjgLINTTAGS	+= -erroff=E_ASSIGN_NARROW_CONV
82bb25c06cSjg
837014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-uninitialized
847014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-parentheses
85*385cc6b4SJerry JelinekCERRWARN	+= -_gcc=-Wno-unused-function
867014882cSRichard Lowe
87bb25c06cSjg#
8870025d76Sjohnny#	Default build targets.
8970025d76Sjohnny#
9070025d76Sjohnny.KEEP_STATE:
9170025d76Sjohnny
9270025d76Sjohnnydef:		$(DEF_DEPS)
9370025d76Sjohnny
9470025d76Sjohnnyall:		$(ALL_DEPS)
9570025d76Sjohnny
9670025d76Sjohnnyclean:		$(CLEAN_DEPS)
9770025d76Sjohnny
9870025d76Sjohnnyclobber:	$(CLOBBER_DEPS)
9970025d76Sjohnny
10070025d76Sjohnnylint:		$(LINT_DEPS)
10170025d76Sjohnny
10270025d76Sjohnnymodlintlib:	$(MODLINTLIB_DEPS)
10370025d76Sjohnny
10470025d76Sjohnnyclean.lint:	$(CLEAN_LINT_DEPS)
10570025d76Sjohnny
10670025d76Sjohnnyinstall:	$(INSTALL_DEPS)
10770025d76Sjohnny
10870025d76Sjohnny#
10970025d76Sjohnny#	Include common targets.
11070025d76Sjohnny#
11170025d76Sjohnnyinclude $(UTSBASE)/i86pc/Makefile.targ
112