Makefile revision bb25c06cca41ca78e5fb87fbb8e81d55beb18c95
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz#
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz# CDDL HEADER START
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz#
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz# The contents of this file are subject to the terms of the
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz# Common Development and Distribution License (the "License").
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz# You may not use this file except in compliance with the License.
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz#
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz# or http://www.opensolaris.org/os/licensing.
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz# See the License for the specific language governing permissions
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz# and limitations under the License.
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz#
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz# When distributing Covered Code, include this CDDL HEADER in each
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz# If applicable, add the following below this CDDL HEADER, with the
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz# fields enclosed by brackets "[]" replaced with your own identifying
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz# information: Portions Copyright [yyyy] [name of copyright owner]
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz#
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz# CDDL HEADER END
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz#
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz#
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz# i86pc/uppc/Makefile
193974072f41a843678abf5f61979c748687e66bSherry Moore# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz# Use is subject to license terms.
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz#
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz#ident "%Z%%M% %I% %E% SMI"
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz#
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz# This makefile drives the production of the uppc mach
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz# kernel module.
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz#
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz# i86pc implementation architecture dependent
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz#
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz#
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz# Path to the base of the uts directory tree (usually /usr/src/uts).
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz#
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartzUTSBASE = ../..
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz#
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz# Define the module and object file sets.
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz#
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartzMODULE = uppc
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartzOBJECTS = $(UPPC_OBJS:%=$(OBJS_DIR)/%)
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartzLINTS = $(UPPC_OBJS:%.o=$(LINTS_DIR)/%.ln)
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartzROOTMODULE = $(ROOT_PSM_MACH_DIR)/$(MODULE)
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz#
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz# Include common rules.
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz#
193974072f41a843678abf5f61979c748687e66bSherry Mooreinclude $(UTSBASE)/i86pc/Makefile.i86pc
193974072f41a843678abf5f61979c748687e66bSherry Moore
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz#
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz# Define targets
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz#
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartzALL_TARGET = $(BINARY)
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartzLINT_TARGET = $(MODULE).lint
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartzINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
193974072f41a843678abf5f61979c748687e66bSherry Moore
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz#
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz# Overrides.
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz#
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartzDEBUG_FLGS =
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartzDEBUG_DEFS += $(DEBUG_FLGS)
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz#
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz# Depends on ACPI CA interpreter
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz#
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartzLDFLAGS += -dy -N misc/acpica
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz#
0ad689d678ef901f32945172f48ddc7b16dde50dschwartz# For now, disable these lint checks; maintainers should endeavor
0ad689d678ef901f32945172f48ddc7b16dde50dschwartz# to investigate and remove these for maximum lint coverage.
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz# Please do not carry these forward to new Makefiles.
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz#
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartzLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartzLINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz#
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz# Default build targets.
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz#
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz.KEEP_STATE:
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartzdef: $(DEF_DEPS)
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartzall: $(ALL_DEPS)
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartzclean: $(CLEAN_DEPS)
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartzclobber: $(CLOBBER_DEPS)
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartzlint: $(LINT_DEPS)
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartzmodlintlib: $(MODLINTLIB_DEPS)
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartzclean.lint: $(CLEAN_LINT_DEPS)
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartzinstall: $(INSTALL_DEPS)
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz#
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz# Include common targets.
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz#
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartzinclude $(UTSBASE)/i86pc/Makefile.targ
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz