b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoran#
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoran# CDDL HEADER START
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoran#
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoran# The contents of this file are subject to the terms of the
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoran# Common Development and Distribution License (the "License").
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoran# You may not use this file except in compliance with the License.
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoran#
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoran# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoran# or http://www.opensolaris.org/os/licensing.
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoran# See the License for the specific language governing permissions
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoran# and limitations under the License.
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoran#
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoran# When distributing Covered Code, include this CDDL HEADER in each
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoran# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoran# If applicable, add the following below this CDDL HEADER, with the
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoran# fields enclosed by brackets "[]" replaced with your own identifying
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoran# information: Portions Copyright [yyyy] [name of copyright owner]
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoran#
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoran# CDDL HEADER END
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoran#
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoran#
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoran# uts/i86pc/acpidev/Makefile
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoran#
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoran# Copyright (c) 2009, Intel Corporation.
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoran# All rights reserved.
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoran#
7b1019a6d29ccb7999dc76cba3dde1c627e8e609Jerry Jelinek# Copyright 2016, Joyent, Inc.
7b1019a6d29ccb7999dc76cba3dde1c627e8e609Jerry Jelinek#
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoran# This makefile drives the production of the ACPI device configuration
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoran# kernel module.
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoran#
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoran# i86pc architecture dependent
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoran#
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoran
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoran#
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoran# Path to the base of the uts directory tree (usually /usr/src/uts).
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoran#
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael CorcoranUTSBASE = ../..
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoran
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoran#
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoran# Define the module and object file sets.
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoran#
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael CorcoranMODULE = acpidev
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael CorcoranOBJECTS = $(ACPIDEV_OBJS:%=$(OBJS_DIR)/%)
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael CorcoranLINTS = $(ACPIDEV_OBJS:%.o=$(LINTS_DIR)/%.ln)
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael CorcoranROOTMODULE = $(ROOT_PSM_MISC_DIR)/$(MODULE)
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoran
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoran#
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoran# Include common rules.
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoran#
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoraninclude $(UTSBASE)/i86pc/Makefile.i86pc
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoran
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoran#
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoran# Define targets
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoran#
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael CorcoranALL_TARGET = $(BINARY)
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael CorcoranLINT_TARGET = $(MODULE).lint
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael CorcoranINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoran
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoran#
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoran# Depends on acpica ACPI CA interpreter
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoran#
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael CorcoranLDFLAGS += -dy -N misc/acpica
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoran
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-uninitialized
7b1019a6d29ccb7999dc76cba3dde1c627e8e609Jerry JelinekCERRWARN += -_gcc=-Wno-unused-function
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-type-limits
7014882c6a3672fd0e5d60200af8643ae53c5928Richard Lowe
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoran#
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoran# Default build targets.
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoran#
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoran.KEEP_STATE:
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoran
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcorandef: $(DEF_DEPS)
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoran
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoranall: $(ALL_DEPS)
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoran
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoranclean: $(CLEAN_DEPS)
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoran
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoranclobber: $(CLOBBER_DEPS)
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoran
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoranlint: $(LINT_DEPS)
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoran
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoranmodlintlib: $(MODLINTLIB_DEPS)
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoran
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoranclean.lint: $(CLEAN_LINT_DEPS)
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoran
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoraninstall: $(INSTALL_DEPS)
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoran
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoran#
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoran# Include common targets.
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoran#
b72d5b75fd6f5bb08d29f65652d60058fc3a2608Michael Corcoraninclude $(UTSBASE)/i86pc/Makefile.targ