summaryrefslogtreecommitdiff
path: root/themes/Makefile
diff options
context:
space:
mode:
authormattkae <mattkae@protonmail.com>2022-05-01 18:37:59 -0400
committermattkae <mattkae@protonmail.com>2022-05-01 18:37:59 -0400
commitdfc387644939aada1edb69f8f730e62f116f1ae3 (patch)
treed38b17d0b21fd579f1330546394462964a08600e /themes/Makefile
parent1db914466663a1e4d0d827b8b9bd18840d7742eb (diff)
Fetching bunny model
Diffstat (limited to 'themes/Makefile')
-rw-r--r--themes/Makefile17
1 files changed, 17 insertions, 0 deletions
diff --git a/themes/Makefile b/themes/Makefile
new file mode 100644
index 0000000..dce422e
--- /dev/null
+++ b/themes/Makefile
@@ -0,0 +1,17 @@
+CXX = emcc
+EXE = dist/output.js
+SRCS = $(wildcard *.cpp)
+OBJS = $(patsubst %.cpp,%.o,$(SRCS))
+LDFLAGS = -s ALLOW_MEMORY_GROWTH=1 -s USE_WEBGL2=1 -s FULL_ES3=1 -s WASM=1 -s NO_EXIT_RUNTIME=1 -s FETCH
+
+all: build $(EXE)
+
+$(EXE): $(OBJS)
+ echo $(OBJS)
+ $(CXX) -o $(EXE) $(OBJS) $(LDFLAGS)
+
+build:
+ @mkdir -p dist
+
+clean:
+ rm -rf dist \ No newline at end of file