Makefile revision 29949e866e40b95795203f3ee46f44a197c946e4
0ec34f25c64c45ece0daed8255fb3bbe20db7b54James Phillpotts#
0ec34f25c64c45ece0daed8255fb3bbe20db7b54James Phillpotts# CDDL HEADER START
0ec34f25c64c45ece0daed8255fb3bbe20db7b54James Phillpotts#
0ec34f25c64c45ece0daed8255fb3bbe20db7b54James Phillpotts# The contents of this file are subject to the terms of the
0ec34f25c64c45ece0daed8255fb3bbe20db7b54James Phillpotts# Common Development and Distribution License (the "License").
0ec34f25c64c45ece0daed8255fb3bbe20db7b54James Phillpotts# You may not use this file except in compliance with the License.
0ec34f25c64c45ece0daed8255fb3bbe20db7b54James Phillpotts#
0ec34f25c64c45ece0daed8255fb3bbe20db7b54James Phillpotts# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
0ec34f25c64c45ece0daed8255fb3bbe20db7b54James Phillpotts# or http://www.opensolaris.org/os/licensing.
0ec34f25c64c45ece0daed8255fb3bbe20db7b54James Phillpotts# See the License for the specific language governing permissions
0ec34f25c64c45ece0daed8255fb3bbe20db7b54James Phillpotts# and limitations under the License.
0ec34f25c64c45ece0daed8255fb3bbe20db7b54James Phillpotts#
0ec34f25c64c45ece0daed8255fb3bbe20db7b54James Phillpotts# When distributing Covered Code, include this CDDL HEADER in each
0ec34f25c64c45ece0daed8255fb3bbe20db7b54James Phillpotts# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
0ec34f25c64c45ece0daed8255fb3bbe20db7b54James Phillpotts# If applicable, add the following below this CDDL HEADER, with the
0ec34f25c64c45ece0daed8255fb3bbe20db7b54James Phillpotts# fields enclosed by brackets "[]" replaced with your own identifying
0ec34f25c64c45ece0daed8255fb3bbe20db7b54James Phillpotts# information: Portions Copyright [yyyy] [name of copyright owner]
0ec34f25c64c45ece0daed8255fb3bbe20db7b54James Phillpotts#
0ec34f25c64c45ece0daed8255fb3bbe20db7b54James Phillpotts# CDDL HEADER END
0ec34f25c64c45ece0daed8255fb3bbe20db7b54James Phillpotts#
0ec34f25c64c45ece0daed8255fb3bbe20db7b54James Phillpotts
0ec34f25c64c45ece0daed8255fb3bbe20db7b54James Phillpotts#
0ec34f25c64c45ece0daed8255fb3bbe20db7b54James Phillpotts# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
0ec34f25c64c45ece0daed8255fb3bbe20db7b54James Phillpotts# Use is subject to license terms.
0ec34f25c64c45ece0daed8255fb3bbe20db7b54James Phillpotts#
0ec34f25c64c45ece0daed8255fb3bbe20db7b54James Phillpotts#ident "%Z%%M% %I% %E% SMI"
0ec34f25c64c45ece0daed8255fb3bbe20db7b54James Phillpotts#
0ec34f25c64c45ece0daed8255fb3bbe20db7b54James Phillpotts# This makefile drives the production of the ac driver kernel module.
0ec34f25c64c45ece0daed8255fb3bbe20db7b54James Phillpotts#
0ec34f25c64c45ece0daed8255fb3bbe20db7b54James Phillpotts# sun4u implementation architecture dependent
0ec34f25c64c45ece0daed8255fb3bbe20db7b54James Phillpotts#
0ec34f25c64c45ece0daed8255fb3bbe20db7b54James Phillpotts
0ec34f25c64c45ece0daed8255fb3bbe20db7b54James Phillpotts#
0ec34f25c64c45ece0daed8255fb3bbe20db7b54James Phillpotts# Path to the base of the uts directory tree (usually /usr/src/uts).
0ec34f25c64c45ece0daed8255fb3bbe20db7b54James Phillpotts#
0ec34f25c64c45ece0daed8255fb3bbe20db7b54James PhillpottsUTSBASE = ../../..
0ec34f25c64c45ece0daed8255fb3bbe20db7b54James Phillpotts
0ec34f25c64c45ece0daed8255fb3bbe20db7b54James Phillpotts#
0ec34f25c64c45ece0daed8255fb3bbe20db7b54James Phillpotts# Define the module and object file sets.
#
MODULE = ac
OBJECTS = $(AC_OBJS:%=$(OBJS_DIR)/%)
LINTS = $(AC_OBJS:%.o=$(LINTS_DIR)/%.ln)
ROOTMODULE = $(ROOT_SUNFIRE_DRV_DIR)/$(MODULE)
#
# Include common rules.
#
include $(UTSBASE)/sun4u/sunfire/Makefile.sunfire
#
# Define targets
#
ALL_TARGET = $(BINARY)
LINT_TARGET = $(MODULE).lint
INSTALL_TARGET = $(BINARY) $(ROOTMODULE)
#
# lint pass one enforcement
#
CFLAGS += $(CCVERBOSE)
#
# Turn on doubleword alignment for 64 bit registers
#
CFLAGS += -dalign
#
# 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/sunfire/Makefile.targ