2017-02-25 15:41:39 +01:00
|
|
|
PKG_BUILDDIR ?= $(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
|
|
|
|
|
2019-11-11 15:15:16 +01:00
|
|
|
DIRS += $(PKG_BUILDDIR)/libfixmath
|
2016-05-12 16:39:03 +02:00
|
|
|
INCLUDES += -I$(PKG_BUILDDIR)/libfixmath
|
|
|
|
|
|
|
|
ifneq (,$(filter libfixmath-unittests,$(USEMODULE)))
|
2019-11-11 15:15:16 +01:00
|
|
|
DIRS += $(PKG_BUILDDIR)/unittests
|
2016-05-12 16:39:03 +02:00
|
|
|
INCLUDES += -I$(PKG_BUILDDIR)/unittests
|
|
|
|
endif
|