Makefile revision 89b43686db1fe9681d80a7cf5662730cb9378cae
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf#
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf# CDDL HEADER START
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf#
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf# The contents of this file are subject to the terms of the
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf# Common Development and Distribution License (the "License").
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf# You may not use this file except in compliance with the License.
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf#
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf# or http://www.opensolaris.org/os/licensing.
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf# See the License for the specific language governing permissions
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf# and limitations under the License.
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf#
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf# When distributing Covered Code, include this CDDL HEADER in each
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf# If applicable, add the following below this CDDL HEADER, with the
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf# fields enclosed by brackets "[]" replaced with your own identifying
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf# information: Portions Copyright [yyyy] [name of copyright owner]
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf#
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf# CDDL HEADER END
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf#
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf#
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf# uts/i86pc/cpr/Makefile
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf# Use is subject to license terms.
89b43686db1fe9681d80a7cf5662730cb9378caeBayard Bell# Copyright (c) 2011 Bayard G. Bell. All rights reserved.
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf#
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf# This makefile drives the production of the cpr misc kernel module.
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf#
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf# i86pc implementation architecture dependent
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf#
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf#
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf# Path to the base of the uts directory tree (usually /usr/src/uts).
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf#
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyfUTSBASE = ../..
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf#
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf# Define the module and object file sets.
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf#
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyfMODULE = cpr
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf#
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf#
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyfOBJECTS = $(CPR_IMPL_OBJS:%=$(OBJS_DIR)/%) \
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf $(CPR_OBJS:%=$(OBJS_DIR)/%) \
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf $(CPR_INTEL_OBJS:%=$(OBJS_DIR)/%)
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyfLINTS = $(CPR_OBJS:%.o=$(LINTS_DIR)/%.ln) \
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf $(CPR_IMPL_OBJS:%.o=$(LINTS_DIR)/%.ln) \
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf $(CPR_INTEL_OBJS:%.o=$(LINTS_DIR)/%.ln)
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyfROOTMODULE = $(ROOT_PSM_MISC_DIR)/$(MODULE)
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf#
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf# Include common rules.
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf#
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyfinclude $(UTSBASE)/i86pc/Makefile.i86pc
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf#
89b43686db1fe9681d80a7cf5662730cb9378caeBayard Bell# bootdev required as per previous inline commenting referencing symbol
89b43686db1fe9681d80a7cf5662730cb9378caeBayard Bell# i_devname_to_promname(), which may only be necessary on SPARC. Removing
89b43686db1fe9681d80a7cf5662730cb9378caeBayard Bell# this symbol may be sufficient to remove depedency.
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf#
89b43686db1fe9681d80a7cf5662730cb9378caeBayard BellLDFLAGS += -dy -N misc/acpica -N misc/bootdev
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf#
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf# Define targets
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf#
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyfALL_TARGET = $(BINARY)
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyfLINT_TARGET = $(MODULE).lint
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyfINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf#
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf# lint pass one enforcement
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf#
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyfCFLAGS += $(CCVERBOSE)
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf#
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf# Default build targets.
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf#
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf.KEEP_STATE:
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyfdef: $(DEF_DEPS)
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyfall: $(ALL_DEPS)
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyfclean: $(CLEAN_DEPS)
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyfclobber: $(CLOBBER_DEPS)
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyflint: $(LINT_DEPS)
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyfmodlintlib: $(MODLINTLIB_DEPS)
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyfclean.lint: $(CLEAN_LINT_DEPS)
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyfinstall: $(INSTALL_DEPS)
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf#
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf# Include common targets.
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf#
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyfinclude $(UTSBASE)/i86pc/Makefile.targ