Remove parse_adsp219x.c - r2 6.x has no external parse plugin API. The 'asm.parser not found' warning is cosmetic and can be suppressed with 'e asm.parser=null' in ~/.radare2rc. Update Makefile to match upstream changes.
32 lines
669 B
Makefile
32 lines
669 B
Makefile
CC ?= cc
|
|
CFLAGS ?= -Wall -Wextra -O2 -fPIC
|
|
LDFLAGS ?=
|
|
|
|
R2_PLUGINS := $(shell r2 -H R2_USER_PLUGINS)
|
|
R2_INCDIR := $(shell r2 -H R2_INCDIR)
|
|
R2_LIBDIR := $(shell r2 -H R2_LIBDIR)
|
|
|
|
CPPFLAGS += -I$(R2_INCDIR) -I$(R2_INCDIR)/sdb
|
|
|
|
all: asm_adsp219x.so
|
|
|
|
asm_adsp219x.so: asm_adsp219x.c
|
|
$(CC) $(CPPFLAGS) $(CFLAGS) -shared $(LDFLAGS) \
|
|
-L$(R2_LIBDIR) \
|
|
$< -o $@ -lr_arch -lr_util
|
|
|
|
test: asm_adsp219x.so
|
|
r2 -q -a adsp219x -b 24 -c "pd 48" ../examples/isa_test.bin >/dev/null
|
|
|
|
install: all
|
|
mkdir -p $(R2_PLUGINS)
|
|
cp -f asm_adsp219x.so $(R2_PLUGINS)/
|
|
|
|
uninstall:
|
|
rm -f $(R2_PLUGINS)/asm_adsp219x.so
|
|
|
|
clean:
|
|
rm -f asm_adsp219x.so
|
|
|
|
.PHONY: all test install uninstall clean
|