• Kai Germaschewski's avatar
    kbuild: Fix "export-objs" · b9a898b8
    Kai Germaschewski authored
    This patch cleans up most of the Makefile's to list the correct files
    (i.e. the ones which do have "EXPORT_SYMBOL" in them) in $(export-objs)
    
    Contributed by "Lightweight patch manager"
    b9a898b8
Makefile 1.34 KB
#
# Makefile for the LSI Logic Fusion MPT (Message Passing Technology) drivers.
#
# Note! If you want to turn on various debug defines for an extended period of
# time but don't want them lingering around in the Makefile when you pass it on 
# to someone else, use the MPT_CFLAGS env variable (thanks Steve). -nromer

#=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-{ LSI_LOGIC

#  Architecture-specific...
#			# intel
#EXTRA_CFLAGS += -g
#			# sparc64
#EXTRA_CFLAGS += -gstabs+

EXTRA_CFLAGS += -I. ${MPT_CFLAGS}

# Fusion MPT drivers; recognized debug defines...
#  MPT general:
#EXTRA_CFLAGS += -DDEBUG
#EXTRA_CFLAGS += -DMPT_DEBUG
#EXTRA_CFLAGS += -DMPT_DEBUG_MSG_FRAME
#
# driver/module specifics...
#
#  For mptbase:
#CFLAGS_mptbase.o += -DMPT_DEBUG_HANDSHAKE
#CFLAGS_mptbase.o += -DMPT_DEBUG_IRQ
#
#  For {mptscsih, mptctl}:
#CFLAGS_mptscsih.o += -DMPT_SCSI_USE_NEW_EH
#CFLAGS_mptscsih.o += -DMPT_DEBUG_SCANDV
#CFLAGS_mptscsih.o += -DMPT_DEBUG_SG
#CFLAGS_mptctl.o += -DMPT_DEBUG_SG
#
#  For mptlan:
#CFLAGS_mptlan.o += -DMPT_LAN_IO_DEBUG
#
#  For isense:

#  EXP...
##mptscsih-objs	:= scsihost.o scsiherr.o

#=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-} LSI_LOGIC

export-objs	:= mptbase.o

obj-$(CONFIG_FUSION)		+= mptbase.o mptscsih.o
obj-$(CONFIG_FUSION_ISENSE)	+= isense.o
obj-$(CONFIG_FUSION_CTL)	+= mptctl.o
obj-$(CONFIG_FUSION_LAN)	+= mptlan.o

include $(TOPDIR)/Rules.make