Makefile revision 7b1019a6d29ccb7999dc76cba3dde1c627e8e609
842ae4bd224140319ae7feec1872b93dfd491143fielding#
842ae4bd224140319ae7feec1872b93dfd491143fielding# CDDL HEADER START
842ae4bd224140319ae7feec1872b93dfd491143fielding#
842ae4bd224140319ae7feec1872b93dfd491143fielding# The contents of this file are subject to the terms of the
842ae4bd224140319ae7feec1872b93dfd491143fielding# Common Development and Distribution License (the "License").
842ae4bd224140319ae7feec1872b93dfd491143fielding# You may not use this file except in compliance with the License.
ef5650b61a8e35f3cc93ec07e73efc17ea329894jorton#
ef5650b61a8e35f3cc93ec07e73efc17ea329894jorton# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
ef5650b61a8e35f3cc93ec07e73efc17ea329894jorton# or http://www.opensolaris.org/os/licensing.
ef5650b61a8e35f3cc93ec07e73efc17ea329894jorton# See the License for the specific language governing permissions
ef5650b61a8e35f3cc93ec07e73efc17ea329894jorton# and limitations under the License.
ef5650b61a8e35f3cc93ec07e73efc17ea329894jorton#
ef5650b61a8e35f3cc93ec07e73efc17ea329894jorton# When distributing Covered Code, include this CDDL HEADER in each
ef5650b61a8e35f3cc93ec07e73efc17ea329894jorton# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
ef5650b61a8e35f3cc93ec07e73efc17ea329894jorton# If applicable, add the following below this CDDL HEADER, with the
ef5650b61a8e35f3cc93ec07e73efc17ea329894jorton# fields enclosed by brackets "[]" replaced with your own identifying
a261b81a1044c0e2ea3f21cf9b7019297bad16aajorton# information: Portions Copyright [yyyy] [name of copyright owner]
ef5650b61a8e35f3cc93ec07e73efc17ea329894jorton#
ef5650b61a8e35f3cc93ec07e73efc17ea329894jorton# CDDL HEADER END
ef5650b61a8e35f3cc93ec07e73efc17ea329894jorton#
ef5650b61a8e35f3cc93ec07e73efc17ea329894jorton#
ef5650b61a8e35f3cc93ec07e73efc17ea329894jorton# uts/intel/power/Makefile
ef5650b61a8e35f3cc93ec07e73efc17ea329894jorton# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
ef5650b61a8e35f3cc93ec07e73efc17ea329894jorton# Use is subject to license terms.
ef5650b61a8e35f3cc93ec07e73efc17ea329894jorton#
ef5650b61a8e35f3cc93ec07e73efc17ea329894jorton# Copyright 2016 Joyent, Inc.
ef5650b61a8e35f3cc93ec07e73efc17ea329894jorton#
ef5650b61a8e35f3cc93ec07e73efc17ea329894jorton
ef5650b61a8e35f3cc93ec07e73efc17ea329894jorton#
ef5650b61a8e35f3cc93ec07e73efc17ea329894jorton# This makefile drives the production of the power driver
ef5650b61a8e35f3cc93ec07e73efc17ea329894jorton#
ef5650b61a8e35f3cc93ec07e73efc17ea329894jorton# intel architecture dependent
ef5650b61a8e35f3cc93ec07e73efc17ea329894jorton#
ef5650b61a8e35f3cc93ec07e73efc17ea329894jorton
ef5650b61a8e35f3cc93ec07e73efc17ea329894jorton#
ef5650b61a8e35f3cc93ec07e73efc17ea329894jorton# Path to the base of the uts directory tree (usually /usr/src/uts).
ef5650b61a8e35f3cc93ec07e73efc17ea329894jorton#
ef5650b61a8e35f3cc93ec07e73efc17ea329894jortonUTSBASE = ../..
ef5650b61a8e35f3cc93ec07e73efc17ea329894jorton
ef5650b61a8e35f3cc93ec07e73efc17ea329894jorton#
ef5650b61a8e35f3cc93ec07e73efc17ea329894jorton# Define the module and object file sets.
ef5650b61a8e35f3cc93ec07e73efc17ea329894jorton#
ef5650b61a8e35f3cc93ec07e73efc17ea329894jortonMODULE = power
ef5650b61a8e35f3cc93ec07e73efc17ea329894jortonOBJECTS = $(POWER_OBJS:%=$(OBJS_DIR)/%)
ef5650b61a8e35f3cc93ec07e73efc17ea329894jortonLINTS = $(POWER_OBJS:%.o=$(LINTS_DIR)/%.ln)
ef5650b61a8e35f3cc93ec07e73efc17ea329894jortonROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
ef5650b61a8e35f3cc93ec07e73efc17ea329894jortonCONF_SRCDIR = $(UTSBASE)/common/io
ef5650b61a8e35f3cc93ec07e73efc17ea329894jorton
ef5650b61a8e35f3cc93ec07e73efc17ea329894jorton#
9d129b55f5a43abf43865c6b0eb6dd19bc22aba8ianh# Include common rules.
9d129b55f5a43abf43865c6b0eb6dd19bc22aba8ianh#
9d129b55f5a43abf43865c6b0eb6dd19bc22aba8ianhinclude $(UTSBASE)/intel/Makefile.intel
9d129b55f5a43abf43865c6b0eb6dd19bc22aba8ianh
9d129b55f5a43abf43865c6b0eb6dd19bc22aba8ianh#
ef5650b61a8e35f3cc93ec07e73efc17ea329894jorton# Define targets
ef5650b61a8e35f3cc93ec07e73efc17ea329894jorton#
ef5650b61a8e35f3cc93ec07e73efc17ea329894jortonALL_TARGET = $(BINARY) $(CONFMOD)
a261b81a1044c0e2ea3f21cf9b7019297bad16aajortonLINT_TARGET = $(MODULE).lint
ef5650b61a8e35f3cc93ec07e73efc17ea329894jortonINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
ef5650b61a8e35f3cc93ec07e73efc17ea329894jorton
ef5650b61a8e35f3cc93ec07e73efc17ea329894jorton#
ef5650b61a8e35f3cc93ec07e73efc17ea329894jorton# lint pass one enforcement
ef5650b61a8e35f3cc93ec07e73efc17ea329894jorton#
ef5650b61a8e35f3cc93ec07e73efc17ea329894jortonCFLAGS += $(CCVERBOSE)
ef5650b61a8e35f3cc93ec07e73efc17ea329894jorton
ac45a43afbf38aa4a91c1402c6beef6ef8a2696dniq#
ef5650b61a8e35f3cc93ec07e73efc17ea329894jorton# ACPI power button
b705f017c7b3793694eff4008463d9a05a3e1781jailletc#
b705f017c7b3793694eff4008463d9a05a3e1781jailletcCFLAGS += -DACPI_POWER_BUTTON
b705f017c7b3793694eff4008463d9a05a3e1781jailletcLINTFLAGS += -DACPI_POWER_BUTTON
b705f017c7b3793694eff4008463d9a05a3e1781jailletc
ef5650b61a8e35f3cc93ec07e73efc17ea329894jortonCERRWARN += -_gcc=-Wno-unused-function
b705f017c7b3793694eff4008463d9a05a3e1781jailletc
b705f017c7b3793694eff4008463d9a05a3e1781jailletcLDFLAGS += -dy -N misc/acpica
ef5650b61a8e35f3cc93ec07e73efc17ea329894jorton
b705f017c7b3793694eff4008463d9a05a3e1781jailletc#
b705f017c7b3793694eff4008463d9a05a3e1781jailletc# For now, disable these lint checks; maintainers should endeavor
b705f017c7b3793694eff4008463d9a05a3e1781jailletc# to investigate and remove these for maximum lint coverage.
ac45a43afbf38aa4a91c1402c6beef6ef8a2696dniq# Please do not carry these forward to new Makefiles.
b705f017c7b3793694eff4008463d9a05a3e1781jailletc#
eab364dc817e6d2f9179d0ecbd269d02df6f383cminfrinLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
73f0c28343729edcdd9171e669c373f4aa03a519rjungLINTTAGS += -erroff=E_STATIC_UNUSED
73f0c28343729edcdd9171e669c373f4aa03a519rjung
73f0c28343729edcdd9171e669c373f4aa03a519rjungCERRWARN += -_gcc=-Wno-unused-variable
73f0c28343729edcdd9171e669c373f4aa03a519rjung
73f0c28343729edcdd9171e669c373f4aa03a519rjung#
73f0c28343729edcdd9171e669c373f4aa03a519rjung# Default build targets.
ef5650b61a8e35f3cc93ec07e73efc17ea329894jorton#
ef5650b61a8e35f3cc93ec07e73efc17ea329894jorton.KEEP_STATE:
ef5650b61a8e35f3cc93ec07e73efc17ea329894jorton
ef5650b61a8e35f3cc93ec07e73efc17ea329894jortondef: $(DEF_DEPS)
ef5650b61a8e35f3cc93ec07e73efc17ea329894jorton
ef5650b61a8e35f3cc93ec07e73efc17ea329894jortonall: $(ALL_DEPS)
ef5650b61a8e35f3cc93ec07e73efc17ea329894jorton
ef5650b61a8e35f3cc93ec07e73efc17ea329894jortonclean: $(CLEAN_DEPS)
ef5650b61a8e35f3cc93ec07e73efc17ea329894jorton
ef5650b61a8e35f3cc93ec07e73efc17ea329894jortonclobber: $(CLOBBER_DEPS)
a261b81a1044c0e2ea3f21cf9b7019297bad16aajorton
02ecd1528d77cb0870cc9fb23407d6eb1e688885rjunglint: $(LINT_DEPS)
a261b81a1044c0e2ea3f21cf9b7019297bad16aajorton
ef5650b61a8e35f3cc93ec07e73efc17ea329894jortonmodlintlib: $(MODLINTLIB_DEPS)
ef5650b61a8e35f3cc93ec07e73efc17ea329894jorton
ef5650b61a8e35f3cc93ec07e73efc17ea329894jortonclean.lint: $(CLEAN_LINT_DEPS)
ef5650b61a8e35f3cc93ec07e73efc17ea329894jorton
a261b81a1044c0e2ea3f21cf9b7019297bad16aajortoninstall: $(INSTALL_DEPS)
a261b81a1044c0e2ea3f21cf9b7019297bad16aajorton
ef5650b61a8e35f3cc93ec07e73efc17ea329894jorton#
ef5650b61a8e35f3cc93ec07e73efc17ea329894jorton# Include common targets.
ef5650b61a8e35f3cc93ec07e73efc17ea329894jorton#
ef5650b61a8e35f3cc93ec07e73efc17ea329894jortoninclude $(UTSBASE)/intel/Makefile.targ
73f0c28343729edcdd9171e669c373f4aa03a519rjung