Skip to content

Commit

Permalink
toolchain for emscripten
Browse files Browse the repository at this point in the history
  • Loading branch information
dturevski committed Nov 30, 2016
1 parent 174c788 commit 9fb56e4
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 1 deletion.
5 changes: 5 additions & 0 deletions makefile.defaults
Expand Up @@ -187,6 +187,11 @@ COMPRESS = echo compress
#COMPRESS = compress


# How shell should execute built files
# ====================================
EXECUTE=


# include toolchain-specific settings and overriders

TOOLCHAIN=gcc
2 changes: 1 addition & 1 deletion makefile.local
Expand Up @@ -66,7 +66,7 @@ gengmarr$(EXE_SUFFIX): gengmarr$(OBJ_SUFFIX) position/position-host$(OBJ_SUFFIX)


pygmarr.c: ./gengmarr$(EXE_SUFFIX)
./gengmarr$(EXE_SUFFIX) > $@
$(EXECUTE) ./gengmarr$(EXE_SUFFIX) > $@


# ===========================================================
Expand Down
22 changes: 22 additions & 0 deletions toolchains/emcc/make.incl
@@ -0,0 +1,22 @@
# -*- Makefile -*-
#

# Include file for makefile.unx for compiling on Linux using emcc

# Requirements:
#
# Emscripten SDK and Java
#


include toolchains/gcc/make.incl
CCHOST=emcc
LDHOST=emcc
CCTARGET=emcc
LDTARGET=emcc
EXE_SUFFIX=.js
STRIPTARGET=@echo "already stripped"
CCOPTIM=
LDOPTIM=
EXECUTE=nodejs
OSTYPE=asm.js
6 changes: 6 additions & 0 deletions toolchains/emcc/makefile.local
@@ -0,0 +1,6 @@
# -*- Makefile -*-
#

include makefile.rules

DISTRIBUTEDFILES = makefile.local make.incl

0 comments on commit 9fb56e4

Please sign in to comment.