xref: /titanic_44/usr/src/uts/i86pc/cpr/Makefile (revision cb56572868bfc488bbd3ab847b09db2a25554d44)
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.
26*cb565728SJerry Jelinek# Copyright 2016, Joyent, Inc.
272df1fe9cSrandyf#
282df1fe9cSrandyf#	This makefile drives the production of the cpr misc kernel module.
292df1fe9cSrandyf#
302df1fe9cSrandyf#	i86pc implementation architecture dependent
312df1fe9cSrandyf#
322df1fe9cSrandyf
332df1fe9cSrandyf#
342df1fe9cSrandyf#	Path to the base of the uts directory tree (usually /usr/src/uts).
352df1fe9cSrandyf#
362df1fe9cSrandyfUTSBASE	= ../..
372df1fe9cSrandyf
382df1fe9cSrandyf#
392df1fe9cSrandyf#	Define the module and object file sets.
402df1fe9cSrandyf#
412df1fe9cSrandyfMODULE		= cpr
422df1fe9cSrandyf#
432df1fe9cSrandyf#
442df1fe9cSrandyfOBJECTS		= $(CPR_IMPL_OBJS:%=$(OBJS_DIR)/%) \
452df1fe9cSrandyf		  $(CPR_OBJS:%=$(OBJS_DIR)/%) \
462df1fe9cSrandyf		  $(CPR_INTEL_OBJS:%=$(OBJS_DIR)/%)
472df1fe9cSrandyfLINTS		= $(CPR_OBJS:%.o=$(LINTS_DIR)/%.ln) \
482df1fe9cSrandyf		  $(CPR_IMPL_OBJS:%.o=$(LINTS_DIR)/%.ln) \
492df1fe9cSrandyf		  $(CPR_INTEL_OBJS:%.o=$(LINTS_DIR)/%.ln)
502df1fe9cSrandyfROOTMODULE	= $(ROOT_PSM_MISC_DIR)/$(MODULE)
512df1fe9cSrandyf
522df1fe9cSrandyf#
532df1fe9cSrandyf#	Include common rules.
542df1fe9cSrandyf#
552df1fe9cSrandyfinclude $(UTSBASE)/i86pc/Makefile.i86pc
562df1fe9cSrandyf
572df1fe9cSrandyf#
5889b43686SBayard Bell#	bootdev required as per previous inline commenting referencing symbol
5989b43686SBayard Bell#	i_devname_to_promname(), which may only be necessary on SPARC. Removing
6089b43686SBayard Bell#	this symbol may be sufficient to remove depedency.
612df1fe9cSrandyf#
6289b43686SBayard BellLDFLAGS		+= -dy -N misc/acpica -N misc/bootdev
632df1fe9cSrandyf
642df1fe9cSrandyf#
652df1fe9cSrandyf#	Define targets
662df1fe9cSrandyf#
672df1fe9cSrandyfALL_TARGET	= $(BINARY)
682df1fe9cSrandyfLINT_TARGET	= $(MODULE).lint
692df1fe9cSrandyfINSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
702df1fe9cSrandyf
712df1fe9cSrandyf#
722df1fe9cSrandyf# lint pass one enforcement
732df1fe9cSrandyf#
742df1fe9cSrandyfCFLAGS += $(CCVERBOSE)
752df1fe9cSrandyf
767014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-unused-variable
777014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-unused-label
787014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-uninitialized
797014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-parentheses
80*cb565728SJerry Jelinek$(OBJS_DIR)/cpr_impl.o := 	CERRWARN	+= -_gcc=-Wno-unused-function
817014882cSRichard Lowe
822df1fe9cSrandyf#
832df1fe9cSrandyf#	Default build targets.
842df1fe9cSrandyf#
852df1fe9cSrandyf.KEEP_STATE:
862df1fe9cSrandyf
872df1fe9cSrandyfdef:		$(DEF_DEPS)
882df1fe9cSrandyf
892df1fe9cSrandyfall:		$(ALL_DEPS)
902df1fe9cSrandyf
912df1fe9cSrandyfclean:		$(CLEAN_DEPS)
922df1fe9cSrandyf
932df1fe9cSrandyfclobber:	$(CLOBBER_DEPS)
942df1fe9cSrandyf
952df1fe9cSrandyflint:		$(LINT_DEPS)
962df1fe9cSrandyf
972df1fe9cSrandyfmodlintlib:	$(MODLINTLIB_DEPS)
982df1fe9cSrandyf
992df1fe9cSrandyfclean.lint:	$(CLEAN_LINT_DEPS)
1002df1fe9cSrandyf
1012df1fe9cSrandyfinstall:	$(INSTALL_DEPS)
1022df1fe9cSrandyf
1032df1fe9cSrandyf#
1042df1fe9cSrandyf#	Include common targets.
1052df1fe9cSrandyf#
1062df1fe9cSrandyfinclude $(UTSBASE)/i86pc/Makefile.targ
107