xref: /titanic_41/usr/src/uts/i86pc/acpippm/Makefile (revision de5d74c22760a6d2cefd94d0e7f0fd87214fb71f)
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.
27*de5d74c2SJerry Jelinek# Copyright 2016 Joyent, Inc.
282df1fe9cSrandyf#
292df1fe9cSrandyf#	This makefile drives the production of the power managment
302df1fe9cSrandyf#	module for the ACPI subsystem
312df1fe9cSrandyf#
322df1fe9cSrandyf#	i86pc implementation architecture dependent
332df1fe9cSrandyf#
342df1fe9cSrandyf
352df1fe9cSrandyf#
362df1fe9cSrandyf#	Path to the base of the uts directory tree (usually /usr/src/uts).
372df1fe9cSrandyf#
382df1fe9cSrandyfUTSBASE	= ../..
392df1fe9cSrandyf
402df1fe9cSrandyf#
412df1fe9cSrandyf#	Define the module and object file sets.
422df1fe9cSrandyf#
432df1fe9cSrandyfMODULE		= acpippm
442df1fe9cSrandyfOBJECTS		= $(ACPIPPM_OBJS:%=$(OBJS_DIR)/%)
452df1fe9cSrandyfLINTS		= $(ACPIPPM_OBJS:%.o=$(LINTS_DIR)/%.ln)
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)
592df1fe9cSrandyfLINT_TARGET	= $(MODULE).lint
602df1fe9cSrandyfINSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
612df1fe9cSrandyf
62*de5d74c2SJerry Jelinek$(OBJS_DIR)/acpippm.o :=	CERRWARN	+= -_gcc=-Wno-unused-function
63*de5d74c2SJerry Jelinek$(OBJS_DIR)/acpisleep.o :=	CERRWARN	+= -_gcc=-Wno-unused-function
64*de5d74c2SJerry Jelinek
652df1fe9cSrandyf#
662df1fe9cSrandyf# lint pass one enforcement
672df1fe9cSrandyf#
682df1fe9cSrandyfCFLAGS += $(CCVERBOSE)
692df1fe9cSrandyf
707014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-unused-variable
717014882cSRichard Lowe
722df1fe9cSrandyf#
7389b43686SBayard Bell# Declare dependency on misc/acpica
7489b43686SBayard Bell#
7589b43686SBayard BellLDFLAGS += -dy -N misc/acpica
7689b43686SBayard Bell
7789b43686SBayard Bell#
782df1fe9cSrandyf#	Default build targets.
792df1fe9cSrandyf#
802df1fe9cSrandyf.KEEP_STATE:
812df1fe9cSrandyf
822df1fe9cSrandyfdef:		$(DEF_DEPS)
832df1fe9cSrandyf
842df1fe9cSrandyfall:		$(ALL_DEPS)
852df1fe9cSrandyf
862df1fe9cSrandyfclean:		$(CLEAN_DEPS)
872df1fe9cSrandyf
882df1fe9cSrandyfclobber:	$(CLOBBER_DEPS)
892df1fe9cSrandyf
902df1fe9cSrandyflint:		$(LINT_DEPS)
912df1fe9cSrandyf
922df1fe9cSrandyfmodlintlib:	$(MODLINTLIB_DEPS)
932df1fe9cSrandyf
942df1fe9cSrandyfclean.lint:	$(CLEAN_LINT_DEPS)
952df1fe9cSrandyf
962df1fe9cSrandyfinstall:	$(INSTALL_DEPS) $(CONF_INSTALL_DEPS)
972df1fe9cSrandyf
982df1fe9cSrandyf#
992df1fe9cSrandyf#	Include common targets.
1002df1fe9cSrandyf#
1012df1fe9cSrandyfinclude $(UTSBASE)/i86pc/Makefile.targ
102