xref: /titanic_50/usr/src/uts/i86pc/acpi_drv/Makefile (revision 385cc6b4ad1792caef3f84eb61eed3f27085801f)
1d2ec54f7Sphitran#
2d2ec54f7Sphitran# CDDL HEADER START
3d2ec54f7Sphitran#
4d2ec54f7Sphitran# The contents of this file are subject to the terms of the
5d2ec54f7Sphitran# Common Development and Distribution License (the "License").
6d2ec54f7Sphitran# You may not use this file except in compliance with the License.
7d2ec54f7Sphitran#
8d2ec54f7Sphitran# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9d2ec54f7Sphitran# or http://www.opensolaris.org/os/licensing.
10d2ec54f7Sphitran# See the License for the specific language governing permissions
11d2ec54f7Sphitran# and limitations under the License.
12d2ec54f7Sphitran#
13d2ec54f7Sphitran# When distributing Covered Code, include this CDDL HEADER in each
14d2ec54f7Sphitran# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15d2ec54f7Sphitran# If applicable, add the following below this CDDL HEADER, with the
16d2ec54f7Sphitran# fields enclosed by brackets "[]" replaced with your own identifying
17d2ec54f7Sphitran# information: Portions Copyright [yyyy] [name of copyright owner]
18d2ec54f7Sphitran#
19d2ec54f7Sphitran# CDDL HEADER END
20d2ec54f7Sphitran#
21d2ec54f7Sphitran
22d2ec54f7Sphitran#
23d2ec54f7Sphitran# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
24d2ec54f7Sphitran# Use is subject to license terms.
25d2ec54f7Sphitran#
26*385cc6b4SJerry Jelinek# Copyright 2016 Joyent, Inc.
27d2ec54f7Sphitran#
28d2ec54f7Sphitran
29d2ec54f7Sphitran#	This makefile drives the production of the acpi_drv
30d2ec54f7Sphitran#	driver kernel module.
31d2ec54f7Sphitran#
32d2ec54f7Sphitran#	i86pc architecture dependent
33d2ec54f7Sphitran#
34d2ec54f7Sphitran
35d2ec54f7Sphitran#
36d2ec54f7Sphitran#	Path to the base of the uts directory tree (usually /usr/src/uts).
37d2ec54f7Sphitran#
38d2ec54f7SphitranUTSBASE	= ../..
39d2ec54f7Sphitran
40d2ec54f7Sphitran#
41d2ec54f7Sphitran#	Define the module and object file sets.
42d2ec54f7Sphitran#
43d2ec54f7SphitranMODULE		= acpi_drv
44d2ec54f7SphitranOBJECTS		= $(ACPI_DRV_OBJS:%=$(OBJS_DIR)/%)
45d2ec54f7SphitranLINTS		= $(ACPI_DRV_OBJS:%.o=$(LINTS_DIR)/%.ln)
46d2ec54f7SphitranROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
47d2ec54f7SphitranCONF_SRCDIR	= $(UTSBASE)/i86pc/io/acpi_drv
48d2ec54f7Sphitran
49d2ec54f7Sphitran#
50d2ec54f7Sphitran#	Include common rules.
51d2ec54f7Sphitran#
52d2ec54f7Sphitraninclude $(UTSBASE)/i86pc/Makefile.i86pc
53d2ec54f7Sphitran
54d2ec54f7Sphitran#
55d2ec54f7Sphitran#	Define targets
56d2ec54f7Sphitran#
57d2ec54f7SphitranALL_TARGET	= $(BINARY) $(CONFMOD)
58d2ec54f7SphitranLINT_TARGET	= $(MODULE).lint
59d2ec54f7SphitranINSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
60d2ec54f7Sphitran
61d2ec54f7SphitranDEBUG_FLGS      =
62d2ec54f7Sphitran$(NOT_RELEASE_BUILD)DEBUG_DEFS	+= $(DEBUG_FLGS)
63d2ec54f7Sphitran
64d2ec54f7SphitranCPPFLAGS	+= -DSUNDDI
65d2ec54f7Sphitran
66*385cc6b4SJerry JelinekCERRWARN	+= -_gcc=-Wno-unused-function
67*385cc6b4SJerry Jelinek
68d2ec54f7SphitranLDFLAGS		+= -dy -N misc/acpica
69d2ec54f7Sphitran
70d2ec54f7Sphitran#
71d2ec54f7Sphitran# For now, disable these lint checks; maintainers should endeavor
72d2ec54f7Sphitran# to investigate and remove these for maximum lint coverage.
73d2ec54f7Sphitran# Please do not carry these forward to new Makefiles.
74d2ec54f7Sphitran#
75d2ec54f7SphitranLINTTAGS	+= -erroff=E_BAD_PTR_CAST_ALIGN
76d2ec54f7Sphitran
77d2ec54f7Sphitran#
78d2ec54f7Sphitran#	Overrides
79d2ec54f7Sphitran#
80d2ec54f7SphitranC99LMODE=	-Xc99=%all
81d2ec54f7Sphitran
82d2ec54f7Sphitran#
83d2ec54f7Sphitran#	Default build targets.
84d2ec54f7Sphitran#
85d2ec54f7Sphitran.KEEP_STATE:
86d2ec54f7Sphitran
87d2ec54f7Sphitrandef:		$(DEF_DEPS)
88d2ec54f7Sphitran
89d2ec54f7Sphitranall:		$(ALL_DEPS)
90d2ec54f7Sphitran
91d2ec54f7Sphitranclean:		$(CLEAN_DEPS)
92d2ec54f7Sphitran
93d2ec54f7Sphitranclobber:	$(CLOBBER_DEPS)
94d2ec54f7Sphitran
95d2ec54f7Sphitranlint:		$(LINT_DEPS)
96d2ec54f7Sphitran
97d2ec54f7Sphitranmodlintlib:	$(MODLINTLIB_DEPS)
98d2ec54f7Sphitran
99d2ec54f7Sphitranclean.lint:	$(CLEAN_LINT_DEPS)
100d2ec54f7Sphitran
101d2ec54f7Sphitraninstall:	$(INSTALL_DEPS)
102d2ec54f7Sphitran
103d2ec54f7Sphitran#
104d2ec54f7Sphitran#	Include common targets.
105d2ec54f7Sphitran#
106d2ec54f7Sphitraninclude $(UTSBASE)/i86pc/Makefile.targ
107