Utilize web/Makefile from within the main Makefile (esp82XX)

This commit is contained in:
con-f-use 2016-08-04 15:50:13 +02:00
parent 24f251fa79
commit 6b0d7e2530
4 changed files with 62 additions and 48 deletions

View file

@ -1,27 +1,23 @@
IP ?= 192.168.4.1
include ../makeconf.inc # Look here for user configuration
.PHONY : all clean push
all : execute_reflash push
CFLAGS = -std=gnu99 -Wall -Wextra -O2 -march=native
all : execute_reflash page.mpfs push
CC = gcc
mfsmaker : mfsmaker.c
$(CC) $(CFLAGS) -o $@ $^
pushtodev : pushtodev.c
execute_reflash : execute_reflash.c md5.c
page.mpfs : mfsmaker page
# cat to_compress/*.js | gzip -9 > page/compressed.js.gz
./mfsmaker page page.mpfs
pushtodev : pushtodev.c
$(CC) $(CFLAGS) -o $@ $^
execute_reflash : execute_reflash.c md5.c
$(CC) $(CFLAGS) -o $@ $^
#mfsmaker pushtodev execute_reflash:
# $(CC) $(CFLAGS) -o $@ $^
push : pushtodev page.mpfs
./pushtodev $(IP) 65536 page.mpfs
# ./pushtodev $(IP) 1048576 page.mpfs
./pushtodev $(IP) $(PAGE_OFFSET) page.mpfs
clean :
$(RM) mfsmaker page.mpfs pushtodev execute_reflash