Makefile revision 93c20f2609342fd05f6625f16dfcb9348e7977f2
990d0e893f5b70e735cdf990af66e9ec6e91fa78Tinderbox User# CDDL HEADER START
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# The contents of this file are subject to the terms of the
4a14ce5ba00ab7bc55c99ffdcf59c7a4ab902721Automatic Updater# Common Development and Distribution License (the "License").
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# You may not use this file except in compliance with the License.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# See the License for the specific language governing permissions
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# and limitations under the License.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# When distributing Covered Code, include this CDDL HEADER in each
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# If applicable, add the following below this CDDL HEADER, with the
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# fields enclosed by brackets "[]" replaced with your own identifying
ea94d370123a5892f6c47a97f21d1b28d44bb168Tinderbox User# information: Portions Copyright [yyyy] [name of copyright owner]
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# CDDL HEADER END
e21a2904f02a03fa06b6db04d348f65fe9c67b2bMark Andrews# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Use is subject to license terms.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# This makefile drives the production of qlc driver kernel module.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Path to the base of the uts directory tree (usually /usr/src/uts).
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Define the module and object file sets.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCONF_SRCDIR = $(UTSBASE)/common/io/fibre-channel/fca/qlc
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Include common rules.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Define targets
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# header file directories
5fa6a064b8301e4f274bd132fd577def59e4fb4cTinderbox UserINC_PATH += -I$(UTSBASE)/common/sys/fibre-channel
5fa6a064b8301e4f274bd132fd577def59e4fb4cTinderbox UserINC_PATH += -I$(UTSBASE)/common/sys/fibre-channel/ulp
5fa6a064b8301e4f274bd132fd577def59e4fb4cTinderbox UserINC_PATH += -I$(UTSBASE)/common/sys/fibre-channel/fca/qlc
5fa6a064b8301e4f274bd132fd577def59e4fb4cTinderbox UserINC_PATH += -I$(UTSBASE)/common/sys/fibre-channel/impl
5fa6a064b8301e4f274bd132fd577def59e4fb4cTinderbox UserLINTTAGS += -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED
60c29cf21affb5243753e22f9ff43347013ae8ebTinderbox UserFWMODULES_SRC = $(FWIMAGES:%=$(SRC)/uts/common/io/fibre-channel/fca/qlc/ql_fw_%.c)
60c29cf21affb5243753e22f9ff43347013ae8ebTinderbox User# Default build targets.
60c29cf21affb5243753e22f9ff43347013ae8ebTinderbox Userall: $(SRC)/uts/common/io/fibre-channel/fca/qlc/ql_fw_table.c $(ALL_DEPS)
44d0f0256fbdce130a18655023c3b06bacacbd61Automatic Updaterdef: $(SRC)/uts/common/io/fibre-channel/fca/qlc/ql_fw_table.c $(DEF_DEPS)
60c29cf21affb5243753e22f9ff43347013ae8ebTinderbox Userclean: $(SRC)/uts/common/io/fibre-channel/fca/qlc/ql_fw_table.c $(CLEAN_DEPS)
bbbf2e27d3a981163dab139497d6b2dc85449db0Tinderbox Userclobber: $(SRC)/uts/common/io/fibre-channel/fca/qlc/ql_fw_table.c $(CLOBBER_DEPS)
bbbf2e27d3a981163dab139497d6b2dc85449db0Tinderbox Userlint: $(SRC)/uts/common/io/fibre-channel/fca/qlc/ql_fw_table.c $(LINT_DEPS)
60c29cf21affb5243753e22f9ff43347013ae8ebTinderbox Usermodlintlib: $(SRC)/uts/common/io/fibre-channel/fca/qlc/ql_fw_table.c $(MODLINTLIB_DEPS)
60c29cf21affb5243753e22f9ff43347013ae8ebTinderbox Userclean.lint: $(SRC)/uts/common/io/fibre-channel/fca/qlc/ql_fw_table.c $(CLEAN_LINT_DEPS)
60c29cf21affb5243753e22f9ff43347013ae8ebTinderbox Userinstall: $(SRC)/uts/common/io/fibre-channel/fca/qlc/ql_fw_table.c $(INSTALL_DEPS)
44d0f0256fbdce130a18655023c3b06bacacbd61Automatic Updater$(SRC)/uts/common/io/fibre-channel/fca/qlc/ql_fw_table.c: $(FWMODULES_SRC)
44d0f0256fbdce130a18655023c3b06bacacbd61Automatic Updater echo '#include <ql_apps.h>' >> $@
60c29cf21affb5243753e22f9ff43347013ae8ebTinderbox User echo '#include <ql_api.h>' >> $@
60c29cf21affb5243753e22f9ff43347013ae8ebTinderbox User echo 'struct fw_table fw_table[] = {' >> $@
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein echo '};' >> $@
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Include common targets.