colorchord/embedded8266/web/Makefile

24 lines
521 B
Makefile
Raw Normal View History

include ../makeconf.inc # Look here for user configuration
2015-07-29 07:54:49 +02:00
2016-08-03 16:27:10 +02:00
.PHONY : all clean push
all : execute_reflash push
2016-08-03 16:27:10 +02:00
CC = gcc
2015-07-29 07:54:49 +02:00
mfsmaker : mfsmaker.c
pushtodev : pushtodev.c
execute_reflash : execute_reflash.c md5.c
2015-07-29 07:54:49 +02:00
page.mpfs : mfsmaker page
# cat to_compress/*.js | gzip -9 > page/compressed.js.gz
./mfsmaker page page.mpfs
2015-07-29 07:54:49 +02:00
#mfsmaker pushtodev execute_reflash:
# $(CC) $(CFLAGS) -o $@ $^
2015-07-29 07:54:49 +02:00
push : pushtodev page.mpfs
./pushtodev $(IP) $(PAGE_OFFSET) page.mpfs
2015-07-29 07:54:49 +02:00
clean :
2016-08-03 16:27:10 +02:00
$(RM) mfsmaker page.mpfs pushtodev execute_reflash