#   ============================================================================
#   @file   SOURCES
#
#   @path   $(DSPLINK)/gpp/src/ldrv/
#
#   @desc   This file contains list of source files to be compiled.
#
#   @ver    1.65.00.03
#   ============================================================================
#   Copyright (C) 2002-2009, Texas Instruments Incorporated - http://www.ti.com/
#
#   This program is free software; you can redistribute it and/or modify it
#   under the terms of the GNU General Public License as published by the
#   Free Software Foundation version 2.
#   
#   This program is distributed "as is" WITHOUT ANY WARRANTY of any kind,
#   whether express or implied; without even the implied warranty of
#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
#   General Public License for more details.
#   ============================================================================


SOURCES :=
PHYS    := $(TI_DSPLINK_DM6446GEM_PHYINTERFACE)
PHYS    += $(TI_DSPLINK_DM6467GEM_PHYINTERFACE)
PHYS    += $(TI_DSPLINK_DM6437_PHYINTERFACE)
PHYS    += $(TI_DSPLINK_DM648_PHYINTERFACE)
PHYS    += $(TI_DSPLINK_DM642_PHYINTERFACE)
PHYS    += $(TI_DSPLINK_DRA44XGEM_PHYINTERFACE)
PHYS    += $(TI_DSPLINK_DRX416GEM_PHYINTERFACE)
PHYS    += $(TI_DSPLINK_OMAP3530_PHYINTERFACE)
PHYS    += $(TI_DSPLINK_OMAP2530_PHYINTERFACE)
PHYS    += $(TI_DSPLINK_DA8XXGEM_PHYINTERFACE)
PHYS    += $(TI_DSPLINK_TNETV107XGEM_PHYINTERFACE)

ifeq ($(TI_DSPLINK_ONLY_PROC_COMPONENT), 1)
    SOURCES +=  ldrv.c                          \
                ldrv_proc.c
else
ifeq ($(TI_DSPLINK_USE_PROC), 1)
    SOURCES +=  ldrv.c                          \
                ldrv_proc.c                     \
                DRV$(DIRSEP)ldrv_drv.c          \
                DRV$(DIRSEP)shm_drv.c           \
                IPS$(DIRSEP)ldrv_ips.c          \
                IPS$(DIRSEP)ips.c               \
                SMM$(DIRSEP)ldrv_smm.c
endif

ifeq ($(TI_DSPLINK_USE_POOL), 1)
    SOURCES +=  POOLS$(DIRSEP)ldrv_pool.c
# If shared interface is being used
    ifneq ("$(findstring SHMEM, $(PHYS))", "")
        SOURCES +=  POOLS$(DIRSEP)sma_pool.c
    endif
# If PCI interface is being used
    ifneq ("$(findstring PCI, $(PHYS))", "")
        SOURCES +=  POOLS$(DIRSEP)dma_pool.c
    endif
# If VLYNQ interface is being used
    ifneq ("$(findstring VLYNQ, $(PHYS))", "")
        SOURCES +=  POOLS$(DIRSEP)dma_pool.c
    endif
endif

ifeq ($(TI_DSPLINK_USE_MSGQ), 1)
    SOURCES +=  ldrv_msgq.c             \
                MQT$(DIRSEP)ldrv_mqt.c
# If SHARED interface is being used
    ifneq ("$(findstring SHMEM, $(PHYS))", "")
        SOURCES +=  MQT$(DIRSEP)zcpy_mqt.c
    endif
# If PCI interface is being used
    ifneq ("$(findstring PCI, $(PHYS))", "")
        SOURCES +=  MQT$(DIRSEP)dcpy_mqt.c
    endif
# If VLYNQ interface is being used
    ifneq ("$(findstring VLYNQ, $(PHYS))", "")
        SOURCES +=  MQT$(DIRSEP)dcpy_mqt.c
    endif
endif

ifeq ($(TI_DSPLINK_USE_CHNL), 1)
    SOURCES +=  ldrv_chnl.c    \
                ldrv_chirps.c  \
                DATA$(DIRSEP)ldrv_data.c
# If SHARED interface is being used
    ifneq ("$(findstring SHMEM, $(PHYS))", "")
        SOURCES +=  DATA$(DIRSEP)zcpy_data.c
    endif
# If PCI interface is being used
    ifneq ("$(findstring PCI, $(PHYS))", "")
        SOURCES +=  DATA$(DIRSEP)dcpy_data.c
    endif
# If VLYNQ interface is being used
    ifneq ("$(findstring VLYNQ, $(PHYS))", "")
        SOURCES +=  DATA$(DIRSEP)dcpy_data.c
    endif
endif

ifeq ($(TI_DSPLINK_USE_RINGIO), 1)
    SOURCES +=  RINGIO$(DIRSEP)ldrv_ringio.c
endif

ifeq ($(TI_DSPLINK_USE_MPCS), 1)
    SOURCES +=  MPCS$(DIRSEP)ldrv_mpcs.c
endif

ifeq ($(TI_DSPLINK_USE_MPLIST), 1)
    SOURCES +=  MPLIST$(DIRSEP)ldrv_mplist.c
endif
endif #ifeq ($(TI_DSPLINK_ONLY_PROC_COMPONENT), 1)
