Separate example game to Example.GameLib.

This commit is contained in:
2020-04-20 03:11:23 +02:00
committed by Valeriano A.R
parent 08068a825b
commit 8349b60b34
51 changed files with 829 additions and 935 deletions

25
Makefile.emscripten.mk Normal file
View File

@@ -0,0 +1,25 @@
CC := emcc
AR := emar
LAUNCHER := emrun --port 8080
RM := del
MKDIR := mkdir
ECHO := echo
VERBOSE_BUILD := true
SLASH := \\
LIBS :=
CFLAGS := -s FULL_ES2=1 -s ASM_JS=1 -O1 -Wno-implicit-function-declaration -DEMSCRIPTEN
LDFLAGS := --preload-file data -s TOTAL_MEMORY=134217728 -lidbfs.js
RES_GAMELIB := libgame.a
BUILDDIR := build-emscripten
ifeq ($(target),release)
CFLAGS := $(CFLAGS) -O2
BUILDDIR := build-emscripten-release
LDFLAGS := --preload-file data -s TOTAL_MEMORY=134217728 --emrun
endif
include Makefile.common.mk