Makefile revision 7014882c6a3672fd0e5d60200af8643ae53c5928
5cff782560a1c3cf913ba5574a5123a299f3315emh#
5cff782560a1c3cf913ba5574a5123a299f3315emh# CDDL HEADER START
5cff782560a1c3cf913ba5574a5123a299f3315emh#
5cff782560a1c3cf913ba5574a5123a299f3315emh# The contents of this file are subject to the terms of the
5cff782560a1c3cf913ba5574a5123a299f3315emh# Common Development and Distribution License, Version 1.0 only
5cff782560a1c3cf913ba5574a5123a299f3315emh# (the "License"). You may not use this file except in compliance
5cff782560a1c3cf913ba5574a5123a299f3315emh# with the License.
5cff782560a1c3cf913ba5574a5123a299f3315emh#
5cff782560a1c3cf913ba5574a5123a299f3315emh# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
5cff782560a1c3cf913ba5574a5123a299f3315emh# or http://www.opensolaris.org/os/licensing.
5cff782560a1c3cf913ba5574a5123a299f3315emh# See the License for the specific language governing permissions
5cff782560a1c3cf913ba5574a5123a299f3315emh# and limitations under the License.
5cff782560a1c3cf913ba5574a5123a299f3315emh#
5cff782560a1c3cf913ba5574a5123a299f3315emh# When distributing Covered Code, include this CDDL HEADER in each
5cff782560a1c3cf913ba5574a5123a299f3315emh# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
5cff782560a1c3cf913ba5574a5123a299f3315emh# If applicable, add the following below this CDDL HEADER, with the
5cff782560a1c3cf913ba5574a5123a299f3315emh# fields enclosed by brackets "[]" replaced with your own identifying
5cff782560a1c3cf913ba5574a5123a299f3315emh# information: Portions Copyright [yyyy] [name of copyright owner]
5cff782560a1c3cf913ba5574a5123a299f3315emh#
5cff782560a1c3cf913ba5574a5123a299f3315emh# CDDL HEADER END
5cff782560a1c3cf913ba5574a5123a299f3315emh#
310da939904e5e37a19c8a427209c0d4d9683ec8Surya Prakki#
5cff782560a1c3cf913ba5574a5123a299f3315emh# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
5cff782560a1c3cf913ba5574a5123a299f3315emh# Use is subject to license terms.
5cff782560a1c3cf913ba5574a5123a299f3315emh#
5cff782560a1c3cf913ba5574a5123a299f3315emh# uts/sun4u/starfire/sbus/Makefile
5cff782560a1c3cf913ba5574a5123a299f3315emh#
5cff782560a1c3cf913ba5574a5123a299f3315emh# This makefile drives the production of the SBus driver kernel module,
5cff782560a1c3cf913ba5574a5123a299f3315emh# the iommu nexus, and the obio nexus (which really is sbus on sun5).
5cff782560a1c3cf913ba5574a5123a299f3315emh#
5cff782560a1c3cf913ba5574a5123a299f3315emh# starfire implementation architecture dependent
5cff782560a1c3cf913ba5574a5123a299f3315emh#
5cff782560a1c3cf913ba5574a5123a299f3315emh
5cff782560a1c3cf913ba5574a5123a299f3315emh#
5cff782560a1c3cf913ba5574a5123a299f3315emh# Path to the base of the uts directory tree (usually /usr/src/uts).
5cff782560a1c3cf913ba5574a5123a299f3315emh#
5cff782560a1c3cf913ba5574a5123a299f3315emhUTSBASE = ../../..
5cff782560a1c3cf913ba5574a5123a299f3315emh
5cff782560a1c3cf913ba5574a5123a299f3315emh#
5cff782560a1c3cf913ba5574a5123a299f3315emh# Define the module and object file sets.
5cff782560a1c3cf913ba5574a5123a299f3315emh#
5cff782560a1c3cf913ba5574a5123a299f3315emhMODULE = sbus
5cff782560a1c3cf913ba5574a5123a299f3315emhOBJECTS = $(SYSIO_SBUS_OBJS:%=$(OBJS_DIR)/%)
5cff782560a1c3cf913ba5574a5123a299f3315emhLINTS = $(SYSIO_SBUS_OBJS:%.o=$(LINTS_DIR)/%.ln)
5cff782560a1c3cf913ba5574a5123a299f3315emhROOTMODULE = $(ROOT_STARFIRE_DRV_DIR)/$(MODULE)
5cff782560a1c3cf913ba5574a5123a299f3315emh
5cff782560a1c3cf913ba5574a5123a299f3315emh#
5cff782560a1c3cf913ba5574a5123a299f3315emh# Include common rules.
5cff782560a1c3cf913ba5574a5123a299f3315emh#
5cff782560a1c3cf913ba5574a5123a299f3315emhinclude $(UTSBASE)/sun4u/starfire/Makefile.starfire
5cff782560a1c3cf913ba5574a5123a299f3315emh
5cff782560a1c3cf913ba5574a5123a299f3315emh#
5cff782560a1c3cf913ba5574a5123a299f3315emh# Define targets
5cff782560a1c3cf913ba5574a5123a299f3315emh#
5cff782560a1c3cf913ba5574a5123a299f3315emhALL_TARGET = $(BINARY)
5cff782560a1c3cf913ba5574a5123a299f3315emhLINT_TARGET = $(MODULE).lint
5cff782560a1c3cf913ba5574a5123a299f3315emhINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
7014882c6a3672fd0e5d60200af8643ae53c5928Richard Lowe
7014882c6a3672fd0e5d60200af8643ae53c5928Richard Lowe# Turn this on once compiler understands v9 in it's backend
7014882c6a3672fd0e5d60200af8643ae53c5928Richard Lowe#INLINES += $(UTSBASE)/sun4u/io/iommu.il
5cff782560a1c3cf913ba5574a5123a299f3315emh
5cff782560a1c3cf913ba5574a5123a299f3315emh#
5cff782560a1c3cf913ba5574a5123a299f3315emh# lint pass one enforcement
5cff782560a1c3cf913ba5574a5123a299f3315emh#
5cff782560a1c3cf913ba5574a5123a299f3315emhCFLAGS += $(CCVERBOSE)
5cff782560a1c3cf913ba5574a5123a299f3315emhCERRWARN += -_gcc=-Wno-type-limits
5cff782560a1c3cf913ba5574a5123a299f3315emhCERRWARN += -_gcc=-Wno-uninitialized
5cff782560a1c3cf913ba5574a5123a299f3315emh
5cff782560a1c3cf913ba5574a5123a299f3315emh#
5cff782560a1c3cf913ba5574a5123a299f3315emh# Turn on doubleword alignment for 64 bit registers
5cff782560a1c3cf913ba5574a5123a299f3315emh#
5cff782560a1c3cf913ba5574a5123a299f3315emhCFLAGS += -dalign
5cff782560a1c3cf913ba5574a5123a299f3315emh
5cff782560a1c3cf913ba5574a5123a299f3315emh#
5cff782560a1c3cf913ba5574a5123a299f3315emh# Default build targets.
5cff782560a1c3cf913ba5574a5123a299f3315emh#
5cff782560a1c3cf913ba5574a5123a299f3315emh.KEEP_STATE:
5cff782560a1c3cf913ba5574a5123a299f3315emh
5cff782560a1c3cf913ba5574a5123a299f3315emhdef: $(DEF_DEPS)
5cff782560a1c3cf913ba5574a5123a299f3315emh
5cff782560a1c3cf913ba5574a5123a299f3315emhall: $(ALL_DEPS)
5cff782560a1c3cf913ba5574a5123a299f3315emh
5cff782560a1c3cf913ba5574a5123a299f3315emhclean: $(CLEAN_DEPS)
5cff782560a1c3cf913ba5574a5123a299f3315emh
5cff782560a1c3cf913ba5574a5123a299f3315emhclobber: $(CLOBBER_DEPS)
5cff782560a1c3cf913ba5574a5123a299f3315emh
5cff782560a1c3cf913ba5574a5123a299f3315emhlint: $(LINT_DEPS)
5cff782560a1c3cf913ba5574a5123a299f3315emh
5cff782560a1c3cf913ba5574a5123a299f3315emhmodlintlib: $(MODLINTLIB_DEPS)
5cff782560a1c3cf913ba5574a5123a299f3315emh
clean.lint: $(CLEAN_LINT_DEPS)
install: $(INSTALL_DEPS)
#
# Include common targets.
#
include $(UTSBASE)/sun4u/starfire/Makefile.targ