xref: /illumos-gate/usr/src/uts/i86pc/acpippm/Makefile (revision 82d0151a)
12df1fe9cSrandyf#
22df1fe9cSrandyf# CDDL HEADER START
32df1fe9cSrandyf#
42df1fe9cSrandyf# The contents of this file are subject to the terms of the
52df1fe9cSrandyf# Common Development and Distribution License (the "License").
62df1fe9cSrandyf# You may not use this file except in compliance with the License.
72df1fe9cSrandyf#
82df1fe9cSrandyf# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
92df1fe9cSrandyf# or http://www.opensolaris.org/os/licensing.
102df1fe9cSrandyf# See the License for the specific language governing permissions
112df1fe9cSrandyf# and limitations under the License.
122df1fe9cSrandyf#
132df1fe9cSrandyf# When distributing Covered Code, include this CDDL HEADER in each
142df1fe9cSrandyf# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
152df1fe9cSrandyf# If applicable, add the following below this CDDL HEADER, with the
162df1fe9cSrandyf# fields enclosed by brackets "[]" replaced with your own identifying
172df1fe9cSrandyf# information: Portions Copyright [yyyy] [name of copyright owner]
182df1fe9cSrandyf#
192df1fe9cSrandyf# CDDL HEADER END
202df1fe9cSrandyf#
212df1fe9cSrandyf#
222df1fe9cSrandyf# uts/i86pc/acpippm/Makefile
232df1fe9cSrandyf#
242df1fe9cSrandyf# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
252df1fe9cSrandyf# Use is subject to license terms.
2689b43686SBayard Bell# Copyright (c) 2011 Bayard G. Bell. All rights reserved.
277b1019a6SJerry Jelinek# Copyright 2016 Joyent, Inc.
28fe7a23c8SAndy Fiddaman# Copyright 2019 OmniOS Community Edition (OmniOSce) Association.
292df1fe9cSrandyf#
302df1fe9cSrandyf#	This makefile drives the production of the power managment
312df1fe9cSrandyf#	module for the ACPI subsystem
322df1fe9cSrandyf#
332df1fe9cSrandyf#	i86pc implementation architecture dependent
342df1fe9cSrandyf#
352df1fe9cSrandyf
362df1fe9cSrandyf#
372df1fe9cSrandyf#	Path to the base of the uts directory tree (usually /usr/src/uts).
382df1fe9cSrandyf#
392df1fe9cSrandyfUTSBASE	= ../..
402df1fe9cSrandyf
412df1fe9cSrandyf#
422df1fe9cSrandyf#	Define the module and object file sets.
432df1fe9cSrandyf#
442df1fe9cSrandyfMODULE		= acpippm
452df1fe9cSrandyfOBJECTS		= $(ACPIPPM_OBJS:%=$(OBJS_DIR)/%)
462df1fe9cSrandyfROOTMODULE	= $(ROOT_PSM_DRV_DIR)/$(MODULE)
472df1fe9cSrandyfCONF_SRCDIR	= $(UTSBASE)/i86pc/io
482df1fe9cSrandyfINC_PATH	+= -I$(UTSBASE)/i86pc/sys/acpi
492df1fe9cSrandyf
502df1fe9cSrandyf#
512df1fe9cSrandyf#	Include common rules.
522df1fe9cSrandyf#
532df1fe9cSrandyfinclude $(UTSBASE)/i86pc/Makefile.i86pc
542df1fe9cSrandyf
552df1fe9cSrandyf#
562df1fe9cSrandyf#	Define targets
572df1fe9cSrandyf#
582df1fe9cSrandyfALL_TARGET	= $(BINARY) $(SRC_CONFILE)
592df1fe9cSrandyfINSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
602df1fe9cSrandyf
617b1019a6SJerry Jelinek$(OBJS_DIR)/acpippm.o :=	CERRWARN	+= -_gcc=-Wno-unused-function
627b1019a6SJerry Jelinek$(OBJS_DIR)/acpisleep.o :=	CERRWARN	+= -_gcc=-Wno-unused-function
637b1019a6SJerry Jelinek
642df1fe9cSrandyfCFLAGS += $(CCVERBOSE)
652df1fe9cSrandyf
667014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-unused-variable
677014882cSRichard Lowe
6889b43686SBayard Bell#
6989b43686SBayard Bell# Declare dependency on misc/acpica
7089b43686SBayard Bell#
71*82d0151aSRichard LoweLDFLAGS += -N misc/acpica
7289b43686SBayard Bell
732df1fe9cSrandyf#
742df1fe9cSrandyf#	Default build targets.
752df1fe9cSrandyf#
762df1fe9cSrandyf.KEEP_STATE:
772df1fe9cSrandyf
782df1fe9cSrandyfdef:		$(DEF_DEPS)
792df1fe9cSrandyf
802df1fe9cSrandyfall:		$(ALL_DEPS)
812df1fe9cSrandyf
822df1fe9cSrandyfclean:		$(CLEAN_DEPS)
832df1fe9cSrandyf
842df1fe9cSrandyfclobber:	$(CLOBBER_DEPS)
852df1fe9cSrandyf
862df1fe9cSrandyfinstall:	$(INSTALL_DEPS) $(CONF_INSTALL_DEPS)
872df1fe9cSrandyf
882df1fe9cSrandyf#
892df1fe9cSrandyf#	Include common targets.
902df1fe9cSrandyf#
912df1fe9cSrandyfinclude $(UTSBASE)/i86pc/Makefile.targ
92