mirror of
https://github.com/ioquake/ioq3.git
synced 2024-11-10 07:11:46 +00:00
Allow building for emscripten with "emmake make"
Co-authored-by: James Darpinian <jdarpinian@gmail.com>
This commit is contained in:
parent
17cadb5369
commit
25a680ab6e
1 changed files with 5 additions and 0 deletions
5
Makefile
5
Makefile
|
@ -61,6 +61,11 @@ ifeq ($(COMPILE_PLATFORM),cygwin)
|
||||||
PLATFORM=mingw32
|
PLATFORM=mingw32
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# detect "emmake make"
|
||||||
|
ifeq ($(findstring /emcc,$(CC)),/emcc)
|
||||||
|
PLATFORM=emscripten
|
||||||
|
endif
|
||||||
|
|
||||||
ifndef PLATFORM
|
ifndef PLATFORM
|
||||||
PLATFORM=$(COMPILE_PLATFORM)
|
PLATFORM=$(COMPILE_PLATFORM)
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Reference in a new issue