mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-14 08:49:50 +00:00
245babbf9e
* Cleanup crypto.aes and anal.arm_cs to make the latest tcc happy * Dont pick latest tcc. as its broken (-30 commits for now) * Dont pass multi-dimensional arrays as argument * Don't assume TCC supports threads, because it doesnt * Many intrinsics are missing still for tcc on darwin-arm64 * lz4 code crashes when compiled with latest tcc and needs a full rewrit * Add more null checks here and there * Remove unused code in the tcc parser
31 lines
564 B
Makefile
31 lines
564 B
Makefile
CC=tcc -D__LITTLE_ENDIAN__=1
|
|
RANLIB?=ranlib
|
|
ONELIB=0
|
|
AR?=ar
|
|
CC_AR=${AR} -r ${LIBAR}
|
|
CC_LIB=${CC} -shared -o ${LIBSO}
|
|
CFLAGS_INCLUDE=-I
|
|
LDFLAGS_LINK=-l
|
|
LDFLAGS_LINKPATH=-L
|
|
CFLAGS_OPT0=-O0
|
|
CFLAGS_OPT1=-O1
|
|
CFLAGS_OPT2=-O2
|
|
CFLAGS_OPT3=-O3
|
|
LD?=ld
|
|
|
|
ifeq ($(OSTYPE),darwin)
|
|
PARTIALLD=${LD} -r -all_load
|
|
LDFLAGS_LIB=-dynamiclib
|
|
LDFLAGS_SONAME=-soname,
|
|
else
|
|
PARTIALLD=${LD} -r --whole-archive
|
|
LDFLAGS_LIB=-shared
|
|
LDFLAGS_LIB+=-Dxx
|
|
#Wl,-soname,lib${NAME}.${EXT_SO}.${VERSION}
|
|
LDFLAGS_SONAME=-soname
|
|
#Wl,-soname=
|
|
endif
|
|
|
|
CC_LIB=${CC} ${LDFLAGS_LIB} -o ${LIBSO}
|
|
FLAGS_DEBUG=-g
|