1#
2# Makefile for the LSI Logic Fusion MPT (Message Passing Technology) drivers.
3#
4# Note! Dependencies are done automagically by 'make dep', which also
5# removes any old dependencies. DON'T put your own dependencies here
6# unless it's something special (ie not a .c file).
7#
8# Note 2! The CFLAGS definition is now inherited from the
9# parent makefile.
10#
11# Note 3! If you want to turn on various debug defines for an extended period of
12# time but don't want them lingering around in the Makefile when you pass it on 
13# to someone else, use the MPT_CFLAGS env variable (thanks Steve). -nromer
14
15#=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-{ LSI_LOGIC
16
17#  Architecture-specific...
18#			# intel
19#EXTRA_CFLAGS += -g
20#			# sparc64
21#EXTRA_CFLAGS += -gstabs+
22
23EXTRA_CFLAGS += -I. ${MPT_CFLAGS}
24
25# Fusion MPT drivers; recognized debug defines...
26#  MPT general:
27#EXTRA_CFLAGS += -DDEBUG
28#EXTRA_CFLAGS += -DMPT_DEBUG
29#EXTRA_CFLAGS += -DMPT_DEBUG_MSG_FRAME
30#EXTRA_CFLAGS += -DMPT_DEBUG_SG
31#
32# driver/module specifics...
33#
34#  For mptbase:
35#CFLAGS_mptbase.o += -DMPT_DEBUG_HANDSHAKE
36#CFLAGS_mptbase.o += -DMPT_DEBUG_IRQ
37#
38#  For mptscsih:
39#CFLAGS_mptscsih.o += -DMPT_DEBUG_SCANDV
40#CFLAGS_mptscsih.o += -DMPT_DEBUG_RESET
41#CFLAGS_mptscsih.o += -DMPT_DEBUG_NEH
42#
43#  For mptctl:
44#CFLAGS_mptctl.o += -DMPT_DEBUG_IOCTL
45#
46#  For mptlan:
47#CFLAGS_mptlan.o += -DMPT_LAN_IO_DEBUG
48#
49#  For isense:
50
51#  EXP...
52##mptscsih-objs	:= scsihost.o scsiherr.o
53
54#=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-} LSI_LOGIC
55
56O_TARGET := fusion.o
57
58export-objs	:= mptbase.o mptscsih.o mptlan.o mptctl.o isense.o
59
60# ? what's list-multi for?
61#list-multi	:= fusion.o mptscsih.o
62
63obj-$(CONFIG_FUSION)		+= mptbase.o mptscsih.o
64obj-$(CONFIG_FUSION_ISENSE)	+= isense.o
65obj-$(CONFIG_FUSION_CTL)	+= mptctl.o
66obj-$(CONFIG_FUSION_LAN)	+= mptlan.o
67
68O_OBJS		:= $(filter-out		$(export-objs), $(obj-y))
69OX_OBJS		:= $(filter		$(export-objs), $(obj-y))
70M_OBJS		:= $(sort $(filter-out	$(export-objs), $(obj-m)))
71MX_OBJS		:= $(sort $(filter	$(export-objs), $(obj-m)))
72
73include $(TOPDIR)/Rules.make
74
75
76#  EXP...
77## Fusion MPT extra's...
78##mptscsih.o: $(mptscsih-objs)
79##	$(LD) -r -o $@ $(mptscsih-objs)
80