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