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