-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile.emscripten
41 lines (35 loc) · 2.19 KB
/
Makefile.emscripten
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
32
33
34
35
36
37
38
39
40
41
CC = emcc
CFLAGS = -Oz \
-Wall -Wextra -Wpedantic \
-std=c++17 \
-s USE_SDL=2 \
-s USE_SDL_TTF=2 \
-s USE_SDL_MIXER=2 \
-s USE_SDL_IMAGE=2 \
-s SDL2_IMAGE_FORMATS='["png"]' \
-s DEMANGLE_SUPPORT=1 \
-s WARN_ON_UNDEFINED_SYMBOLS=1
INCLUDES = -Iexternal/jackbengine/external \
-Iexternal/jackbengine/include \
-Iexternal/jackbengine/src \
-Isrc
SOURCES = src/main.cpp \
src/app.cpp \
src/scene/menu/menuScene.cpp \
src/scene/wall/wallScene.cpp \
src/scene/wall/state/wallServiceState.cpp \
src/scene/wall/state/wallGameState.cpp \
src/scene/wall/state/wallGameOverState.cpp \
src/scene/1player/1playerScene.cpp \
src/scene/1player/state/1playerServiceState.cpp \
src/scene/1player/state/1playerGameState.cpp \
src/scene/1player/state/1playerGameOverState.cpp \
src/scene/2players/2playersScene.cpp \
src/scene/2players/state/2playersServiceState.cpp \
src/scene/2players/state/2playersGameState.cpp \
src/scene/2players/state/2playersGameOverState.cpp \
resources.cpp
LIB_JACKBENGINE = external/jackbengine/libjackbengine.bc
OUT = export/itch.io/pong.js
all:
EMCC_DEBUG=1 $(CC) $(CFLAGS) $(INCLUDES) $(LIB_JACKBENGINE) $(SOURCES) -o $(OUT)