xref: /illumos-gate/usr/src/uts/i86pc/cpr/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/cpr/Makefile
232df1fe9cSrandyf# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
242df1fe9cSrandyf# Use is subject to license terms.
2589b43686SBayard Bell# Copyright (c) 2011 Bayard G. Bell. All rights reserved.
267b1019a6SJerry Jelinek# Copyright 2016, Joyent, Inc.
27fe7a23c8SAndy Fiddaman# Copyright 2019 OmniOS Community Edition (OmniOSce) Association.
282df1fe9cSrandyf#
292df1fe9cSrandyf#	This makefile drives the production of the cpr misc kernel module.
302df1fe9cSrandyf#
312df1fe9cSrandyf#	i86pc implementation architecture dependent
322df1fe9cSrandyf#
332df1fe9cSrandyf
342df1fe9cSrandyf#
352df1fe9cSrandyf#	Path to the base of the uts directory tree (usually /usr/src/uts).
362df1fe9cSrandyf#
372df1fe9cSrandyfUTSBASE	= ../..
382df1fe9cSrandyf
392df1fe9cSrandyf#
402df1fe9cSrandyf#	Define the module and object file sets.
412df1fe9cSrandyf#
422df1fe9cSrandyfMODULE		= cpr
432df1fe9cSrandyf#
442df1fe9cSrandyf#
452df1fe9cSrandyfOBJECTS		= $(CPR_IMPL_OBJS:%=$(OBJS_DIR)/%) \
462df1fe9cSrandyf		  $(CPR_OBJS:%=$(OBJS_DIR)/%) \
472df1fe9cSrandyf		  $(CPR_INTEL_OBJS:%=$(OBJS_DIR)/%)
482df1fe9cSrandyfROOTMODULE	= $(ROOT_PSM_MISC_DIR)/$(MODULE)
492df1fe9cSrandyf
502df1fe9cSrandyf#
512df1fe9cSrandyf#	Include common rules.
522df1fe9cSrandyf#
532df1fe9cSrandyfinclude $(UTSBASE)/i86pc/Makefile.i86pc
542df1fe9cSrandyf
552df1fe9cSrandyf#
5689b43686SBayard Bell#	bootdev required as per previous inline commenting referencing symbol
5789b43686SBayard Bell#	i_devname_to_promname(), which may only be necessary on SPARC. Removing
5889b43686SBayard Bell#	this symbol may be sufficient to remove depedency.
592df1fe9cSrandyf#
60*82d0151aSRichard LoweLDFLAGS		+= -N misc/acpica -N misc/bootdev
612df1fe9cSrandyf
622df1fe9cSrandyf#
632df1fe9cSrandyf#	Define targets
642df1fe9cSrandyf#
652df1fe9cSrandyfALL_TARGET	= $(BINARY)
662df1fe9cSrandyfINSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
672df1fe9cSrandyf
682df1fe9cSrandyfCFLAGS += $(CCVERBOSE)
692df1fe9cSrandyf
707014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-unused-variable
717014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-unused-label
72d3b5f563SJohn LevonCERRWARN	+= $(CNOWARN_UNINIT)
737014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-parentheses
74fe7a23c8SAndy Fiddaman$(OBJS_DIR)/cpr_impl.o :=	CERRWARN	+= -_gcc=-Wno-unused-function
757014882cSRichard Lowe
762df1fe9cSrandyf#
772df1fe9cSrandyf#	Default build targets.
782df1fe9cSrandyf#
792df1fe9cSrandyf.KEEP_STATE:
802df1fe9cSrandyf
812df1fe9cSrandyfdef:		$(DEF_DEPS)
822df1fe9cSrandyf
832df1fe9cSrandyfall:		$(ALL_DEPS)
842df1fe9cSrandyf
852df1fe9cSrandyfclean:		$(CLEAN_DEPS)
862df1fe9cSrandyf
872df1fe9cSrandyfclobber:	$(CLOBBER_DEPS)
882df1fe9cSrandyf
892df1fe9cSrandyfinstall:	$(INSTALL_DEPS)
902df1fe9cSrandyf
912df1fe9cSrandyf#
922df1fe9cSrandyf#	Include common targets.
932df1fe9cSrandyf#
942df1fe9cSrandyfinclude $(UTSBASE)/i86pc/Makefile.targ
95