mirror of
https://github.com/radareorg/radare2.git
synced 2025-03-03 11:50:02 +00:00

- 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)
26 lines
405 B
Makefile
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
|