xref: /openbmc/linux/drivers/message/fusion/Makefile (revision 1da177e4)
11da177e4SLinus Torvalds#
21da177e4SLinus Torvalds# Makefile for the LSI Logic Fusion MPT (Message Passing Technology) drivers.
31da177e4SLinus Torvalds#
41da177e4SLinus Torvalds# Note! If you want to turn on various debug defines for an extended period of
51da177e4SLinus Torvalds# time but don't want them lingering around in the Makefile when you pass it on
61da177e4SLinus Torvalds# to someone else, use the MPT_CFLAGS env variable (thanks Steve). -nromer
71da177e4SLinus Torvalds
81da177e4SLinus Torvalds#=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-{ LSI_LOGIC
91da177e4SLinus Torvalds
101da177e4SLinus Torvalds#  Architecture-specific...
111da177e4SLinus Torvalds#			# intel
121da177e4SLinus Torvalds#EXTRA_CFLAGS += -g
131da177e4SLinus Torvalds#			# sparc64
141da177e4SLinus Torvalds#EXTRA_CFLAGS += -gstabs+
151da177e4SLinus Torvalds
161da177e4SLinus TorvaldsEXTRA_CFLAGS += ${MPT_CFLAGS}
171da177e4SLinus Torvalds
181da177e4SLinus Torvalds# Fusion MPT drivers; recognized debug defines...
191da177e4SLinus Torvalds#  MPT general:
201da177e4SLinus Torvalds#EXTRA_CFLAGS += -DMPT_DEBUG_SCSI
211da177e4SLinus Torvalds#EXTRA_CFLAGS += -DMPT_DEBUG
221da177e4SLinus Torvalds#EXTRA_CFLAGS += -DMPT_DEBUG_MSG_FRAME
231da177e4SLinus Torvalds#EXTRA_CFLAGS += -DMPT_DEBUG_SG
241da177e4SLinus Torvalds
251da177e4SLinus Torvalds#
261da177e4SLinus Torvalds# driver/module specifics...
271da177e4SLinus Torvalds#
281da177e4SLinus Torvalds#  For mptbase:
291da177e4SLinus Torvalds#CFLAGS_mptbase.o += -DMPT_DEBUG_HANDSHAKE
301da177e4SLinus Torvalds#CFLAGS_mptbase.o += -DMPT_DEBUG_IRQ
311da177e4SLinus Torvalds#
321da177e4SLinus Torvalds#  For mptscsih:
331da177e4SLinus Torvalds#CFLAGS_mptscsih.o += -DMPT_DEBUG_SCANDV
341da177e4SLinus Torvalds#CFLAGS_mptscsih.o += -DMPT_DEBUG_RESET
351da177e4SLinus Torvalds#CFLAGS_mptscsih.o += -DMPT_DEBUG_NEH
361da177e4SLinus Torvalds#
371da177e4SLinus Torvalds#  For mptctl:
381da177e4SLinus Torvalds#CFLAGS_mptctl.o += -DMPT_DEBUG_IOCTL
391da177e4SLinus Torvalds#
401da177e4SLinus Torvalds#  For mptlan:
411da177e4SLinus Torvalds#CFLAGS_mptlan.o += -DMPT_LAN_IO_DEBUG
421da177e4SLinus Torvalds#
431da177e4SLinus Torvalds#  For isense:
441da177e4SLinus Torvalds
451da177e4SLinus Torvalds#  EXP...
461da177e4SLinus Torvalds##mptscsih-objs	:= scsihost.o scsiherr.o
471da177e4SLinus Torvalds
481da177e4SLinus Torvalds#=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-} LSI_LOGIC
491da177e4SLinus Torvalds
501da177e4SLinus Torvaldsobj-$(CONFIG_FUSION)		+= mptbase.o mptscsih.o
511da177e4SLinus Torvaldsobj-$(CONFIG_FUSION_CTL)	+= mptctl.o
521da177e4SLinus Torvaldsobj-$(CONFIG_FUSION_LAN)	+= mptlan.o
53