2020-09-27 12:47:20 +08:00
|
|
|
CC=tcc -D__LITTLE_ENDIAN__=1
|
2020-05-23 19:46:23 +08:00
|
|
|
RANLIB?=ranlib
|
2010-10-29 09:10:10 +08:00
|
|
|
ONELIB=0
|
2020-05-23 19:51:29 +08:00
|
|
|
AR?=ar
|
2018-01-10 07:59:38 +08:00
|
|
|
CC_AR=${AR} -r ${LIBAR}
|
2009-03-22 12:37:46 +08:00
|
|
|
CC_LIB=${CC} -shared -o ${LIBSO}
|
|
|
|
CFLAGS_INCLUDE=-I
|
|
|
|
LDFLAGS_LINK=-l
|
2010-06-15 20:10:42 +08:00
|
|
|
LDFLAGS_LINKPATH=-L
|
2009-03-22 12:37:46 +08:00
|
|
|
CFLAGS_OPT0=-O0
|
|
|
|
CFLAGS_OPT1=-O1
|
|
|
|
CFLAGS_OPT2=-O2
|
|
|
|
CFLAGS_OPT3=-O3
|
2018-03-19 11:39:02 +08:00
|
|
|
LD?=ld
|
2011-06-16 05:53:56 +08:00
|
|
|
|
|
|
|
ifeq ($(OSTYPE),darwin)
|
2018-03-19 11:39:02 +08:00
|
|
|
PARTIALLD=${LD} -r -all_load
|
2011-06-16 05:53:56 +08:00
|
|
|
LDFLAGS_LIB=-dynamiclib
|
2020-09-27 12:47:20 +08:00
|
|
|
LDFLAGS_SONAME=-soname
|
|
|
|
# LDFLAGS_SONAME=-Wl,-install_name,
|
2011-06-16 05:53:56 +08:00
|
|
|
else
|
2018-03-19 11:39:02 +08:00
|
|
|
PARTIALLD=${LD} -r --whole-archive
|
2011-06-16 05:53:56 +08:00
|
|
|
LDFLAGS_LIB=-shared
|
|
|
|
LDFLAGS_LIB+=-Dxx
|
|
|
|
#Wl,-soname,lib${NAME}.${EXT_SO}.${VERSION}
|
2020-09-27 12:47:20 +08:00
|
|
|
LDFLAGS_SONAME=-soname
|
2011-06-16 05:53:56 +08:00
|
|
|
#Wl,-soname=
|
|
|
|
endif
|
|
|
|
|
|
|
|
CC_LIB=${CC} ${LDFLAGS_LIB} -o ${LIBSO}
|
|
|
|
FLAGS_DEBUG=-g
|