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# 26b6b206fcSJohn Levon# Copyright (c) 2018, Joyent, Inc. 27fe7a23c8SAndy Fiddaman# Copyright 2019 OmniOS Community Edition (OmniOSce) Association. 28d2ec54f7Sphitran# 29d2ec54f7Sphitran 30d2ec54f7Sphitran# This makefile drives the production of the acpi_drv 31d2ec54f7Sphitran# driver kernel module. 32d2ec54f7Sphitran# 33d2ec54f7Sphitran# i86pc architecture dependent 34d2ec54f7Sphitran# 35d2ec54f7Sphitran 36d2ec54f7Sphitran# 37d2ec54f7Sphitran# Path to the base of the uts directory tree (usually /usr/src/uts). 38d2ec54f7Sphitran# 39d2ec54f7SphitranUTSBASE = ../.. 40d2ec54f7Sphitran 41d2ec54f7Sphitran# 42d2ec54f7Sphitran# Define the module and object file sets. 43d2ec54f7Sphitran# 44d2ec54f7SphitranMODULE = acpi_drv 45d2ec54f7SphitranOBJECTS = $(ACPI_DRV_OBJS:%=$(OBJS_DIR)/%) 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) 58d2ec54f7SphitranINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) 59d2ec54f7Sphitran 60d2ec54f7SphitranDEBUG_FLGS = 61d2ec54f7Sphitran$(NOT_RELEASE_BUILD)DEBUG_DEFS += $(DEBUG_FLGS) 62d2ec54f7Sphitran 63d2ec54f7SphitranCPPFLAGS += -DSUNDDI 64d2ec54f7Sphitran 657b1019a6SJerry JelinekCERRWARN += -_gcc=-Wno-unused-function 667b1019a6SJerry Jelinek 67b6b206fcSJohn Levon# needs work 68b6b206fcSJohn Levon$(OBJS_DIR)/acpi_video.o := SMOFF += all_func_returns 69b6b206fcSJohn Levon 70*82d0151aSRichard LoweLDFLAGS += -N misc/acpica 71d2ec54f7Sphitran 72d2ec54f7Sphitran# 73d2ec54f7Sphitran# Default build targets. 74d2ec54f7Sphitran# 75d2ec54f7Sphitran.KEEP_STATE: 76d2ec54f7Sphitran 77d2ec54f7Sphitrandef: $(DEF_DEPS) 78d2ec54f7Sphitran 79d2ec54f7Sphitranall: $(ALL_DEPS) 80d2ec54f7Sphitran 81d2ec54f7Sphitranclean: $(CLEAN_DEPS) 82d2ec54f7Sphitran 83d2ec54f7Sphitranclobber: $(CLOBBER_DEPS) 84d2ec54f7Sphitran 85d2ec54f7Sphitraninstall: $(INSTALL_DEPS) 86d2ec54f7Sphitran 87d2ec54f7Sphitran# 88d2ec54f7Sphitran# Include common targets. 89d2ec54f7Sphitran# 90d2ec54f7Sphitraninclude $(UTSBASE)/i86pc/Makefile.targ 91