2009-03-22 04:37:46 +00:00
|
|
|
CC=tcc
|
2011-03-10 10:36:16 +00:00
|
|
|
RANLIB=ranlib
|
2009-03-22 04:37:46 +00:00
|
|
|
LINK=
|
2010-10-29 01:10:10 +00:00
|
|
|
ONELIB=0
|
2009-03-22 04:37:46 +00:00
|
|
|
CC_AR=ar -r ${LIBAR}
|
2010-01-21 20:22:30 +00:00
|
|
|
PIC_CFLAGS+=-fPIC
|
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
|
2011-06-15 21:53:56 +00:00
|
|
|
|
|
|
|
ifeq ($(OSTYPE),darwin)
|
|
|
|
LDFLAGS_LIB=-dynamiclib
|
|
|
|
LDFLAGS_SONAME=-Wl,-install_name,
|
|
|
|
else
|
|
|
|
LDFLAGS_LIB=-shared
|
|
|
|
LDFLAGS_LIB+=-Dxx
|
|
|
|
#Wl,-soname,lib${NAME}.${EXT_SO}.${VERSION}
|
|
|
|
LDFLAGS_SONAME=-Dxx
|
|
|
|
#Wl,-soname=
|
|
|
|
endif
|
|
|
|
|
|
|
|
CC_LIB=${CC} ${LDFLAGS_LIB} -o ${LIBSO}
|
|
|
|
FLAGS_DEBUG=-g
|