diff options
author | Ben Smith <binji@chromium.org> | 2016-04-15 10:11:02 -0700 |
---|---|---|
committer | Ben Smith <binji@chromium.org> | 2016-04-17 13:31:39 -0700 |
commit | 525072bf2f2647436147474bdb8be25fc6660330 (patch) | |
tree | e00a4c2655fa338a1e34a1678976a3336da85a24 /Makefile | |
parent | cd5b8f5494073fc0a35d70aa2b1091f3742dc096 (diff) | |
download | wabt-525072bf2f2647436147474bdb8be25fc6660330.tar.gz wabt-525072bf2f2647436147474bdb8be25fc6660330.tar.bz2 wabt-525072bf2f2647436147474bdb8be25fc6660330.zip |
emscripten build, w/ library bindings
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -20,14 +20,15 @@ MAKEFILE_NAME := $(lastword $(MAKEFILE_LIST)) ROOT_DIR := $(dir $(abspath $(MAKEFILE_NAME))) USE_NINJA ?= 0 -FUZZ_BIN_DIR ?= afl-fuzz +FUZZ_BIN_DIR ?= ${ROOT_DIR}/afl-fuzz GCC_FUZZ_CC := ${FUZZ_BIN_DIR}/afl-gcc GCC_FUZZ_CXX := ${FUZZ_BIN_DIR}/afl-g++ +EMSCRIPTEN_DIR ?= ${ROOT_DIR}/emscripten DEFAULT_COMPILER = CLANG DEFAULT_BUILD_TYPE = DEBUG -COMPILERS := GCC GCC_I686 GCC_FUZZ CLANG +COMPILERS := GCC GCC_I686 GCC_FUZZ CLANG EMSCRIPTEN BUILD_TYPES := DEBUG RELEASE SANITIZERS := ASAN MSAN LSAN CONFIGS := NORMAL ASAN MSAN LSAN NO_FLEX_BISON NO_TESTS @@ -38,6 +39,7 @@ GCC_DIR := gcc/ GCC_I686_DIR := gcc-i686/ GCC_FUZZ_DIR := gcc-fuzz/ CLANG_DIR := clang/ +EMSCRIPTEN_DIR := emscripten/ DEBUG_DIR := Debug/ RELEASE_DIR := Release/ NORMAL_DIR := @@ -53,6 +55,7 @@ GCC_I686_FLAG := -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ \ -DCMAKE_C_FLAGS=-m32 -DCMAKE_CXX_FLAGS=-m32 GCC_FUZZ_FLAG := -DCMAKE_C_COMPILER=${GCC_FUZZ_CC} -DCMAKE_CXX_COMPILER=${GCC_FUZZ_CXX} CLANG_FLAG := -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ +EMSCRIPTEN_FLAG := -DCMAKE_TOOLCHAIN_FILE=${EMSCRIPTEN_DIR}/cmake/Modules/Platform/Emscripten.cmake DEBUG_FLAG := -DCMAKE_BUILD_TYPE=Debug RELEASE_FLAG := -DCMAKE_BUILD_TYPE=Release NORMAL_FLAG := @@ -67,6 +70,7 @@ GCC_PREFIX := gcc GCC_I686_PREFIX := gcc-i686 GCC_FUZZ_PREFIX := gcc-fuzz CLANG_PREFIX := clang +EMSCRIPTEN_PREFIX := emscripten DEBUG_PREFIX := -debug RELEASE_PREFIX := -release NORMAL_PREFIX := |