radare2/mk/aarch64-linux-gnu-gcc.mk
2022-11-03 18:48:40 +01:00

26 lines
469 B
Makefile

ifeq (${_INCLUDE_MK_GCC_},)
_INCLUDE_MK_GCC_=1
CROSS=aarch64-linux-gnu-
CC=${CROSS}gcc
USER_CC=${CC}
RANLIB=${CROSS}ranlib
ONELIB=0
OSTYPE=gnulinux
AR=${CROSS}ar
CC_AR=${AR} -r ${LIBAR}
PARTIALLD=${CROSS}ld -r
PICFLAGS=-fPIC -fpic
CFLAGS+=${PICFLAGS} -MD
CC_LIB=${CC} -shared -o
CFLAGS_INCLUDE=-I
# LDFLAGS+=-static-libgcc
LDFLAGS_LINK=-l
LDFLAGS_LINKPATH=-L
CFLAGS_OPT0=-O0
CFLAGS_OPT1=-O1
CFLAGS_OPT2=-O2
CFLAGS_OPT3=-O3
CFLAGS_DEBUG=-g
OBJCOPY=${CROSS}objcopy
endif