2019-07-23 17:47:18 +02:00
|
|
|
APP_DIR = ../../app
|
2019-01-24 21:29:32 +01:00
|
|
|
summary ?= @true
|
|
|
|
|
2018-06-23 01:37:31 +02:00
|
|
|
CC =gcc
|
|
|
|
|
2016-06-05 23:10:58 +02:00
|
|
|
SRCS=\
|
|
|
|
main.c \
|
2019-07-23 17:47:18 +02:00
|
|
|
$(APP_DIR)/spiffs/spiffs_cache.c $(APP_DIR)/spiffs/spiffs_check.c $(APP_DIR)/spiffs/spiffs_gc.c $(APP_DIR)/spiffs/spiffs_hydrogen.c $(APP_DIR)/spiffs/spiffs_nucleus.c
|
2016-06-05 23:10:58 +02:00
|
|
|
|
2019-07-23 17:47:18 +02:00
|
|
|
CFLAGS=-g -Wall -Wextra -Wno-unused-parameter -Wno-unused-function -I. -I$(APP_DIR)/spiffs -I$(APP_DIR)/include -DNODEMCU_SPIFFS_NO_INCLUDE --include spiffs_typedefs.h -Ddbg_printf=printf
|
2016-06-05 23:10:58 +02:00
|
|
|
|
|
|
|
spiffsimg: $(SRCS)
|
2018-12-09 21:39:43 +01:00
|
|
|
$(summary) HOSTCC $(CURDIR)/$<
|
2016-06-05 23:10:58 +02:00
|
|
|
$(CC) $(CFLAGS) $^ $(LDFLAGS) -o $@
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f spiffsimg
|