Makefile revision 66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24
1029N/A#
1029N/A# CDDL HEADER START
1029N/A#
1029N/A# The contents of this file are subject to the terms of the
1111N/A# Common Development and Distribution License (the "License").
1029N/A# You may not use this file except in compliance with the License.
1029N/A#
1042N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1042N/A# or http://www.opensolaris.org/os/licensing.
1042N/A# See the License for the specific language governing permissions
1042N/A# and limitations under the License.
1042N/A#
1042N/A# When distributing Covered Code, include this CDDL HEADER in each
1042N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1042N/A# If applicable, add the following below this CDDL HEADER, with the
1042N/A# fields enclosed by brackets "[]" replaced with your own identifying
1042N/A# information: Portions Copyright [yyyy] [name of copyright owner]
1042N/A#
1042N/A# CDDL HEADER END
1042N/A#
1042N/A
1042N/A#
1042N/A# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
1042N/A# Use is subject to license terms.
1029N/A#
1029N/A# ident "%Z%%M% %I% %E% SMI"
1029N/A#
1029N/A
1029N/A#
1029N/A# uts/sparc/sata/Makefile
1029N/A#
1029N/A# This makefile drives the production of the sata "misc"
1029N/A# kernel module.
1029N/A#
1029N/A# sparc architecture dependent
1029N/A#
1029N/A
1029N/A#
1029N/A# Path to the base of the uts directory tree (usually /usr/src/uts).
1029N/A#
1029N/AUTSBASE = ../..
1029N/A
1029N/A#
1029N/A# Define the module and object file sets.
1029N/A#
1042N/AMODULE = sata
1029N/AOBJECTS = $(SATA_OBJS:%=$(OBJS_DIR)/%)
1029N/ALINTS = $(SATA_OBJS:%.o=$(LINTS_DIR)/%.ln)
1029N/AWARLOCK_OUT = $(SATA_OBJS:%.o=%.ll)
1181N/AWARLOCK_OK = $(MODULE).ok
1029N/AROOTMODULE = $(ROOT_MISC_DIR)/$(MODULE)
1029N/A
1029N/A#
1029N/A# Include common rules.
1029N/A#
1029N/Ainclude $(UTSBASE)/sparc/Makefile.sparc
1029N/A
1029N/A#
1029N/A# Define targets
1029N/A#
1029N/AALL_TARGET = $(BINARY)
1029N/ALINT_TARGET = $(MODULE).lint
1029N/AINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
1029N/A
1029N/A#
1029N/A# Overrides.
1029N/A#
1196N/ADEBUG_FLGS =
1196N/ADEBUG_DEFS += $(DEBUG_FLGS)
1196N/A
1196N/A#
1029N/A# lint pass one enforcement
1029N/A#
1029N/ACFLAGS += $(CCVERBOSE)
1196N/A
1196N/A#
1196N/A# Default build targets.
1196N/A#
1196N/A.KEEP_STATE:
1196N/A
1181N/Adef: $(DEF_DEPS)
1181N/A
1181N/Aall: $(ALL_DEPS)
1029N/A
1029N/Aclean: $(CLEAN_DEPS); \
1176N/A $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
1029N/A
1029N/Aclobber: $(CLOBBER_DEPS); \
1031N/A $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
1031N/A
1031N/Alint: $(LINT_DEPS)
1031N/A
1031N/Amodlintlib: $(MODLINTLIB_DEPS)
1031N/A
1031N/Aclean.lint: $(CLEAN_LINT_DEPS)
1031N/A
1031N/Ainstall: $(INSTALL_DEPS)
1031N/A
1031N/A#
1031N/A# Include common targets.
1181N/A#
1181N/Ainclude $(UTSBASE)/sparc/Makefile.targ
1181N/A
1181N/A#
1181N/A# Defines for local commands.
1181N/A#
1181N/AWLCC = wlcc
TOUCH = touch
WARLOCK = warlock
#
# Warlock targets
#
SATA_FILES = $(SATA_OBJS:%.o=%.ll)
warlock: $(MODULE).ok
%.ok: $(SATA_FILES)
$(TOUCH) $@
%.ll: $(UTSBASE)/common/io/sata/impl/%.c
$(WLCC) $(CPPFLAGS) -D __sparcv9 -DDEBUG -o $@ $<