Makefile revision 144966
1144966Svkashyap#
2144966Svkashyap# Copyright (c) 2004 Applied Micro Circuits Corporation.
3144966Svkashyap# All rights reserved.
4144966Svkashyap#
5144966Svkashyap# Redistribution and use in source and binary forms, with or without
6144966Svkashyap# modification, are permitted provided that the following conditions
7144966Svkashyap# are met:
8144966Svkashyap# 1. Redistributions of source code must retain the above copyright
9144966Svkashyap#    notice, this list of conditions and the following disclaimer.
10144966Svkashyap# 2. Redistributions in binary form must reproduce the above copyright
11144966Svkashyap#    notice, this list of conditions and the following disclaimer in the
12144966Svkashyap#    documentation and/or other materials provided with the distribution.
13144966Svkashyap#
14144966Svkashyap# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15144966Svkashyap# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16144966Svkashyap# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17144966Svkashyap# ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18144966Svkashyap# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19144966Svkashyap# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20144966Svkashyap# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21144966Svkashyap# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22144966Svkashyap# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23144966Svkashyap# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24144966Svkashyap# SUCH DAMAGE.
25144966Svkashyap#
26144966Svkashyap#	$FreeBSD: head/sys/modules/twa/Makefile 144966 2005-04-12 22:07:11Z vkashyap $
27144966Svkashyap#
28127600Svkashyap
29127600Svkashyap#
30144966Svkashyap# 3ware driver for 9000 series storage controllers.
31144966Svkashyap#
32144966Svkashyap# Author: Vinod Kashyap
33144966Svkashyap#
34144966Svkashyap
35144966Svkashyap
36144966Svkashyap
37144966Svkashyap#
38128086Svkashyap# In the line following this comment, a value of 0 on the right hand
39128086Svkashyap# side will not cause firmware to be bundled.  Change this value to 1
40128086Svkashyap# to bundle the firmware with the driver, which may be flashed onto
41128086Svkashyap# the controller, if the firmware on the controller is older than the
42128086Svkashyap# one bundled, and needs to be upgraded.  The size of the driver will
43128086Svkashyap# increase significantly (to over 500kB) if this option is selected.
44127600Svkashyap#
45128082SscottlTWA_FLASH_FIRMWARE?=0
46127600Svkashyap
47127600SvkashyapKMOD = twa
48127600Svkashyap.PATH:	${.CURDIR}/../../dev/${KMOD}
49144966SvkashyapSRCS = tw_osl_freebsd.c tw_osl_cam.c \
50144966Svkashyap      tw_cl_init.c tw_cl_io.c tw_cl_intr.c tw_cl_misc.c \
51127600Svkashyap      bus_if.h device_if.h pci_if.h opt_scsi.h opt_cam.h opt_twa.h
52127600Svkashyap
53144966SvkashyapCFLAGS += -I${.CURDIR}/../../dev/${KMOD}
54144966Svkashyap
55128082Sscottl.if $(TWA_FLASH_FIRMWARE) != 0
56144966SvkashyapCFLAGS += -DTWA_FLASH_FIRMWARE
57144966SvkashyapSRCS += tw_cl_fwimg.c
58127600Svkashyap.endif
59127600Svkashyap
60144966Svkashyap#CFLAGS += -DTWA_DEBUG=0
61127600Svkashyap
62127600Svkashyap.include <bsd.kmod.mk>
63144966Svkashyap
64