1 ###############################################################################
4 # @brief Lynx driver compilation settings
6 # @author Yury GEORGIEVSKIY, CERN.
8 # @date Created on 13/01/2009
10 # @b NOTE See examples/out-of-tree-cdcm for more information on howto
11 # compile with test CDCM branches.
12 ###############################################################################
13 CDCM_D = ../$(ROOTDIR)/cdcm
14 XML_D = ../$(ROOTDIR)/utils/driver
15 SKEL_D = ../$(ROOTDIR)/skel/driver
17 EXTRA_DRVR_SRC_FILES += \
20 ifeq ($(CONFIG_BUS_PCI), y)
21 ADDCFLAGS = -DCONFIG_BUS_PCI
22 EXTRA_DRVR_SRC_FILES += \
23 $(CDCM_D)/cdcmPciDmaLynx.c
24 else ifeq ($(CONFIG_BUS_VME), y)
25 ADDCFLAGS = -DCONFIG_BUS_VME
27 EXTRA_DRVR_SRC_FILES += $(CDCM_D)/cdcmPciDmaLynx.c
31 # Get all *.c files from there
32 SKELSRCF = $(wildcard $(SKEL_D)/*.c)
34 # Kill all ',backup' skel files
35 EXTRA_DRVR_SRC_FILES += $(filter-out $(SKEL_D)/$(comma)%, $(filter $(addprefix %, $(SRCSFXS)),$(SKELSRCF)))
39 EXTRA_DRVR_SRC_FILES += $(XML_D)/libinstkernel.c
42 #EXTRA_DRVR_OBJS = $(addsuffix $(EXTOBJ), $(notdir $(basename $(EXTRA_DRVR_SRC_FILES))))
43 EXTRA_DRVR_OBJS = $(addsuffix $(EXTOBJ), $(basename $(EXTRA_DRVR_SRC_FILES)))