mirror of
				https://github.com/eledio-devices/thirdparty-littlefs.git
				synced 2025-10-31 08:42:40 +01:00 
			
		
		
		
	Generated v2 prefixes
This commit is contained in:
		
							
								
								
									
										40
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										40
									
								
								Makefile
									
									
									
									
									
								
							| @@ -7,15 +7,11 @@ CC ?= gcc | ||||
| AR ?= ar | ||||
| SIZE ?= size | ||||
|  | ||||
| SRC += $(wildcard *.c emubd/*.c) | ||||
| SRC += $(wildcard *.c bd/*.c) | ||||
| OBJ := $(SRC:.c=.o) | ||||
| DEP := $(SRC:.c=.d) | ||||
| ASM := $(SRC:.c=.s) | ||||
|  | ||||
| TEST := $(patsubst tests/%.sh,%,$(wildcard tests/test_*)) | ||||
|  | ||||
| SHELL = /bin/bash -o pipefail | ||||
|  | ||||
| ifdef DEBUG | ||||
| override CFLAGS += -O0 -g3 | ||||
| else | ||||
| @@ -33,6 +29,10 @@ override CFLAGS += -Wextra -Wshadow -Wjump-misses-init -Wundef | ||||
| # Remove missing-field-initializers because of GCC bug | ||||
| override CFLAGS += -Wno-missing-field-initializers | ||||
|  | ||||
| ifdef VERBOSE | ||||
| override TFLAGS += -v | ||||
| endif | ||||
|  | ||||
|  | ||||
| all: $(TARGET) | ||||
|  | ||||
| @@ -41,30 +41,11 @@ asm: $(ASM) | ||||
| size: $(OBJ) | ||||
| 	$(SIZE) -t $^ | ||||
|  | ||||
| .SUFFIXES: | ||||
| test: \ | ||||
| 	test_format \ | ||||
| 	test_dirs \ | ||||
| 	test_files \ | ||||
| 	test_seek \ | ||||
| 	test_truncate \ | ||||
| 	test_entries \ | ||||
| 	test_interspersed \ | ||||
| 	test_alloc \ | ||||
| 	test_paths \ | ||||
| 	test_attrs \ | ||||
| 	test_move \ | ||||
| 	test_orphan \ | ||||
| 	test_relocations \ | ||||
| 	test_corrupt | ||||
| 	@rm test.c | ||||
| test_%: tests/test_%.sh | ||||
|  | ||||
| ifdef QUIET | ||||
| 	@./$< | sed -nu '/^[-=]/p' | ||||
| else | ||||
| 	./$< | ||||
| endif | ||||
| test: | ||||
| 	./scripts/test.py $(TFLAGS) | ||||
| .SECONDEXPANSION: | ||||
| test%: tests/test$$(firstword $$(subst \#, ,%)).toml | ||||
| 	./scripts/test.py $@ $(TFLAGS) | ||||
|  | ||||
| -include $(DEP) | ||||
|  | ||||
| @@ -85,3 +66,4 @@ clean: | ||||
| 	rm -f $(OBJ) | ||||
| 	rm -f $(DEP) | ||||
| 	rm -f $(ASM) | ||||
| 	rm -f tests/*.toml.* | ||||
|   | ||||
		Reference in New Issue
	
	Block a user