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/acpidev/Makefile 23b72d5b75SMichael Corcoran# 24b72d5b75SMichael Corcoran# Copyright (c) 2009, Intel Corporation. 25b72d5b75SMichael Corcoran# All rights reserved. 26b72d5b75SMichael Corcoran# 27*385cc6b4SJerry Jelinek# Copyright 2016, Joyent, Inc. 28*385cc6b4SJerry Jelinek# 29b72d5b75SMichael Corcoran# This makefile drives the production of the ACPI device configuration 30b72d5b75SMichael Corcoran# kernel module. 31b72d5b75SMichael Corcoran# 32b72d5b75SMichael Corcoran# i86pc architecture 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 = acpidev 44b72d5b75SMichael CorcoranOBJECTS = $(ACPIDEV_OBJS:%=$(OBJS_DIR)/%) 45b72d5b75SMichael CorcoranLINTS = $(ACPIDEV_OBJS:%.o=$(LINTS_DIR)/%.ln) 46b72d5b75SMichael CorcoranROOTMODULE = $(ROOT_PSM_MISC_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 64b72d5b75SMichael Corcoran 657014882cSRichard LoweCERRWARN += -_gcc=-Wno-uninitialized 66*385cc6b4SJerry JelinekCERRWARN += -_gcc=-Wno-unused-function 677014882cSRichard LoweCERRWARN += -_gcc=-Wno-type-limits 687014882cSRichard Lowe 69b72d5b75SMichael Corcoran# 70b72d5b75SMichael Corcoran# Default build targets. 71b72d5b75SMichael Corcoran# 72b72d5b75SMichael Corcoran.KEEP_STATE: 73b72d5b75SMichael Corcoran 74b72d5b75SMichael Corcorandef: $(DEF_DEPS) 75b72d5b75SMichael Corcoran 76b72d5b75SMichael Corcoranall: $(ALL_DEPS) 77b72d5b75SMichael Corcoran 78b72d5b75SMichael Corcoranclean: $(CLEAN_DEPS) 79b72d5b75SMichael Corcoran 80b72d5b75SMichael Corcoranclobber: $(CLOBBER_DEPS) 81b72d5b75SMichael Corcoran 82b72d5b75SMichael Corcoranlint: $(LINT_DEPS) 83b72d5b75SMichael Corcoran 84b72d5b75SMichael Corcoranmodlintlib: $(MODLINTLIB_DEPS) 85b72d5b75SMichael Corcoran 86b72d5b75SMichael Corcoranclean.lint: $(CLEAN_LINT_DEPS) 87b72d5b75SMichael Corcoran 88b72d5b75SMichael Corcoraninstall: $(INSTALL_DEPS) 89b72d5b75SMichael Corcoran 90b72d5b75SMichael Corcoran# 91b72d5b75SMichael Corcoran# Include common targets. 92b72d5b75SMichael Corcoran# 93b72d5b75SMichael Corcoraninclude $(UTSBASE)/i86pc/Makefile.targ 94