wifidmm/src/Makefile

27 lines
635 B
Makefile
Raw Permalink Normal View History

2017-02-19 14:46:57 +00:00
.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)
2017-02-13 08:20:33 +00:00
PROGRAM=wifidmm
2017-02-17 07:34:48 +00:00
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
2017-02-13 08:20:33 +00:00
FLASH_SIZE=32
include $(ESP_RTOS_PATH)common.mk
2017-02-13 08:20:33 +00:00
2017-02-19 14:46:57 +00:00
fsdata/fsdata.c:
@cd fsdata && ./makefsdata
build/httpd/fs.o: fsdata/fsdata.c
prepare: fsdata/fsdata.c
2017-02-17 07:34:48 +00:00
2017-02-19 14:46:57 +00:00
distclean: clean
@$(RM) fsdata/fsdata.c
2017-02-18 12:13:16 +00:00
2017-02-13 08:20:33 +00:00
pretty:
2017-02-19 14:46:57 +00:00
@astyle --style=google *.c && $(RM) *.orig