radare2/r2rc/Makefile
pancake a580ff4fa8 * Initial implementation of the subclassed RLFList class
- 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
2010-06-16 09:42:46 +02:00

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