radare2/r2rc/Makefile
Nibble 54e804eec9 * Fix r2 build
- Add CFLAGS+=-DCORELIB in libr/cmd/Makefile
  - Add target all in r2rc/Makefile
* r_core
  - Add dummy command ac (stands for analyze code)
* r_anal
  - Reorganize code
  - Add function r_anal_bbs (not working yet)
2010-02-26 13:08:42 +01:00

26 lines
405 B
Makefile

CFLAGS+=-g -Wall
PREFIX?=/usr
all: r2rc
r2rc: r2rc.o emit_x86.o emit_x64.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
cp r2rc ${PREFIX}/bin
chmod +x r2rc-tool
cp r2rc-tool ${PREFIX}/bin
clean:
cd t && ${MAKE} clean
-rm -f r2rc r2rc.o out.o emit*.o