Makefile revision bf56214c0556fa6864189c826d39dbe156bb22a0
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf# CDDL HEADER START
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf#
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf# The contents of this file are subject to the terms of the
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf# Common Development and Distribution License (the "License").
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf# You may not use this file except in compliance with the License.
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf#
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf# or http://www.opensolaris.org/os/licensing.
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf# See the License for the specific language governing permissions
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf# and limitations under the License.
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf#
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf# When distributing Covered Code, include this CDDL HEADER in each
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf# If applicable, add the following below this CDDL HEADER, with the
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf# fields enclosed by brackets "[]" replaced with your own identifying
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf# information: Portions Copyright [yyyy] [name of copyright owner]
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf#
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf# CDDL HEADER END
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf#
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf#
4e942d8cd27c7f8bb80549d7c2564445f19ba4a3shidokht# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf# Use is subject to license terms.
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf#
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf# ident "%Z%%M% %I% %E% SMI"
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf#
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf#
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf# uts/sparc/si3124/Makefile
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf#
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf# This makefile drives the production of the
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf# "platform/i86pc/kernel/drv/si3124" kernel module.
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf#
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf# sparc architecture dependent
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf#
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf#
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf# Path to the base of the uts directory tree (usually /usr/src/uts).
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf#
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlfUTSBASE = ../..
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf#
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf# Define the module and object file sets.
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf#
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlfMODULE = si3124
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlfOBJECTS = $(SI3124_OBJS:%=$(OBJS_DIR)/%)
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlfLINTS = $(SI3124_OBJS:%.o=$(LINTS_DIR)/%.ln)
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlfWARLOCK_OUT = $(SI3124_OBJS:%.o=%.ll)
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlfWARLOCK_OK = $(MODULE).ok
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlfROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlfCONF_SRCDIR = $(UTSBASE)/common/io/sata/adapters/si3124
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997fritsWLCMD_DIR = $(UTSBASE)/common/io/warlock
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf#
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf# Include common rules.
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf#
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlfinclude $(UTSBASE)/sparc/Makefile.sparc
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf#
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf# Define targets
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf#
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlfALL_TARGET = $(BINARY)
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlfLINT_TARGET = $(MODULE).lint
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlfINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf#
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf# Overrides.
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf#
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlfDEBUG_FLGS =
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlfDEBUG_DEFS += $(DEBUG_FLGS)
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf#
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf# lint pass one enforcement
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf#
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlfCFLAGS += $(CCVERBOSE)
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf#
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf# Default build targets.
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf#
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf.KEEP_STATE:
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlfdef: $(DEF_DEPS)
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlfall: $(ALL_DEPS)
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997fritsclean: $(CLEAN_DEPS)
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997fritsclobber: $(CLOBBER_DEPS)
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlflint: $(LINT_DEPS)
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlfmodlintlib: $(MODLINTLIB_DEPS)
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlfclean.lint: $(CLEAN_LINT_DEPS)
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlfinstall: $(INSTALL_DEPS)
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf#
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf# Include common targets.
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf#
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlfinclude $(UTSBASE)/sparc/Makefile.targ
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf#
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf# Defines for local commands.
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf#
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlfWARLOCK = warlock
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlfWLCC = wlcc
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlfTOUCH = touch
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlfTEST = test
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlfSD_FILES = $(SD_OBJS:%.o=../sd/%.ll)
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlfSATA_FILES = $(SATA_OBJS:%.o=-l ../sata/%.ll)
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlfSCSI_FILES = $(SCSI_OBJS:%.o=-l ../scsi/%.ll)
4e942d8cd27c7f8bb80549d7c2564445f19ba4a3shidokhtCMLB_FILES = $(CMLB_OBJS:%.o=-l ../cmlb/%.ll)
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf
bf56214c0556fa6864189c826d39dbe156bb22a0stevelwarlock: $(WARLOCK_OK)
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf
bf56214c0556fa6864189c826d39dbe156bb22a0stevel$(WARLOCK_OK): $(WLCMD_DIR)/si3124.wlcmd $(WARLOCK_OUT) warlock_ddi.files \
4e942d8cd27c7f8bb80549d7c2564445f19ba4a3shidokht sata.files scsi.files sd.files cmlb.files
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits $(WARLOCK) -c $(WLCMD_DIR)/si3124.wlcmd $(WARLOCK_OUT) \
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf $(SD_FILES) \
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf $(SCSI_FILES) \
4e942d8cd27c7f8bb80549d7c2564445f19ba4a3shidokht $(CMLB_FILES) \
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf $(SATA_FILES) \
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf -l ../warlock/ddi_dki_impl.ll
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf $(TOUCH) $@
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf%.ll: $(UTSBASE)/common/io/sata/adapters/si3124/%.c
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf $(WLCC) $(CPPFLAGS) -D DEBUG -D __sparcv9 -o $@ $<
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlfsata.files:
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf @cd ../sata; pwd; $(MAKE) warlock
bf56214c0556fa6864189c826d39dbe156bb22a0stevel
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlfscsi.files:
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf @cd ../scsi; pwd; $(MAKE) warlock
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlfsd.files:
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf @cd ../sd; pwd; $(MAKE) warlock_alone
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf
4e942d8cd27c7f8bb80549d7c2564445f19ba4a3shidokhtcmlb.files:
4e942d8cd27c7f8bb80549d7c2564445f19ba4a3shidokht @cd ../cmlb; pwd; $(MAKE) warlock
4e942d8cd27c7f8bb80549d7c2564445f19ba4a3shidokht
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlfwarlock_ddi.files:
66f9d5cb3cc0652e2d9d1366fb950efbe4ca2f24mlf @cd ../warlock; pwd; $(MAKE) warlock