Makefile revision 322975
1270866Simp#/*
2270866Simp# * Copyright (c) 2011-2016 Qlogic Corporation
3270866Simp# * All rights reserved.
4270866Simp# *
5270866Simp# *  Redistribution and use in source and binary forms, with or without
6270866Simp# *  modification, are permitted provided that the following conditions
7270866Simp# *  are met:
8270866Simp# *
9270866Simp# *  1. Redistributions of source code must retain the above copyright
10270866Simp# *     notice, this list of conditions and the following disclaimer.
11270866Simp# *  2. Redistributions in binary form must reproduce the above copyright
12270866Simp# *     notice, this list of conditions and the following disclaimer in the
13270866Simp# *     documentation and/or other materials provided with the distribution.
14270866Simp# *
15270866Simp# *  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
16270866Simp# *  AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
17270866Simp# *  IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
18270866Simp# *  ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
19270866Simp# *  LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
20270866Simp# *  CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
21270866Simp# *  SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
22270866Simp# *  INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
23270866Simp# *  CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
24270866Simp# *  ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
25270866Simp# *  POSSIBILITY OF SUCH DAMAGE.
26270866Simp# */
27270866Simp#/*
28270866Simp# * File : Makefile
29270866Simp# * Author : David C Somayajulu, Qlogic Corporation, Aliso Viejo, CA 92656.
30270866Simp# */
31270866Simp#
32270866Simp# $FreeBSD: stable/10/sys/modules/qlxgbe/Makefile 322975 2017-08-28 19:17:28Z davidcs $
33270866Simp#
34270866Simp
35270866Simp.PATH: ${.CURDIR}/../../dev/qlxgbe
36270866Simp#.PATH: ${.CURDIR}
37270866Simp
38270866SimpKMOD=if_qlxgbe
39270866SimpSRCS=ql_os.c ql_dbg.c ql_hw.c ql_misc.c ql_isr.c ql_ioctl.c
40270866SimpSRCS+= ql_reset.c
41270866SimpSRCS+= ql_fw.c
42270866SimpSRCS+= ql_boot.c
43270866SimpSRCS+= ql_minidump.c
44270866Simp
45270866SimpSRCS+= device_if.h bus_if.h pci_if.h
46270866Simp
47270866Simp# Uses unnamed structure and union fields
48270866SimpCFLAGS+= ${GCC_MS_EXTENSIONS}
49270866Simp
50270866SimpCFLAGS += -DQLA_LOCK_NO_SLEEP=1
51270866Simp#CFLAGS += -DQL_DBG -g
52270866Simp# Please turn off QL_LDFLASH_FW when you enable QL_ENABLE_ISCSI_TLV
53270866Simp# You may comment out both QL_LDFLASH_FW and QL_ENABLE_ISCSI_TLV if you like
54270866Simp# the firmware and boot loader compiled into the driver
55270866Simp#CFLAGS += -DQL_ENABLE_ISCSI_TLV
56270866Simp#CFLAGS += -DQL_LDFLASH_FW
57270866Simp
58270866Simp.include <bsd.kmod.mk>
59270866Simp
60270866Simp