Merge illumos-gate
[unleashed/lotheac.git] / usr / src / uts / i86pc / npe / Makefile
blobb8e98e6825ce9c30a5ec6a117be24fb6a77497f4
2 # CDDL HEADER START
4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
19 # CDDL HEADER END
22 # uts/i86pc/npe/Makefile
24 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
25 # Use is subject to license terms.
27 # Copyright 2016 Joyent, Inc.
29 # This makefile drives the production of the PCI-E nexus driver
31 # i86pc implementation architecture dependent
35 # Path to the base of the uts directory tree (usually /usr/src/uts).
37 UTSBASE = ../..
40 # Define the module and object file sets.
42 MODULE = npe
43 OBJECTS = $(PCI_E_NEXUS_OBJS:%=$(OBJS_DIR)/%)
44 ROOTMODULE = $(ROOT_PSM_DRV_DIR)/$(MODULE)
47 # Include common rules.
49 include $(UTSBASE)/i86pc/Makefile.i86pc
52 # Define targets
54 ALL_TARGET = $(BINARY)
55 INSTALL_TARGET = $(BINARY) $(ROOTMODULE)
58 # depends on misc/acpica and misc/pcie
60 # acpica supplies ACPI access routines
62 # pcie supplies PCI Express fabric error support
64 LDFLAGS += -dy -Nmisc/acpica -Nmisc/pcie
67 # Name of the module is needed by the source, to distinguish from other
68 # PCI/PCI-express nexi
70 CFLAGS += -D_MODULE_NAME="\"$(MODULE)\""
73 # For now, disable these compiler warnings; maintainers should endeavor to
74 # investigate and remove these for maximum coverage. Please do not carry
75 # these forward to new Makefiles.
78 CERRWARN += -Wno-uninitialized
79 CERRWARN += -Wno-parentheses
80 CERRWARN += -Wno-unused-function
83 # Default build targets.
85 .KEEP_STATE:
87 def: $(DEF_DEPS)
89 all: $(ALL_DEPS)
91 clean: $(CLEAN_DEPS)
93 clobber: $(CLOBBER_DEPS)
95 install: $(INSTALL_DEPS)
98 # Include common targets.
100 include $(UTSBASE)/i86pc/Makefile.targ