Makefile revision b9abf02b6b0b25b52da10e6715c0b6544d361d51
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# CDDL HEADER START
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# The contents of this file are subject to the terms of the
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# Common Development and Distribution License (the "License").
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# You may not use this file except in compliance with the License.
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# or http://www.opensolaris.org/os/licensing.
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# See the License for the specific language governing permissions
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# and limitations under the License.
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# When distributing Covered Code, include this CDDL HEADER in each
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# If applicable, add the following below this CDDL HEADER, with the
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# fields enclosed by brackets "[]" replaced with your own identifying
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# information: Portions Copyright [yyyy] [name of copyright owner]
8eea877894ea5bcf5cdd9ca124a8601ad421d753Andreas Gustafsson# CDDL HEADER END
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# Use is subject to license terms.
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# ident "%Z%%M% %I% %E% SMI"
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# This makefile drives the production of the drmach loadable module.
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# sun4u opl implementation architecture dependent
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# Path to the base of the uts directory tree (usually /usr/src/uts).
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# Define the module and object file sets.
ddccd5811feff696ba460dabfb666ce61040f545Andreas GustafssonLINTS = $(DRMACH_OBJS:%.o=$(LINTS_DIR)/%.ln)
ddccd5811feff696ba460dabfb666ce61040f545Andreas GustafssonROOTMODULE = $(ROOT_OPL_MISC_DIR)/$(MODULE)
ddccd5811feff696ba460dabfb666ce61040f545Andreas GustafssonDRMACH_OFFSETS = $(UTSBASE)/sun4u/opl/ml/drmach_offsets.in
ddccd5811feff696ba460dabfb666ce61040f545Andreas GustafssonDRMACH_OFFSETS_H = $(OBJS_DIR)/drmach_offsets.h
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# Include common rules.
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# Define targets
ddccd5811feff696ba460dabfb666ce61040f545Andreas GustafssonCLEANFILES += $(DRMACH_OFFSETS_H) $(DRMACH_OFFSETS_OUT)
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# lint pass one enforcement
8eea877894ea5bcf5cdd9ca124a8601ad421d753Andreas Gustafsson# module dependencies
8eea877894ea5bcf5cdd9ca124a8601ad421d753Andreas Gustafsson# Default build targets.
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson$(DRMACH_DEPS:%=$(OBJS_DIR)/%): $(DRMACH_OFFSETS_H)
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson$(DRMACH_OFFSETS_H): $(GENCONST) $(DRMACH_OFFSETS)
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# Include common targets.