Makefile revision 4bb7efa72ed531c10f097919636e67724ec4c25a
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# CDDL HEADER START
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# The contents of this file are subject to the terms of the
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# Common Development and Distribution License (the "License").
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# You may not use this file except in compliance with the License.
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# or http://www.opensolaris.org/os/licensing.
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# See the License for the specific language governing permissions
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# and limitations under the License.
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# When distributing Covered Code, include this CDDL HEADER in each
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# If applicable, add the following below this CDDL HEADER, with the
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# fields enclosed by brackets "[]" replaced with your own identifying
922312472e2e05ebc64993d465999c5351b83036Automatic Updater# information: Portions Copyright [yyyy] [name of copyright owner]
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# CDDL HEADER END
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# Use is subject to license terms.
922312472e2e05ebc64993d465999c5351b83036Automatic Updater#
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# uts/sparc/sdcard/Makefile
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# This makefile drives the production of the sdcard driver.
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# sparc architecture dependent
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# Path to the base of the uts directory tree (usually /usr/src/uts).
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#
2a31bd531072824ef252c18303859d6af7451b00Francis DupontUTSBASE = ../..
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# Define the module and object file sets.
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#
2a31bd531072824ef252c18303859d6af7451b00Francis DupontMODULE = sdcard
2a31bd531072824ef252c18303859d6af7451b00Francis DupontOBJECTS = $(SDCARD_OBJS:%=$(OBJS_DIR)/%)
2a31bd531072824ef252c18303859d6af7451b00Francis DupontLINTS = $(SDCARD_OBJS:%.o=$(LINTS_DIR)/%.ln)
2a31bd531072824ef252c18303859d6af7451b00Francis DupontROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# Include common rules.
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#
2a31bd531072824ef252c18303859d6af7451b00Francis Dupontinclude $(UTSBASE)/sparc/Makefile.sparc
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont
922312472e2e05ebc64993d465999c5351b83036Automatic Updater#
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# Define targets
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#
2a31bd531072824ef252c18303859d6af7451b00Francis DupontALL_TARGET = $(BINARY)
28b3569d6248168e6c00caab951521cc8141a49dAutomatic UpdaterLINT_TARGET = $(MODULE).lint
2a31bd531072824ef252c18303859d6af7451b00Francis DupontINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#
922312472e2e05ebc64993d465999c5351b83036Automatic Updater# Overrides.
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#
2a31bd531072824ef252c18303859d6af7451b00Francis DupontDEBUG_FLGS =
2a31bd531072824ef252c18303859d6af7451b00Francis DupontDEBUG_DEFS += $(DEBUG_FLGS)
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont
28b3569d6248168e6c00caab951521cc8141a49dAutomatic Updater#
28b3569d6248168e6c00caab951521cc8141a49dAutomatic Updater# lint pass one enforcement
731cc132f22dbc9e0ecd7035dce314a61076d31bAutomatic Updater#
731cc132f22dbc9e0ecd7035dce314a61076d31bAutomatic UpdaterCFLAGS += $(CCVERBOSE)
28b3569d6248168e6c00caab951521cc8141a49dAutomatic Updater
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# dependency on sda module
28b3569d6248168e6c00caab951521cc8141a49dAutomatic Updater#
2a31bd531072824ef252c18303859d6af7451b00Francis DupontLDFLAGS += -dy -N misc/sda
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# Default build targets.
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont.KEEP_STATE:
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont
2a31bd531072824ef252c18303859d6af7451b00Francis Dupontdef: $(DEF_DEPS)
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont
2a31bd531072824ef252c18303859d6af7451b00Francis Dupontall: $(ALL_DEPS)
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont
2a31bd531072824ef252c18303859d6af7451b00Francis Dupontclean: $(CLEAN_DEPS)
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont
2a31bd531072824ef252c18303859d6af7451b00Francis Dupontclobber: $(CLOBBER_DEPS)
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont
2a31bd531072824ef252c18303859d6af7451b00Francis Dupontlint: $(LINT_DEPS)
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont
2a31bd531072824ef252c18303859d6af7451b00Francis Dupontmodlintlib: $(MODLINTLIB_DEPS)
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont
2a31bd531072824ef252c18303859d6af7451b00Francis Dupontclean.lint: $(CLEAN_LINT_DEPS)
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont
2a31bd531072824ef252c18303859d6af7451b00Francis Dupontinstall: $(INSTALL_DEPS)
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# Include common targets.
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#
2a31bd531072824ef252c18303859d6af7451b00Francis Dupontinclude $(UTSBASE)/sparc/Makefile.targ
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont