27 lines
635 B
Makefile
27 lines
635 B
Makefile
.PHONY: prepare distclean pretty
|
|
|
|
ESP_SDK_PATH=/opt/esp-open-sdk/
|
|
ESP_RTOS_PATH=/opt/esp-open-rtos/
|
|
export PATH := $(ESP_SDK_PATH)xtensa-lx106-elf/bin:$(PATH)
|
|
|
|
PROGRAM=wifidmm
|
|
EXTRA_COMPONENTS=extras/dhcpserver extras/stdin_uart_interrupt extras/mbedtls extras/httpd
|
|
EXTRA_CFLAGS=-DLWIP_HTTPD_CGI=1 -DLWIP_HTTPD_SSI=1 -I./fsdata
|
|
EXTRA_CFLAGS+=-DLWIP_DEBUG=1 -DHTTPD_DEBUG=LWIP_DBG_ON
|
|
FLASH_SIZE=32
|
|
|
|
include $(ESP_RTOS_PATH)common.mk
|
|
|
|
fsdata/fsdata.c:
|
|
@cd fsdata && ./makefsdata
|
|
|
|
build/httpd/fs.o: fsdata/fsdata.c
|
|
|
|
prepare: fsdata/fsdata.c
|
|
|
|
distclean: clean
|
|
@$(RM) fsdata/fsdata.c
|
|
|
|
pretty:
|
|
@astyle --style=google *.c && $(RM) *.orig
|