mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-26 07:17:01 +00:00
35 lines
518 B
Makefile
35 lines
518 B
Makefile
ifeq (${_INCLUDE_MK_GCC_},)
|
|
_INCLUDE_MK_GCC_=1
|
|
EXT_EXE=.wasm
|
|
EXT_SO=.wasm
|
|
EXT_AR=a
|
|
CC=emcc
|
|
AR=emar
|
|
LINK=
|
|
RANLIB=emranlib
|
|
ONELIB=0
|
|
CC_AR=emar q ${LIBAR}
|
|
PARTIALLD=emld -r
|
|
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
|
|
|
|
WASM=1
|
|
SIDE_MODULE=1
|
|
|
|
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
|