After a some adoptions regarding the shell tools the main makefile compiles nicely and generates libesphttpd.a. Unfortunately I got stuck at the next step when it comes to building espfs/mkespfsimage/mkespfsimage. The called makefile seems to be very rudimentary, e.g. it doesn't even define the compiler. Looks like I'm missing something fundamental here...
GZIP_COMPRESSION ?= no
USE_HEATSHRINK ?= yes
CFLAGS=-I../../lib/heatshrink -I../../include -I.. -std=gnu99
ifeq ("$(GZIP_COMPRESSION)","yes")
CFLAGS += -DESPFS_GZIP
endif
ifeq ("$(USE_HEATSHRINK)","yes")
CFLAGS += -DESPFS_HEATSHRINK
endif
OBJS=main.o heatshrink_encoder.o
TARGET=mkespfsimage
$(TARGET): $(OBJS)
ifeq ("$(GZIP_COMPRESSION)","yes")
$(CC) -o $@ $^ -lz
else
$(CC) -o $@ $^
endif
clean:
rm -f $(TARGET) $(OBJS)
To be honest I don't quite understand what this is supposed to do anyway? Why does libesphttpd try to build a filesystem? Shouldn't the filesystem be built by the application which uses the lib? Anyway, any help would be very welcome.
Regards
Lutz