summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index a1445b2..1892665 100644
--- a/Makefile
+++ b/Makefile
@@ -9,3 +9,8 @@ game: World.o main.o
clean:
rm -f game
rm -f *.o
+
+browser-game:
+ emcc --std=c++11 -O2 World.cpp -o World.bc
+ emcc --std=c++11 -O2 main.cpp -o main.bc
+ emcc -O2 World.bc main.bc -o out.html -s USE_SDL=2 --preload-file coin.bmp --preload-file earth01.bmp --preload-file fonts.bmp --preload-file gridder01.bmp --preload-file guy01.bmp --preload-file guy02.bmp --preload-file gridder02.bmp