Merged in f5soh/librepilot/update_credits (pull request #529)
[librepilot.git] / flight / pios / common / libraries / yaffs2 / library.mk
blobf1c6f3e7aceebea790863eb37a5d717a7d5a0bab
2 # Rules to add yaffs2 to the PiOS target
5 # Note that the PIOS target-specific makefile will detect that YAFFS2_DIR
6 # has been defined and add in the target-specific pieces separately.
11 # Directory containing this makefile
13 YAFFS2_DIR := $(dir $(lastword $(MAKEFILE_LIST)))
15 # Compiler options
17 CDEFS += -DCONFIG_YAFFS_DIRECT
18 CDEFS += -DCONFIG_YAFFS_YAFFS2
19 CDEFS += -DCONFIG_YAFFS_DEFINES_TYPES
20 CDEFS += -DCONFIG_YAFFS_PROVIDE_DEFS
21 CDEFS += -DCONFIG_YAFFSFS_PROVIDE_VALUES
22 CDEFS += -DCONFIG_YAFFS_OP
23 #ARCHFLAGS += -DARCH_POSIX
26 # Yaffs2 device library source and includes
28 SRC += $(sort $(wildcard $(YAFFS2_DIR)*.c))
29 EXTRAINCDIRS += $(YAFFS2_DIR)/inc