Help needed with makefile
Posted: Wed Apr 13, 2016 2:36 pm
I had a look at ESP-HTTPD and it seems to be exactly what I need for my project. (I need a Web-Server with an included Web-Socket Server on the ESP). Since this project it is part of a larger project involving a Windows GUI I try to build libesphttpd under Win10 / VS2015.
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...
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
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...
Code: Select all
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