xref: /openbmc/linux/drivers/scsi/libsas/Makefile (revision f15cbe6f)
1#
2# Kernel Makefile for the libsas helpers
3#
4# Copyright (C) 2005 Adaptec, Inc.  All rights reserved.
5# Copyright (C) 2005 Luben Tuikov <luben_tuikov@adaptec.com>
6#
7# This file is licensed under GPLv2.
8#
9# This program is free software; you can redistribute it and/or
10# modify it under the terms of the GNU General Public License as
11# published by the Free Software Foundation; version 2 of the
12# License.
13#
14# This program is distributed in the hope that it will be useful,
15# but WITHOUT ANY WARRANTY; without even the implied warranty of
16# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17# General Public License for more details.
18#
19# You should have received a copy of the GNU General Public License
20# along with this program; if not, write to the Free Software
21# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
22# USA
23
24ifeq ($(CONFIG_SCSI_SAS_LIBSAS_DEBUG),y)
25	EXTRA_CFLAGS += -DSAS_DEBUG
26endif
27
28obj-$(CONFIG_SCSI_SAS_LIBSAS) += libsas.o
29libsas-y +=  sas_init.o     \
30		sas_phy.o      \
31		sas_port.o     \
32		sas_event.o    \
33		sas_dump.o     \
34		sas_discover.o \
35		sas_expander.o \
36		sas_scsi_host.o \
37		sas_task.o
38libsas-$(CONFIG_SCSI_SAS_ATA) +=	sas_ata.o
39libsas-$(CONFIG_SCSI_SAS_HOST_SMP) +=	sas_host_smp.o