2016-07-15 16:01:17 +00:00
|
|
|
# explicitly use gcc as in xtensa build environment it might be set to
|
|
|
|
# cross compiler
|
|
|
|
CC = gcc
|
|
|
|
|
2016-07-09 22:33:23 +00:00
|
|
|
SOURCES := spiffs_hydrogen.c
|
|
|
|
SOURCES += spiffs_cache.c
|
|
|
|
SOURCES += spiffs_gc.c
|
|
|
|
SOURCES += spiffs_check.c
|
|
|
|
SOURCES += spiffs_nucleus.c
|
|
|
|
SOURCES += mkspiffs.c
|
|
|
|
|
|
|
|
OBJECTS := $(SOURCES:.c=.o)
|
|
|
|
|
|
|
|
VPATH = ../spiffs/src
|
|
|
|
|
|
|
|
CFLAGS += -I..
|
2016-08-08 15:08:42 +00:00
|
|
|
CFLAGS += -DSPIFFS_SINGLETON=0
|
2016-07-09 22:33:23 +00:00
|
|
|
|
|
|
|
all: mkspiffs
|
|
|
|
|
2016-07-22 11:09:50 +00:00
|
|
|
$(OBJECTS): $(SOURCES)
|
|
|
|
|
|
|
|
$(OBJECTS): ../spiffs_config.h
|
|
|
|
|
2016-07-09 22:33:23 +00:00
|
|
|
mkspiffs: $(OBJECTS)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
@rm -f mkspiffs
|
|
|
|
@rm -f *.o
|
|
|
|
|
|
|
|
.PHONY: all clean
|