mirror of
https://github.com/radareorg/radare2.git
synced 2025-03-01 10:48:05 +00:00

- Implements a serialized RFList inside a RList container - Allows faster scans on contents * Initial import of the RAnalCond/Value code - Not yet usable..just refactoring.. - Handle null pointers in reg classes * Added not-yet-working emit_arm.c for r2rc tool
40 lines
744 B
Makefile
40 lines
744 B
Makefile
CFLAGS+=-g -Wall
|
|
PREFIX?=/usr
|
|
DESTDIR?=
|
|
PFX=${DESTDIR}${PREFIX}
|
|
|
|
all: r2rc
|
|
|
|
r2rc: r2rc.o emit_x86.o emit_x64.o emit_arm.o out.o
|
|
gcc -I. out.o r2rc.o emit*.o -o r2rc
|
|
|
|
test:
|
|
./rcc t/hello.r > t/hello.S
|
|
gcc t/hello.S -o t/hello
|
|
# cat t/hello.S
|
|
t/hello
|
|
#spp test.r | ./rcc
|
|
#./rcc test.r
|
|
|
|
install:
|
|
chmod +x r2rc
|
|
mkdir -p ${PFX}/bin
|
|
cp r2rc ${PFX}/bin
|
|
chmod +x r2rc-tool
|
|
cp r2rc-tool ${PFX}/bin
|
|
|
|
install-symlink:
|
|
mkdir -p ${PFX}/bin
|
|
ln -fs ${PWD}/r2rc ${PFX}/bin/r2rc
|
|
ln -fs ${PWD}/r2rc-tool ${PFX}/bin/r2rc-tool
|
|
|
|
deinstall uninstall:
|
|
rm -f ${PFX}/bin/r2rc ${PFX}/bin/r2rc-tool
|
|
|
|
clean mrproper:
|
|
cd t && ${MAKE} clean
|
|
-rm -f r2rc r2rc.o out.o emit*.o
|
|
|
|
|
|
.PHONY: all clean install install-symlink deinstall uninstall r2rc test mrproper
|