2020-06-13 20:58:27 +02:00
|
|
|
PKG_SOURCE_DIR ?= $(PKGDIRBASE)/libfixmath
|
2016-05-12 16:39:03 +02:00
|
|
|
|
2014-07-22 20:24:45 +02:00
|
|
|
# The static cache is huge, disable it.
|
|
|
|
CFLAGS += -DFIXMATH_NO_CACHE
|
|
|
|
|
2019-11-11 15:30:06 +01:00
|
|
|
ifneq (,$(filter arch_8bit,$(FEATURES_USED)))
|
|
|
|
CFLAGS += -DFIXMATH_OPTIMIZE_8BIT
|
|
|
|
endif
|
|
|
|
|
2021-11-12 11:29:50 +01:00
|
|
|
# translate Kconfig options to CFLAGS for the package
|
|
|
|
libfixmath_options = $(filter CONFIG_FIXMATH_%,$(.VARIABLES))
|
|
|
|
CFLAGS += $(libfixmath_options:CONFIG_FIXMATH_%=-DFIXMATH_%)
|
|
|
|
|
2020-06-13 20:58:27 +02:00
|
|
|
INCLUDES += -I$(PKG_SOURCE_DIR)/libfixmath
|
2016-05-12 16:39:03 +02:00
|
|
|
|
|
|
|
ifneq (,$(filter libfixmath-unittests,$(USEMODULE)))
|
2023-01-20 17:42:54 +01:00
|
|
|
INCLUDES += -I$(PKG_SOURCE_DIR)
|
|
|
|
INCLUDES += -I$(PKG_SOURCE_DIR)/tests
|
2016-05-12 16:39:03 +02:00
|
|
|
endif
|