xref: /openbmc/linux/drivers/scsi/lpfc/Makefile (revision 65ee8aeb)
1#/*******************************************************************
2# * This file is part of the Emulex Linux Device Driver for         *
3# * Fibre Channel Host Bus Adapters.                                *
4# * Copyright (C) 2004-2012 Emulex.  All rights reserved.           *
5# * EMULEX and SLI are trademarks of Emulex.                        *
6# * www.emulex.com                                                  *
7# *                                                                 *
8# * This program is free software; you can redistribute it and/or   *
9# * modify it under the terms of version 2 of the GNU General       *
10# * Public License as published by the Free Software Foundation.    *
11# * This program is distributed in the hope that it will be useful. *
12# * ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND          *
13# * WARRANTIES, INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY,  *
14# * FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT, ARE      *
15# * DISCLAIMED, EXCEPT TO THE EXTENT THAT SUCH DISCLAIMERS ARE HELD *
16# * TO BE LEGALLY INVALID.  See the GNU General Public License for  *
17# * more details, a copy of which can be found in the file COPYING  *
18# * included with this package.                                     *
19# *******************************************************************/
20######################################################################
21
22ccflags-$(GCOV) := -fprofile-arcs -ftest-coverage
23ccflags-$(GCOV) += -O0
24
25ifdef WARNINGS_BECOME_ERRORS
26ccflags-y += -Werror
27endif
28
29obj-$(CONFIG_SCSI_LPFC) := lpfc.o
30
31lpfc-objs := lpfc_mem.o lpfc_sli.o lpfc_ct.o lpfc_els.o lpfc_hbadisc.o	\
32	lpfc_init.o lpfc_mbox.o lpfc_nportdisc.o lpfc_scsi.o lpfc_attr.o \
33	lpfc_vport.o lpfc_debugfs.o lpfc_bsg.o
34