2017-02-25 15:41:39 +01:00
|
|
|
INCLUDES += -I$(PKGDIRBASE)/u8g2/csrc
|
2020-06-11 22:12:21 +02:00
|
|
|
INCLUDES += -I$(RIOTBASE)/pkg/u8g2/contrib
|
|
|
|
|
|
|
|
DIRS += $(RIOTBASE)/pkg/u8g2/contrib
|
2016-06-14 20:26:27 +02:00
|
|
|
|
2019-01-03 00:39:56 +01:00
|
|
|
# The RIOT-OS interface needs this to store peripheral information.
|
2023-02-17 13:12:00 +01:00
|
|
|
ifneq (native, $(CPU))
|
|
|
|
CFLAGS += -DU8X8_WITH_USER_PTR
|
|
|
|
endif
|
2019-01-03 00:39:56 +01:00
|
|
|
|
2016-06-14 20:26:27 +02:00
|
|
|
# Link SDL if enabled.
|
|
|
|
ifneq (,$(filter u8g2_sdl,$(USEMODULE)))
|
2020-06-11 22:12:21 +02:00
|
|
|
LINKFLAGS += $(shell sdl2-config --libs)
|
2016-06-14 20:26:27 +02:00
|
|
|
endif
|
2020-06-11 22:12:21 +02:00
|
|
|
|
|
|
|
PSEUDOMODULES += u8g2
|