radare2/mk/gcc.mk
2010-02-21 20:49:39 +01:00

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}