mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-14 08:49:50 +00:00
23 lines
343 B
Makefile
23 lines
343 B
Makefile
CC?=gcc
|
|
LINK=
|
|
CC_AR=ar -r ${LIBAR}
|
|
PIC_CFLAGS=-fPIC
|
|
CFLAGS+=-MD
|
|
CFLAGS_INCLUDE=-I
|
|
LDFLAGS_LINK=-l
|
|
CFLAGS_OPT0=-O0
|
|
CFLAGS_OPT1=-O1
|
|
CFLAGS_OPT2=-O2
|
|
CFLAGS_OPT3=-O3
|
|
CFLAGS_DEBUG=-g
|
|
|
|
ifeq ($(OSTYPE),darwin)
|
|
LDFLAGS_LIB=-dynamiclib
|
|
LDFLAGS_LINKPATH=-L
|
|
else
|
|
LDFLAGS_LIB=-shared
|
|
LDFLAGS_LINKPATH=-Wl,-R
|
|
endif
|
|
|
|
CC_LIB=${CC} ${LDFLAGS_LIB} -o ${LIBSO}
|