Makefile revision 03831d35f7499c87d51205817c93e9a8d42c4bae
225N/A#
225N/A# CDDL HEADER START
225N/A#
225N/A# The contents of this file are subject to the terms of the
225N/A# Common Development and Distribution License (the "License").
225N/A# You may not use this file except in compliance with the License.
225N/A#
225N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
225N/A# or http://www.opensolaris.org/os/licensing.
225N/A# See the License for the specific language governing permissions
225N/A# and limitations under the License.
225N/A#
225N/A# When distributing Covered Code, include this CDDL HEADER in each
225N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
225N/A# If applicable, add the following below this CDDL HEADER, with the
225N/A# fields enclosed by brackets "[]" replaced with your own identifying
225N/A# information: Portions Copyright [yyyy] [name of copyright owner]
225N/A#
225N/A# CDDL HEADER END
225N/A#
225N/A
225N/A#
225N/A# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
225N/A# Use is subject to license terms.
225N/A#
225N/A# ident "%Z%%M% %I% %E% SMI"
225N/A#
225N/A# This makefile drives the production of the sghsc driver
225N/A# kernel module.
618N/A#
225N/A# sun4u implementation architecture dependent
225N/A#
225N/A
225N/A#
225N/A# Path to the base of the uts directory tree (usually /usr/src/uts).
225N/A#
225N/AUTSBASE = ../../..
225N/A
225N/A#
225N/A# Define the module and object file sets.
225N/A#
225N/AMODULE = sghsc
225N/AOBJECTS = $(SGHSC_OBJS:%=$(OBJS_DIR)/%)
225N/ALINTS = $(SGHSC_OBJS:%.o=$(LINTS_DIR)/%.ln)
225N/AROOTMODULE = $(ROOT_SERENGETI_DRV_DIR)/$(MODULE)
225N/ACONF_SRCDIR = $(UTSBASE)/sun4u/serengeti/io
225N/A
225N/A#
225N/A# Include common rules.
225N/A#
225N/Ainclude $(UTSBASE)/sun4u/serengeti/Makefile.serengeti
225N/A
225N/A#
225N/A# Define targets
225N/A#
225N/AALL_TARGET = $(BINARY) $(SRC_CONFFILE)
225N/ALINT_TARGET = $(MODULE).lint
225N/AINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
225N/A
225N/A#
225N/A# Overrides
225N/A#
225N/AALL_BUILDS = $(ALL_BUILDSONLY64)
225N/ADEF_BUILDS = $(DEF_BUILDSONLY64)
225N/ACLEANLINTFILES += $(LINT32_FILES)
225N/A
225N/A#
313N/A# lint pass one enforcement
225N/A#
225N/ACFLAGS += $(CCVERBOSE)
225N/A
225N/A#
# Turn on doubleword alignment for 64 bit registers
#
CFLAGS += -dalign
#
# Dependency
#
LDFLAGS += -dy -Ndrv/sgsbbc -Nmisc/hpcsvc
#
# Default build targets.
#
.KEEP_STATE:
def: $(DEF_DEPS)
all: $(ALL_DEPS)
clean: $(CLEAN_DEPS)
clobber: $(CLOBBER_DEPS)
lint: $(LINT_DEPS)
modlintlib: $(MODLINTLIB_DEPS)
clean.lint: $(CLEAN_LINT_DEPS)
install: $(INSTALL_DEPS)
#
# Include common targets.
#
include $(UTSBASE)/sun4u/serengeti/Makefile.targ