2013-09-06 22:39:08 +00:00
|
|
|
ifeq (${_INCLUDE_MK_GCC_},)
|
|
|
|
_INCLUDE_MK_GCC_=1
|
|
|
|
EXT_EXE=.js
|
2018-11-15 18:01:51 +00:00
|
|
|
EXT_SO=.bc
|
2017-01-19 22:52:00 +00:00
|
|
|
EXT_AR=a
|
2013-09-06 22:39:08 +00:00
|
|
|
CC=emcc
|
|
|
|
AR=emar
|
|
|
|
LINK=
|
|
|
|
RANLIB=emranlib
|
|
|
|
ONELIB=0
|
|
|
|
CC_AR=emar q ${LIBAR}
|
2018-12-15 16:27:55 +00:00
|
|
|
PARTIALLD=emcc -emit-llvm -nostdlib -Wl,--whole-archive
|
2013-09-06 22:39:08 +00:00
|
|
|
PIC_CFLAGS=-fPIC
|
|
|
|
CFLAGS+=-MD
|
|
|
|
CFLAGS_INCLUDE=-I
|
|
|
|
LDFLAGS_LINK=-l
|
|
|
|
LDFLAGS_LINKPATH=-L
|
|
|
|
CFLAGS_OPT0=-O0
|
|
|
|
CFLAGS_OPT1=-O1
|
|
|
|
CFLAGS_OPT2=-O2
|
|
|
|
CFLAGS_OPT3=-O3
|
|
|
|
CFLAGS_DEBUG=-g
|
|
|
|
|
|
|
|
ifeq ($(OSTYPE),auto)
|
|
|
|
OSTYPE=$(shell uname | tr 'A-Z' 'a-z')
|
|
|
|
endif
|
|
|
|
LDFLAGS_LIB=-shared
|
|
|
|
LDFLAGS_SONAME=-Wl,-soname=
|
|
|
|
|
|
|
|
CC_LIB=${CC} ${LDFLAGS_LIB} -o ${LIBSO}
|
|
|
|
endif
|