-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathMakefile.commonweb
31 lines (24 loc) · 1.17 KB
/
Makefile.commonweb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
.c.o:
emcc $< -c -O3 -s USE_SDL=2 -s USE_SDL_IMAGE=2 -s SDL2_IMAGE_FORMATS="[""png""]" -s USE_SDL_TTF=2 -g -I$(PRISM_PATH)/include -I$(PRISM_PATH)/../../../PLATFORMS/WINDOWS/LIBS/lpng1632 -I$(PRISM_PATH)/../../../PLATFORMS/WINDOWS/LIBS/zstd/lib -o $@
.cpp.o:
em++ $< -c -O3 -s USE_SDL=2 -s USE_SDL_IMAGE=2 -s SDL2_IMAGE_FORMATS="[""png""]" -s USE_SDL_TTF=2 -s USE_SDL_MIXER=2 -s USE_OGG=1 -s USE_VORBIS=1 -std=c++17 -fpermissive -g -I$(PRISM_PATH)/include -I$(PRISM_PATH)/../../../PLATFORMS/WINDOWS/LIBS/lpng1632 -I$(PRISM_PATH)/../../../PLATFORMS/WINDOWS/LIBS/zstd/lib -o $@
build_develop: $(OBJS)
em++ $(OBJS) -O3 \
-s TOTAL_MEMORY=402653184 -s NO_EXIT_RUNTIME=1 \
-s USE_SDL=2 -s USE_SDL_IMAGE=2 -s USE_SDL_TTF=2 \
-s CASE_INSENSITIVE_FS=1 -s FORCE_FILESYSTEM=1 \
-s SDL2_IMAGE_FORMATS="[""png""]" \
-s USE_SDL_MIXER=2 -s USE_OGG=1 -s USE_VORBIS=1 \
-L$(PRISM_PATH)/bin -lprism \
-L$(PRISM_PATH)/web/lib -lzstd \
-o web/game.html
-rm -f web/game.html
-cp $(PRISM_PATH)/web/assets/index.html web/index.html
-cp boot/index.html web/index.html
complete: make_folder build_develop
make_folder:
-mkdir web
clean: clean_user clean_general
clean_general:
-rm -r -f web
-rm *.o