xref: /illumos-gate/usr/src/uts/i86xpv/xpv_psm/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#
21843e1988Sjohnlev
225cff7825Smh#
235cff7825Smh# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
245cff7825Smh# Use is subject to license terms.
255cff7825Smh#
26b6b206fcSJohn Levon# Copyright (c) 2018, Joyent, Inc.
277b1019a6SJerry Jelinek#
287014882cSRichard Lowe
29843e1988Sjohnlev#
30843e1988Sjohnlev#	This makefile drives the production of the xpv_psm mach
31843e1988Sjohnlev#	kernel module.
325cff7825Smh#
33843e1988Sjohnlev#	i86xpv implementation architecture dependent
345cff7825Smh#
355cff7825Smh
365cff7825Smh#
375cff7825Smh#	Path to the base of the uts directory tree (usually /usr/src/uts).
385cff7825Smh#
39843e1988SjohnlevUTSBASE	= ../..
405cff7825Smh
415cff7825Smh#
425cff7825Smh#	Define the module and object file sets.
435cff7825Smh#
44843e1988SjohnlevMODULE		= xpv_psm
45843e1988SjohnlevOBJECTS		= $(XPV_PSM_OBJS:%=$(OBJS_DIR)/%)
46843e1988SjohnlevROOTMODULE	= $(ROOT_PSM_MACH_DIR)/$(MODULE)
475cff7825Smh
485cff7825Smh#
495cff7825Smh#	Include common rules.
505cff7825Smh#
51843e1988Sjohnlevinclude $(UTSBASE)/i86xpv/Makefile.i86xpv
525cff7825Smh
535cff7825Smh#
545cff7825Smh#	Define targets
555cff7825Smh#
565cff7825SmhALL_TARGET	= $(BINARY)
575cff7825SmhINSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
585cff7825Smh
595cff7825Smh#
60843e1988Sjohnlev#	Overrides.
61843e1988Sjohnlev#
62843e1988SjohnlevDEBUG_FLGS	=
63843e1988SjohnlevDEBUG_DEFS	+= $(DEBUG_FLGS)
64843e1988Sjohnlev
65843e1988Sjohnlev#
66843e1988Sjohnlev#
67843e1988Sjohnlev# Depends on ACPI CA interpreter
68843e1988Sjohnlev#
69*82d0151aSRichard LoweLDFLAGS		+= -N misc/acpica
70843e1988Sjohnlev
71843e1988Sjohnlev
727014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-type-limits
737014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-parentheses
74d3b5f563SJohn LevonCERRWARN	+= $(CNOWARN_UNINIT)
757014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-empty-body
767b1019a6SJerry JelinekCERRWARN	+= -_gcc=-Wno-unused-function
777014882cSRichard Lowe
78b6b206fcSJohn Levon# needs work
79b6b206fcSJohn LevonSMATCH=off
80b6b206fcSJohn Levon
815cff7825Smh#	Default build targets.
825cff7825Smh#
835cff7825Smh.KEEP_STATE:
845cff7825Smh
855cff7825Smhdef:		$(DEF_DEPS)
865cff7825Smh
875cff7825Smhall:		$(ALL_DEPS)
885cff7825Smh
895cff7825Smhclean:		$(CLEAN_DEPS)
905cff7825Smh
915cff7825Smhclobber:	$(CLOBBER_DEPS)
925cff7825Smh
935cff7825Smhinstall:	$(INSTALL_DEPS)
945cff7825Smh
955cff7825Smh#
965cff7825Smh#	Include common targets.
975cff7825Smh#
98843e1988Sjohnlevinclude $(UTSBASE)/i86xpv/Makefile.targ
99