xref: /illumos-gate/usr/src/uts/i86pc/ppm/Makefile (revision 82d0151a)
15cff7825Smh#
25cff7825Smh# CDDL HEADER START
35cff7825Smh#
45cff7825Smh# The contents of this file are subject to the terms of the
55cff7825Smh# Common Development and Distribution License (the "License").
65cff7825Smh# You may not use this file except in compliance with the License.
75cff7825Smh#
85cff7825Smh# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
95cff7825Smh# or http://www.opensolaris.org/os/licensing.
105cff7825Smh# See the License for the specific language governing permissions
115cff7825Smh# and limitations under the License.
125cff7825Smh#
135cff7825Smh# When distributing Covered Code, include this CDDL HEADER in each
145cff7825Smh# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
155cff7825Smh# If applicable, add the following below this CDDL HEADER, with the
165cff7825Smh# fields enclosed by brackets "[]" replaced with your own identifying
175cff7825Smh# information: Portions Copyright [yyyy] [name of copyright owner]
185cff7825Smh#
195cff7825Smh# CDDL HEADER END
205cff7825Smh#
215cff7825Smh#
225cff7825Smh# uts/i86pc/ppm/Makefile
235cff7825Smh#
245cff7825Smh# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
255cff7825Smh# Use is subject to license terms.
265cff7825Smh#
27fe7a23c8SAndy Fiddaman# Copyright 2019 OmniOS Community Edition (OmniOSce) Association.
28fe7a23c8SAndy Fiddaman#
297014882cSRichard Lowe
305cff7825Smh#
315cff7825Smh#	This makefile drives the production of the generic power managment
325cff7825Smh#	pseudo driver
335cff7825Smh#
345cff7825Smh#	i86pc implementation architecture dependent
355cff7825Smh#
365cff7825Smh
375cff7825Smh#
385cff7825Smh#	Path to the base of the uts directory tree (usually /usr/src/uts).
395cff7825Smh#
405cff7825SmhUTSBASE	= ../..
415cff7825Smh
425cff7825Smh#
435cff7825Smh#	Define the module and object file sets.
445cff7825Smh#
455cff7825SmhMODULE		= ppm
465cff7825SmhOBJECTS		= $(PPM_OBJS:%=$(OBJS_DIR)/%)
475cff7825SmhROOTMODULE	= $(ROOT_PSM_DRV_DIR)/$(MODULE)
485cff7825SmhCONF_SRCDIR	= $(UTSBASE)/i86pc/io
495cff7825Smh
505cff7825Smh#
515cff7825Smh#	Include common rules.
525cff7825Smh#
535cff7825Smhinclude $(UTSBASE)/i86pc/Makefile.i86pc
545cff7825Smh
555cff7825Smh#
565cff7825Smh#	Define targets
575cff7825Smh#
585cff7825SmhALL_TARGET	= $(BINARY) $(SRC_CONFILE)
595cff7825SmhINSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
605cff7825Smh
615cff7825SmhCFLAGS += $(CCVERBOSE)
625cff7825Smh
637014882cSRichard LoweCERRWARN += -_gcc=-Wno-parentheses
647014882cSRichard LoweCERRWARN += -_gcc=-Wno-switch
65d3b5f563SJohn LevonCERRWARN += $(CNOWARN_UNINIT)
667014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-variable
677014882cSRichard Lowe
685cff7825Smh#
695cff7825Smh# Link to acpica for ACPI services
705cff7825Smh#
71*82d0151aSRichard LoweLDFLAGS	+= -N misc/acpica
725cff7825Smh
735cff7825Smh#
745cff7825Smh#	Default build targets.
755cff7825Smh#
765cff7825Smh.KEEP_STATE:
775cff7825Smh
785cff7825Smhdef:		$(DEF_DEPS)
795cff7825Smh
805cff7825Smhall:		$(ALL_DEPS)
815cff7825Smh
825cff7825Smhclean:		$(CLEAN_DEPS)
835cff7825Smh
845cff7825Smhclobber:	$(CLOBBER_DEPS)
855cff7825Smh
865cff7825Smhinstall:	$(INSTALL_DEPS) $(CONF_INSTALL_DEPS)
875cff7825Smh
885cff7825Smh#
895cff7825Smh#	Include common targets.
905cff7825Smh#
915cff7825Smhinclude $(UTSBASE)/i86pc/Makefile.targ
92