28 lines
		
	
	
		
			499 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
		
			499 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
| include ../../build_system/make/make.mk
 | |
| 
 | |
| FATFS_PATH = lib/fatfs/source
 | |
| 
 | |
| INC += \
 | |
| 	src \
 | |
| 	$(TOP)/hw \
 | |
| 	$(TOP)/$(FATFS_PATH) \
 | |
| 	$(TOP)/lib/embedded-cli \
 | |
| 
 | |
| # Example source
 | |
| EXAMPLE_SOURCE = \
 | |
|   src/main.c \
 | |
|   src/msc_app.c \
 | |
| 
 | |
| SRC_C += $(addprefix $(CURRENT_PATH)/, $(EXAMPLE_SOURCE))
 | |
| 
 | |
| # FatFS source
 | |
| SRC_C += \
 | |
|   $(FATFS_PATH)/ff.c \
 | |
|   $(FATFS_PATH)/ffsystem.c \
 | |
|   $(FATFS_PATH)/ffunicode.c \
 | |
| 
 | |
| # suppress warning caused by fatfs
 | |
| CFLAGS += -Wno-error=cast-qual
 | |
| 
 | |
| include ../../build_system/make/rules.mk
 | 
