Skip to content

Commit

Permalink
Add mipsel compiler target
Browse files Browse the repository at this point in the history
  • Loading branch information
radare committed Mar 13, 2017
1 parent 335fff0 commit 0a34aff
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions mk/mipsel.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
ARCH=mipsel
CROSS_ROOT=/usr/bin
CROSS_TRIPLET=${ARCH}-linux-gnueabi

CC=${CROSS_ROOT}/${CROSS_TRIPLET}-gcc
USERCC=${CROSS_ROOT}/${CROSS_TRIPLET}-gcc

RANLIB=${CROSS_TRIPLET}-ranlib
CC_AR=${CROSS_ROOT}/${CROSS_TRIPLET}-ar -r ${LIBAR}

ONELIB=0
OSTYPE=gnulinux
LINK=
PICFLAGS=-fPIC -fpic
CFLAGS+=${PICFLAGS}
LDFLAGS+=-ldl -pthread -lutil
CC_LIB=${CC} -shared -o
CFLAGS_INCLUDE=-I
LDFLAGS_LINK=-l
LDFLAGS_LINKPATH=-L
CFLAGS_OPT0=-O0
CFLAGS_OPT1=-O1
CFLAGS_OPT2=-O2
CFLAGS_OPT3=-O3
CFLAGS_DEBUG=-g

0 comments on commit 0a34aff

Please sign in to comment.