1d58fda43Sjbeloro# 2d58fda43Sjbeloro# CDDL HEADER START 3d58fda43Sjbeloro# 4d58fda43Sjbeloro# The contents of this file are subject to the terms of the 5*bf56214cSstevel# Common Development and Distribution License (the "License"). 6*bf56214cSstevel# You may not use this file except in compliance with the License. 7d58fda43Sjbeloro# 8d58fda43Sjbeloro# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9d58fda43Sjbeloro# or http://www.opensolaris.org/os/licensing. 10d58fda43Sjbeloro# See the License for the specific language governing permissions 11d58fda43Sjbeloro# and limitations under the License. 12d58fda43Sjbeloro# 13d58fda43Sjbeloro# When distributing Covered Code, include this CDDL HEADER in each 14d58fda43Sjbeloro# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15d58fda43Sjbeloro# If applicable, add the following below this CDDL HEADER, with the 16d58fda43Sjbeloro# fields enclosed by brackets "[]" replaced with your own identifying 17d58fda43Sjbeloro# information: Portions Copyright [yyyy] [name of copyright owner] 18d58fda43Sjbeloro# 19d58fda43Sjbeloro# CDDL HEADER END 20d58fda43Sjbeloro# 21d58fda43Sjbeloro# 22*bf56214cSstevel# Copyright 2007 Sun Microsystems, Inc. All rights reserved. 23d58fda43Sjbeloro# Use is subject to license terms. 24d58fda43Sjbeloro# 25d58fda43Sjbeloro#pragma ident "%Z%%M% %I% %E% SMI" 26d58fda43Sjbeloro# 27d58fda43Sjbeloro# This makefile drives the production of the adm1026 driver kernel module 28d58fda43Sjbeloro# 29d58fda43Sjbeloro# sun4u implementation architecture dependent 30d58fda43Sjbeloro# 31d58fda43Sjbeloro 32d58fda43Sjbeloro# 33d58fda43Sjbeloro# Path to the base of the uts directory tree (usually /usr/src/uts). 34d58fda43Sjbeloro# 35d58fda43SjbeloroUTSBASE = ../.. 36d58fda43Sjbeloro 37d58fda43Sjbeloro# 38d58fda43Sjbeloro# Define the module and object file sets. 39d58fda43Sjbeloro# 40d58fda43SjbeloroMODULE = adm1026 41d58fda43SjbeloroOBJECTS = $(ADM1026_OBJS:%=$(OBJS_DIR)/%) 42d58fda43SjbeloroLINTS = $(ADM1026_OBJS:%.o=$(LINTS_DIR)/%.ln) 43d58fda43SjbeloroROOTMODULE = $(ROOT_PSM_DRV_DIR)/$(MODULE) 44d58fda43Sjbeloro 45d58fda43Sjbeloro# 46d58fda43Sjbeloro# Include common rules. 47d58fda43Sjbeloro# 48d58fda43Sjbeloroinclude $(UTSBASE)/sun4u/Makefile.sun4u 49d58fda43Sjbeloro 50d58fda43Sjbeloro# 51d58fda43Sjbeloro# lint pass one enforcement 52d58fda43Sjbeloro# 53d58fda43SjbeloroCFLAGS += $(CCVERBOSE) 54d58fda43SjbeloroLDFLAGS += -dy -N misc/i2c_svc 55d58fda43Sjbeloro 56d58fda43Sjbeloro# compile time debug flag 57d58fda43Sjbeloro 58d58fda43Sjbeloro 59d58fda43Sjbeloro# 60d58fda43Sjbeloro# Define targets 61d58fda43Sjbeloro# 62d58fda43SjbeloroALL_TARGET = $(BINARY) 63d58fda43SjbeloroLINT_TARGET = $(MODULE).lint 64d58fda43SjbeloroINSTALL_TARGET = $(BINARY) $(ROOTMODULE) 65d58fda43Sjbeloro 66d58fda43Sjbeloro.KEEP_STATE: 67d58fda43Sjbeloro 68d58fda43Sjbeloro 69d58fda43Sjbeloroall: $(ALL_DEPS) 70d58fda43Sjbeloro 71d58fda43Sjbelorodef: $(DEF_DEPS) 72d58fda43Sjbeloro 73d58fda43Sjbeloroclean: $(CLEAN_DEPS) 74d58fda43Sjbeloro 75d58fda43Sjbeloroclobber: $(CLOBBER_DEPS) 76d58fda43Sjbeloro 77d58fda43Sjbelorolint: $(LINT_DEPS) 78d58fda43Sjbeloro 79d58fda43Sjbeloromodlintlib: $(MODLINTLIB_DEPS) 80d58fda43Sjbeloro 81d58fda43Sjbeloroclean.lint: $(CLEAN_LINT_DEPS) 82d58fda43Sjbeloro 83d58fda43Sjbeloroinstall: $(INSTALL_DEPS) 84d58fda43Sjbeloro 85d58fda43Sjbeloro# Include common targets. 86d58fda43Sjbeloro# 87d58fda43Sjbeloroinclude $(UTSBASE)/sun4u/Makefile.targ 88