mirror of
https://github.com/radareorg/radare2.git
synced 2025-01-08 22:30:30 +00:00
42 lines
712 B
Makefile
42 lines
712 B
Makefile
CC=tcc
|
|
RANLIB=ranlib
|
|
LINK=
|
|
ONELIB=0
|
|
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
|
|
|
|
ifeq ($(OSTYPE),auto)
|
|
OSTYPE=$(shell uname | tr 'A-Z' 'a-z')
|
|
endif
|
|
ifeq ($(OSTYPE),cygwin_nt-6.1)
|
|
OSTYPE=cygwin
|
|
endif
|
|
ifeq ($(OSTYPE),cygwin_nt-6.1-wow64)
|
|
OSTYPE=cygwin
|
|
endif
|
|
ifeq ($(OSTYPE),cygwin)
|
|
PIC_CFLAGS=
|
|
else
|
|
PIC_CFLAGS=-fPIC
|
|
endif
|
|
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
|