mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
ca5d13cc2a
Prepare for handling pkg state with files. So it requires having the path defined before declaring targets. In addition, it cleans up the old git-download target.
41 lines
1.4 KiB
Makefile
41 lines
1.4 KiB
Makefile
PKG_NAME=cmsis-dsp
|
|
|
|
# A list of all the directories to build for CMSIS-DSP
|
|
CMSIS_DIRS += \
|
|
CMSIS/DSP/Source/BasicMathFunctions \
|
|
CMSIS/DSP/Source/CommonTables \
|
|
CMSIS/DSP/Source/ComplexMathFunctions \
|
|
CMSIS/DSP/Source/ControllerFunctions \
|
|
CMSIS/DSP/Source/FastMathFunctions \
|
|
CMSIS/DSP/Source/FilteringFunctions \
|
|
CMSIS/DSP/Source/MatrixFunctions \
|
|
CMSIS/DSP/Source/StatisticsFunctions \
|
|
CMSIS/DSP/Source/SupportFunctions \
|
|
CMSIS/DSP/Source/TransformFunctions \
|
|
#
|
|
|
|
INCLUDES += -I$(CURDIR)/CMSIS/DSP/Include
|
|
CMSIS_BINDIRS = $(addprefix $(BINDIR)/$(PKG_NAME)/,$(CMSIS_DIRS))
|
|
|
|
# Override default RIOT search path for sources to include all of the CMSIS-DSP
|
|
# sources in one library instead of one library per subdirectory.
|
|
SRC := $(foreach DIR,$(CMSIS_DIRS),$(wildcard $(DIR)/*.c))
|
|
SRCXX := $(foreach DIR,$(CMSIS_DIRS),$(wildcard $(DIR)/*.cpp))
|
|
ASMSRC := $(foreach DIR,$(CMSIS_DIRS),$(wildcard $(DIR)/*.s))
|
|
ASSMSRC := $(foreach DIR,$(CMSIS_DIRS),$(wildcard $(DIR)/*.S))
|
|
|
|
OBJC := $(SRC:%.c=$(BINDIR)/$(PKG_NAME)/%.o)
|
|
OBJCXX := $(SRCXX:%.cpp=$(BINDIR)/$(PKG_NAME)/%.o)
|
|
ASMOBJ := $(ASMSRC:%.s=$(BINDIR)/$(PKG_NAME)/%.o)
|
|
ASSMOBJ := $(ASSMSRC:%.S=$(BINDIR)/$(PKG_NAME)/%.o)
|
|
OBJ = $(OBJC) $(OBJCXX) $(ASMOBJ) $(ASSMOBJ)
|
|
|
|
# Create subdirectories if they do not already exist
|
|
$(OBJ): | $(CMSIS_BINDIRS)
|
|
|
|
$(CMSIS_BINDIRS):
|
|
@mkdir -p $@
|
|
|
|
# Include RIOT settings and recipes
|
|
include $(RIOTBASE)/Makefile.base
|