2016-08-04 15:50:13 +02:00
|
|
|
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
|
2016-08-04 15:50:13 +02:00
|
|
|
all : execute_reflash push
|
2016-08-03 16:27:10 +02:00
|
|
|
|
2016-08-04 15:50:13 +02:00
|
|
|
CC = gcc
|
2015-08-07 05:55:53 +02:00
|
|
|
|
2015-07-29 07:54:49 +02:00
|
|
|
mfsmaker : mfsmaker.c
|
2016-08-04 15:50:13 +02:00
|
|
|
pushtodev : pushtodev.c
|
|
|
|
execute_reflash : execute_reflash.c md5.c
|
2015-07-29 07:54:49 +02:00
|
|
|
|
2015-08-16 06:54:18 +02:00
|
|
|
page.mpfs : mfsmaker page
|
2015-08-07 05:55:53 +02:00
|
|
|
# cat to_compress/*.js | gzip -9 > page/compressed.js.gz
|
2015-08-16 06:54:18 +02:00
|
|
|
./mfsmaker page page.mpfs
|
2015-07-29 07:54:49 +02:00
|
|
|
|
2016-08-04 15:50:13 +02:00
|
|
|
#mfsmaker pushtodev execute_reflash:
|
|
|
|
# $(CC) $(CFLAGS) -o $@ $^
|
2015-07-29 07:54:49 +02:00
|
|
|
|
2015-08-16 06:54:18 +02:00
|
|
|
push : pushtodev page.mpfs
|
2016-08-04 15:50:13 +02:00
|
|
|
./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
|