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# 27b6b206fcSJohn Levon# Copyright (c) 2018, Joyent, Inc. 28fe7a23c8SAndy Fiddaman# Copyright 2019 OmniOS Community Edition (OmniOSce) Association. 297b1019a6SJerry Jelinek# 30b72d5b75SMichael Corcoran# This makefile drives the production of the ACPI device configuration 31b72d5b75SMichael Corcoran# kernel module. 32b72d5b75SMichael Corcoran# 33b72d5b75SMichael Corcoran# i86pc architecture dependent 34b72d5b75SMichael Corcoran# 35b72d5b75SMichael Corcoran 36b72d5b75SMichael Corcoran# 37b72d5b75SMichael Corcoran# Path to the base of the uts directory tree (usually /usr/src/uts). 38b72d5b75SMichael Corcoran# 39b72d5b75SMichael CorcoranUTSBASE = ../.. 40b72d5b75SMichael Corcoran 41b72d5b75SMichael Corcoran# 42b72d5b75SMichael Corcoran# Define the module and object file sets. 43b72d5b75SMichael Corcoran# 44b72d5b75SMichael CorcoranMODULE = acpidev 45b72d5b75SMichael CorcoranOBJECTS = $(ACPIDEV_OBJS:%=$(OBJS_DIR)/%) 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 CorcoranINSTALL_TARGET = $(BINARY) $(ROOTMODULE) 58b72d5b75SMichael Corcoran 59b72d5b75SMichael Corcoran# 60b72d5b75SMichael Corcoran# Depends on acpica ACPI CA interpreter 61b72d5b75SMichael Corcoran# 62*82d0151aSRichard LoweLDFLAGS += -N misc/acpica 63b72d5b75SMichael Corcoran 64d3b5f563SJohn LevonCERRWARN += $(CNOWARN_UNINIT) 657b1019a6SJerry JelinekCERRWARN += -_gcc=-Wno-unused-function 667014882cSRichard LoweCERRWARN += -_gcc=-Wno-type-limits 677014882cSRichard Lowe 68b6b206fcSJohn Levon# needs work 69b6b206fcSJohn LevonSMOFF += deref_check 70b6b206fcSJohn Levon 71b72d5b75SMichael Corcoran# 72b72d5b75SMichael Corcoran# Default build targets. 73b72d5b75SMichael Corcoran# 74b72d5b75SMichael Corcoran.KEEP_STATE: 75b72d5b75SMichael Corcoran 76b72d5b75SMichael Corcorandef: $(DEF_DEPS) 77b72d5b75SMichael Corcoran 78b72d5b75SMichael Corcoranall: $(ALL_DEPS) 79b72d5b75SMichael Corcoran 80b72d5b75SMichael Corcoranclean: $(CLEAN_DEPS) 81b72d5b75SMichael Corcoran 82b72d5b75SMichael Corcoranclobber: $(CLOBBER_DEPS) 83b72d5b75SMichael Corcoran 84b72d5b75SMichael Corcoraninstall: $(INSTALL_DEPS) 85b72d5b75SMichael Corcoran 86b72d5b75SMichael Corcoran# 87b72d5b75SMichael Corcoran# Include common targets. 88b72d5b75SMichael Corcoran# 89b72d5b75SMichael Corcoraninclude $(UTSBASE)/i86pc/Makefile.targ 90