Makefile revision 7014882c6a3672fd0e5d60200af8643ae53c5928
c63ebf815c8a874525cf18670ad74847f7fc7b26Christian Maeder# CDDL HEADER START
25cc5fbba63f84b47e389af749f55abbbde71c8cChristian Maeder# The contents of this file are subject to the terms of the
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# Common Development and Distribution License (the "License").
43b4c41fbb07705c9df321221ab9cb9832460407Christian Maeder# You may not use this file except in compliance with the License.
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# or http://www.opensolaris.org/os/licensing.
43b4c41fbb07705c9df321221ab9cb9832460407Christian Maeder# See the License for the specific language governing permissions
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# and limitations under the License.
f2f9df2e17e70674f0bf426ed1763c973ee4cde0Christian Maeder# When distributing Covered Code, include this CDDL HEADER in each
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# If applicable, add the following below this CDDL HEADER, with the
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# fields enclosed by brackets "[]" replaced with your own identifying
68d10d143f29fcff3c637ba24f90e983995ceae6Christian Maeder# information: Portions Copyright [yyyy] [name of copyright owner]
a53841f6d6e86ac751c12a33dc8aadf53f59d977Klaus Luettich# CDDL HEADER END
a737caf82de97c1907027c03e4b4509eb492b4b8Christian Maeder# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
68d10d143f29fcff3c637ba24f90e983995ceae6Christian Maeder# Use is subject to license terms.
01e383014b555bbcf639c0ca60c5810b3eff83c0Christian Maeder# This makefile drives the production of qlc driver kernel module.
9dac90ec2be2a72e03893095461960d483fe2fc2Christian Maeder# Path to the base of the uts directory tree (usually /usr/src/uts).
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder# Define the module and object file sets.
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederCONF_SRCDIR = $(UTSBASE)/common/io/fibre-channel/fca/qlc
b1f59a4ea7c96f4c03a4d7cfcb9c5e66871cfbbbChristian Maeder# Include common rules.
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder# Define targets
d23b0cc79c0d204e6ec758dff8d0ba71c9f693f7Christian MaederINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder# header file directories
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian MaederINC_PATH += -I$(UTSBASE)/common/sys/fibre-channel
7cc09dd93962a2155c34d209d1d4cd7d7b838264Christian MaederINC_PATH += -I$(UTSBASE)/common/sys/fibre-channel/ulp
1aee4aaddde105264c1faf394d88e302c05094ffChristian MaederINC_PATH += -I$(UTSBASE)/common/sys/fibre-channel/fca/qlc
1aee4aaddde105264c1faf394d88e302c05094ffChristian MaederINC_PATH += -I$(UTSBASE)/common/sys/fibre-channel/impl
f4a2a20e49f41b2afa657e5e64d9e349c7faa091Christian MaederLINTTAGS += -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED
f13d1e86e58da53680e78043e8df182eed867efbChristian MaederFWMODULES_SRC = $(FWIMAGES:%=$(SRC)/uts/common/io/fibre-channel/fca/qlc/ql_fw_%.c)
36f63902db2b3463faa9f59912ad106e2d5aaa24Klaus Luettich# Default build targets.
363939beade943a02b31004cea09dec34fa8a6d9Christian Maederall: $(SRC)/uts/common/io/fibre-channel/fca/qlc/ql_fw_table.c $(ALL_DEPS)
363939beade943a02b31004cea09dec34fa8a6d9Christian Maederdef: $(SRC)/uts/common/io/fibre-channel/fca/qlc/ql_fw_table.c $(DEF_DEPS)
f04e8f3ff56405901be968fd4c6e9769239f1a9bKlaus Luettichclean: $(SRC)/uts/common/io/fibre-channel/fca/qlc/ql_fw_table.c $(CLEAN_DEPS)
797ccd67cb8ae127be097cd43448801b673e3b69Christian Maederclobber: $(SRC)/uts/common/io/fibre-channel/fca/qlc/ql_fw_table.c $(CLOBBER_DEPS)
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maederlint: $(SRC)/uts/common/io/fibre-channel/fca/qlc/ql_fw_table.c $(LINT_DEPS)
9e748851c150e1022fb952bab3315e869aaf0214Christian Maedermodlintlib: $(SRC)/uts/common/io/fibre-channel/fca/qlc/ql_fw_table.c $(MODLINTLIB_DEPS)
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maederclean.lint: $(SRC)/uts/common/io/fibre-channel/fca/qlc/ql_fw_table.c $(CLEAN_LINT_DEPS)
9e748851c150e1022fb952bab3315e869aaf0214Christian Maederinstall: $(SRC)/uts/common/io/fibre-channel/fca/qlc/ql_fw_table.c $(INSTALL_DEPS)
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder$(SRC)/uts/common/io/fibre-channel/fca/qlc/ql_fw_table.c: $(FWMODULES_SRC)
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder echo '#include <ql_apps.h>' >> $@
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian Maeder echo '#include <ql_api.h>' >> $@
a6db617ca58eb6a0587b6366e913107dfecb71b5Heng Jiang echo 'struct fw_table fw_table[] = {' >> $@
f1541d4a151dbd08002dbd14e7eb1d5dde253689Christian Maeder echo '{ 0, NULL }' >> $@
6dc9bc98d0854fe2e3dd3bfc4275096a0c28ee1cChristian Maeder echo '};' >> $@
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder# Include common targets.