-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathMakefile.commonweb
More file actions
31 lines (24 loc) · 1.26 KB
/
Copy pathMakefile.commonweb
File metadata and controls
31 lines (24 loc) · 1.26 KB
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 -I/mnt/c/DEV/PLATFORMS/WINDOWS/LIBS/fmodstudioapi20312html5 -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 -std=c++17 -fpermissive -g -I$(PRISM_PATH)/include -I$(PRISM_PATH)/../../../PLATFORMS/WINDOWS/LIBS/lpng1632 -I$(PRISM_PATH)/../../../PLATFORMS/WINDOWS/LIBS/zstd/lib -I/mnt/c/DEV/PLATFORMS/WINDOWS/LIBS/fmodstudioapi20312html5 -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 EXPORTED_RUNTIME_METHODS=ccall,cwrap,setValue,getValue \
-L$(PRISM_PATH)/bin -lprism \
-L$(PRISM_PATH)/web/lib -lzstd -lfmod \
-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