Makefile revision bf56214c0556fa6864189c826d39dbe156bb22a0
d58fda4376e4bf67072ce2e69f6f47036f9dbb68jbeloro#
d58fda4376e4bf67072ce2e69f6f47036f9dbb68jbeloro# CDDL HEADER START
d58fda4376e4bf67072ce2e69f6f47036f9dbb68jbeloro#
d58fda4376e4bf67072ce2e69f6f47036f9dbb68jbeloro# The contents of this file are subject to the terms of the
bf56214c0556fa6864189c826d39dbe156bb22a0stevel# Common Development and Distribution License (the "License").
bf56214c0556fa6864189c826d39dbe156bb22a0stevel# You may not use this file except in compliance with the License.
d58fda4376e4bf67072ce2e69f6f47036f9dbb68jbeloro#
d58fda4376e4bf67072ce2e69f6f47036f9dbb68jbeloro# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
d58fda4376e4bf67072ce2e69f6f47036f9dbb68jbeloro# or http://www.opensolaris.org/os/licensing.
d58fda4376e4bf67072ce2e69f6f47036f9dbb68jbeloro# See the License for the specific language governing permissions
d58fda4376e4bf67072ce2e69f6f47036f9dbb68jbeloro# and limitations under the License.
d58fda4376e4bf67072ce2e69f6f47036f9dbb68jbeloro#
d58fda4376e4bf67072ce2e69f6f47036f9dbb68jbeloro# When distributing Covered Code, include this CDDL HEADER in each
d58fda4376e4bf67072ce2e69f6f47036f9dbb68jbeloro# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
d58fda4376e4bf67072ce2e69f6f47036f9dbb68jbeloro# If applicable, add the following below this CDDL HEADER, with the
d58fda4376e4bf67072ce2e69f6f47036f9dbb68jbeloro# fields enclosed by brackets "[]" replaced with your own identifying
d58fda4376e4bf67072ce2e69f6f47036f9dbb68jbeloro# information: Portions Copyright [yyyy] [name of copyright owner]
d58fda4376e4bf67072ce2e69f6f47036f9dbb68jbeloro#
d58fda4376e4bf67072ce2e69f6f47036f9dbb68jbeloro# CDDL HEADER END
d58fda4376e4bf67072ce2e69f6f47036f9dbb68jbeloro#
d58fda4376e4bf67072ce2e69f6f47036f9dbb68jbeloro#
bf56214c0556fa6864189c826d39dbe156bb22a0stevel# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
d58fda4376e4bf67072ce2e69f6f47036f9dbb68jbeloro# Use is subject to license terms.
d58fda4376e4bf67072ce2e69f6f47036f9dbb68jbeloro#
d58fda4376e4bf67072ce2e69f6f47036f9dbb68jbeloro#pragma ident "%Z%%M% %I% %E% SMI"
d58fda4376e4bf67072ce2e69f6f47036f9dbb68jbeloro#
d58fda4376e4bf67072ce2e69f6f47036f9dbb68jbeloro# This makefile drives the production of the adm1026 driver kernel module
d58fda4376e4bf67072ce2e69f6f47036f9dbb68jbeloro#
d58fda4376e4bf67072ce2e69f6f47036f9dbb68jbeloro# sun4u implementation architecture dependent
d58fda4376e4bf67072ce2e69f6f47036f9dbb68jbeloro#
d58fda4376e4bf67072ce2e69f6f47036f9dbb68jbeloro
d58fda4376e4bf67072ce2e69f6f47036f9dbb68jbeloro#
d58fda4376e4bf67072ce2e69f6f47036f9dbb68jbeloro# Path to the base of the uts directory tree (usually /usr/src/uts).
d58fda4376e4bf67072ce2e69f6f47036f9dbb68jbeloro#
d58fda4376e4bf67072ce2e69f6f47036f9dbb68jbeloroUTSBASE = ../..
d58fda4376e4bf67072ce2e69f6f47036f9dbb68jbeloro
d58fda4376e4bf67072ce2e69f6f47036f9dbb68jbeloro#
d58fda4376e4bf67072ce2e69f6f47036f9dbb68jbeloro# Define the module and object file sets.
d58fda4376e4bf67072ce2e69f6f47036f9dbb68jbeloro#
d58fda4376e4bf67072ce2e69f6f47036f9dbb68jbeloroMODULE = adm1026
d58fda4376e4bf67072ce2e69f6f47036f9dbb68jbeloroOBJECTS = $(ADM1026_OBJS:%=$(OBJS_DIR)/%)
d58fda4376e4bf67072ce2e69f6f47036f9dbb68jbeloroLINTS = $(ADM1026_OBJS:%.o=$(LINTS_DIR)/%.ln)
d58fda4376e4bf67072ce2e69f6f47036f9dbb68jbeloroROOTMODULE = $(ROOT_PSM_DRV_DIR)/$(MODULE)
d58fda4376e4bf67072ce2e69f6f47036f9dbb68jbeloro
d58fda4376e4bf67072ce2e69f6f47036f9dbb68jbeloro#
d58fda4376e4bf67072ce2e69f6f47036f9dbb68jbeloro# Include common rules.
d58fda4376e4bf67072ce2e69f6f47036f9dbb68jbeloro#
d58fda4376e4bf67072ce2e69f6f47036f9dbb68jbeloroinclude $(UTSBASE)/sun4u/Makefile.sun4u
d58fda4376e4bf67072ce2e69f6f47036f9dbb68jbeloro
d58fda4376e4bf67072ce2e69f6f47036f9dbb68jbeloro#
d58fda4376e4bf67072ce2e69f6f47036f9dbb68jbeloro# lint pass one enforcement
d58fda4376e4bf67072ce2e69f6f47036f9dbb68jbeloro#
d58fda4376e4bf67072ce2e69f6f47036f9dbb68jbeloroCFLAGS += $(CCVERBOSE)
d58fda4376e4bf67072ce2e69f6f47036f9dbb68jbeloroLDFLAGS += -dy -N misc/i2c_svc
d58fda4376e4bf67072ce2e69f6f47036f9dbb68jbeloro
d58fda4376e4bf67072ce2e69f6f47036f9dbb68jbeloro# compile time debug flag
d58fda4376e4bf67072ce2e69f6f47036f9dbb68jbeloro
d58fda4376e4bf67072ce2e69f6f47036f9dbb68jbeloro
d58fda4376e4bf67072ce2e69f6f47036f9dbb68jbeloro#
d58fda4376e4bf67072ce2e69f6f47036f9dbb68jbeloro# Define targets
d58fda4376e4bf67072ce2e69f6f47036f9dbb68jbeloro#
d58fda4376e4bf67072ce2e69f6f47036f9dbb68jbeloroALL_TARGET = $(BINARY)
d58fda4376e4bf67072ce2e69f6f47036f9dbb68jbeloroLINT_TARGET = $(MODULE).lint
d58fda4376e4bf67072ce2e69f6f47036f9dbb68jbeloroINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
d58fda4376e4bf67072ce2e69f6f47036f9dbb68jbeloro
d58fda4376e4bf67072ce2e69f6f47036f9dbb68jbeloro.KEEP_STATE:
d58fda4376e4bf67072ce2e69f6f47036f9dbb68jbeloro
d58fda4376e4bf67072ce2e69f6f47036f9dbb68jbeloro
d58fda4376e4bf67072ce2e69f6f47036f9dbb68jbeloroall: $(ALL_DEPS)
d58fda4376e4bf67072ce2e69f6f47036f9dbb68jbeloro
d58fda4376e4bf67072ce2e69f6f47036f9dbb68jbelorodef: $(DEF_DEPS)
d58fda4376e4bf67072ce2e69f6f47036f9dbb68jbeloro
d58fda4376e4bf67072ce2e69f6f47036f9dbb68jbeloroclean: $(CLEAN_DEPS)
d58fda4376e4bf67072ce2e69f6f47036f9dbb68jbeloro
d58fda4376e4bf67072ce2e69f6f47036f9dbb68jbeloroclobber: $(CLOBBER_DEPS)
d58fda4376e4bf67072ce2e69f6f47036f9dbb68jbeloro
d58fda4376e4bf67072ce2e69f6f47036f9dbb68jbelorolint: $(LINT_DEPS)
d58fda4376e4bf67072ce2e69f6f47036f9dbb68jbeloro
d58fda4376e4bf67072ce2e69f6f47036f9dbb68jbeloromodlintlib: $(MODLINTLIB_DEPS)
d58fda4376e4bf67072ce2e69f6f47036f9dbb68jbeloro
d58fda4376e4bf67072ce2e69f6f47036f9dbb68jbeloroclean.lint: $(CLEAN_LINT_DEPS)
d58fda4376e4bf67072ce2e69f6f47036f9dbb68jbeloro
d58fda4376e4bf67072ce2e69f6f47036f9dbb68jbeloroinstall: $(INSTALL_DEPS)
d58fda4376e4bf67072ce2e69f6f47036f9dbb68jbeloro
d58fda4376e4bf67072ce2e69f6f47036f9dbb68jbeloro# Include common targets.
d58fda4376e4bf67072ce2e69f6f47036f9dbb68jbeloro#
d58fda4376e4bf67072ce2e69f6f47036f9dbb68jbeloroinclude $(UTSBASE)/sun4u/Makefile.targ