mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
d102723bc9
Let's no longer patch the upstream test but use it directly
20 lines
558 B
Makefile
20 lines
558 B
Makefile
PKG_SOURCE_DIR ?= $(PKGDIRBASE)/libfixmath
|
|
|
|
# The static cache is huge, disable it.
|
|
CFLAGS += -DFIXMATH_NO_CACHE
|
|
|
|
ifneq (,$(filter arch_8bit,$(FEATURES_USED)))
|
|
CFLAGS += -DFIXMATH_OPTIMIZE_8BIT
|
|
endif
|
|
|
|
# translate Kconfig options to CFLAGS for the package
|
|
libfixmath_options = $(filter CONFIG_FIXMATH_%,$(.VARIABLES))
|
|
CFLAGS += $(libfixmath_options:CONFIG_FIXMATH_%=-DFIXMATH_%)
|
|
|
|
INCLUDES += -I$(PKG_SOURCE_DIR)/libfixmath
|
|
|
|
ifneq (,$(filter libfixmath-unittests,$(USEMODULE)))
|
|
INCLUDES += -I$(PKG_SOURCE_DIR)
|
|
INCLUDES += -I$(PKG_SOURCE_DIR)/tests
|
|
endif
|