nodemcu-firmware/tools/spiffsimg/Makefile

18 lines
541 B
Makefile
Raw Permalink Normal View History

2019-07-23 17:47:18 +02:00
APP_DIR = ../../app
summary ?= @true
2018-06-23 01:37:31 +02:00
CC =gcc
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
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
spiffsimg: $(SRCS)
2018-12-09 21:39:43 +01:00
$(summary) HOSTCC $(CURDIR)/$<
$(CC) $(CFLAGS) $^ $(LDFLAGS) -o $@
clean:
rm -f spiffsimg