2015-08-16 06:54:18 +02:00
|
|
|
all : execute_reflash page.mpfs push
|
2015-07-29 07:54:49 +02:00
|
|
|
|
2015-08-07 05:55:53 +02:00
|
|
|
IP?=192.168.4.1
|
|
|
|
|
2015-07-29 07:54:49 +02:00
|
|
|
mfsmaker : mfsmaker.c
|
|
|
|
gcc -o $@ $^
|
|
|
|
|
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
|
|
|
|
|
|
|
pushtodev : pushtodev.c
|
|
|
|
gcc -o $@ $^
|
|
|
|
|
|
|
|
execute_reflash : execute_reflash.c md5.c
|
|
|
|
gcc -o $@ $^
|
|
|
|
|
2015-08-16 06:54:18 +02:00
|
|
|
push : pushtodev page.mpfs
|
|
|
|
./pushtodev $(IP) 1048576 page.mpfs
|
2015-07-29 07:54:49 +02:00
|
|
|
|
|
|
|
clean :
|
2015-08-16 06:54:18 +02:00
|
|
|
rm -rf mfsmaker page.mpfs pushtodev execute_reflash
|