diff options
Diffstat (limited to 'themes/Makefile')
-rw-r--r-- | themes/Makefile | 17 |
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 |