1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/pkg/fatfs/Makefile.include
2022-04-11 14:25:44 +02:00

23 lines
623 B
Makefile

INCLUDES += -I$(PKGDIRBASE)
INCLUDES += -I$(RIOTPKG)/fatfs/fatfs_diskio/mtd/include
INCLUDES += -I$(RIOTPKG)/fatfs/vendor/include
# native overwrites all INCLUDES
NATIVEINCLUDES += -I$(RIOTPKG)/fatfs/vendor/include
DIRS += $(RIOTBASE)/pkg/fatfs/fatfs_diskio/mtd
ifneq (,$(filter fatfs_vfs,$(USEMODULE)))
DIRS += $(RIOTBASE)/pkg/fatfs/fatfs_vfs
endif
#if periph_rtc is available use it. Otherwise use static timestamps
ifeq (,$(filter rtt_rtc periph_rtc,$(USEMODULE)))
CFLAGS += -DFATFS_FFCONF_OPT_FS_NORTC=1
else
CFLAGS += -DFATFS_FFCONF_OPT_FS_NORTC=0
endif
ifeq ($(OS),Darwin)
CFLAGS += -Wno-empty-body
endif