xref: /illumos-gate/usr/src/uts/i86pc/acpinex/Makefile (revision b6b206fc7fb36f7b13b01acf70ed6e676e405998)
1b72d5b75SMichael Corcoran#
2b72d5b75SMichael Corcoran# CDDL HEADER START
3b72d5b75SMichael Corcoran#
4b72d5b75SMichael Corcoran# The contents of this file are subject to the terms of the
5b72d5b75SMichael Corcoran# Common Development and Distribution License (the "License").
6b72d5b75SMichael Corcoran# You may not use this file except in compliance with the License.
7b72d5b75SMichael Corcoran#
8b72d5b75SMichael Corcoran# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9b72d5b75SMichael Corcoran# or http://www.opensolaris.org/os/licensing.
10b72d5b75SMichael Corcoran# See the License for the specific language governing permissions
11b72d5b75SMichael Corcoran# and limitations under the License.
12b72d5b75SMichael Corcoran#
13b72d5b75SMichael Corcoran# When distributing Covered Code, include this CDDL HEADER in each
14b72d5b75SMichael Corcoran# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15b72d5b75SMichael Corcoran# If applicable, add the following below this CDDL HEADER, with the
16b72d5b75SMichael Corcoran# fields enclosed by brackets "[]" replaced with your own identifying
17b72d5b75SMichael Corcoran# information: Portions Copyright [yyyy] [name of copyright owner]
18b72d5b75SMichael Corcoran#
19b72d5b75SMichael Corcoran# CDDL HEADER END
20b72d5b75SMichael Corcoran#
21b72d5b75SMichael Corcoran#
22b72d5b75SMichael Corcoran# uts/i86pc/acpinex/Makefile
23b72d5b75SMichael Corcoran#
24b72d5b75SMichael Corcoran# Copyright (c) 2009, Intel Corporation.
25b72d5b75SMichael Corcoran# All rights reserved.
26b72d5b75SMichael Corcoran#
27*b6b206fcSJohn Levon# Copyright (c) 2018, Joyent, Inc.
287b1019a6SJerry Jelinek#
29b72d5b75SMichael Corcoran#	This makefile drives the production of the ACPI virtual nexus
30b72d5b75SMichael Corcoran#	kernel module.
31b72d5b75SMichael Corcoran#
32b72d5b75SMichael Corcoran#	intel platform dependent
33b72d5b75SMichael Corcoran#
34b72d5b75SMichael Corcoran
35b72d5b75SMichael Corcoran#
36b72d5b75SMichael Corcoran#	Path to the base of the uts directory tree (usually /usr/src/uts).
37b72d5b75SMichael Corcoran#
38b72d5b75SMichael CorcoranUTSBASE	= ../..
39b72d5b75SMichael Corcoran
40b72d5b75SMichael Corcoran#
41b72d5b75SMichael Corcoran#	Define the module and object file sets.
42b72d5b75SMichael Corcoran#
43b72d5b75SMichael CorcoranMODULE		= acpinex
44b72d5b75SMichael CorcoranOBJECTS		= $(ACPINEX_OBJS:%=$(OBJS_DIR)/%)
45b72d5b75SMichael CorcoranLINTS		= $(ACPINEX_OBJS:%.o=$(LINTS_DIR)/%.ln)
46b72d5b75SMichael CorcoranROOTMODULE	= $(ROOT_PSM_DRV_DIR)/$(MODULE)
47b72d5b75SMichael Corcoran
48b72d5b75SMichael Corcoran#
49b72d5b75SMichael Corcoran#	Include common rules.
50b72d5b75SMichael Corcoran#
51b72d5b75SMichael Corcoraninclude $(UTSBASE)/i86pc/Makefile.i86pc
52b72d5b75SMichael Corcoran
53b72d5b75SMichael Corcoran#
54b72d5b75SMichael Corcoran#	Define targets
55b72d5b75SMichael Corcoran#
56b72d5b75SMichael CorcoranALL_TARGET	= $(BINARY)
57b72d5b75SMichael CorcoranLINT_TARGET	= $(MODULE).lint
58b72d5b75SMichael CorcoranINSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
59b72d5b75SMichael Corcoran
60b72d5b75SMichael Corcoran#
61b72d5b75SMichael Corcoran# Depends on acpica ACPI CA interpreter
62b72d5b75SMichael Corcoran#
63b72d5b75SMichael CorcoranLDFLAGS		+= -dy -N misc/acpica -N misc/acpidev
64b72d5b75SMichael Corcoran
657b1019a6SJerry JelinekCERRWARN	+= -_gcc=-Wno-unused-function
667b1019a6SJerry Jelinek
67*b6b206fcSJohn Levon# needs work
68*b6b206fcSJohn LevonSMOFF += deref_check
69*b6b206fcSJohn Levon
70b72d5b75SMichael Corcoran#
71b72d5b75SMichael Corcoran#	Default build targets.
72b72d5b75SMichael Corcoran#
73b72d5b75SMichael Corcoran.KEEP_STATE:
74b72d5b75SMichael Corcoran
75b72d5b75SMichael Corcorandef:		$(DEF_DEPS)
76b72d5b75SMichael Corcoran
77b72d5b75SMichael Corcoranall:		$(ALL_DEPS)
78b72d5b75SMichael Corcoran
79b72d5b75SMichael Corcoranclean:		$(CLEAN_DEPS)
80b72d5b75SMichael Corcoran
81b72d5b75SMichael Corcoranclobber:	$(CLOBBER_DEPS)
82b72d5b75SMichael Corcoran
83b72d5b75SMichael Corcoranlint:		$(LINT_DEPS)
84b72d5b75SMichael Corcoran
85b72d5b75SMichael Corcoranmodlintlib:	$(MODLINTLIB_DEPS)
86b72d5b75SMichael Corcoran
87b72d5b75SMichael Corcoranclean.lint:	$(CLEAN_LINT_DEPS)
88b72d5b75SMichael Corcoran
89b72d5b75SMichael Corcoraninstall:	$(INSTALL_DEPS)
90b72d5b75SMichael Corcoran
91b72d5b75SMichael Corcoran#
92b72d5b75SMichael Corcoran#	Include common targets.
93b72d5b75SMichael Corcoran#
94b72d5b75SMichael Corcoraninclude $(UTSBASE)/i86pc/Makefile.targ
95