From 1947df56fd8e2618be41f086d713fd8018a11d47 Mon Sep 17 00:00:00 2001 From: pancake Date: Fri, 15 Sep 2023 16:27:33 +0200 Subject: [PATCH] Missing file --- libr/arch/hexagon/Makefile | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 libr/arch/hexagon/Makefile diff --git a/libr/arch/hexagon/Makefile b/libr/arch/hexagon/Makefile new file mode 100644 index 000000000..875d0fee8 --- /dev/null +++ b/libr/arch/hexagon/Makefile @@ -0,0 +1,22 @@ +SO=$(shell r2 -H R2_LIBEXT) +PD=$(shell r2 -H R2_USER_PLUGINS) + +CFLAGS+=$(shell pkg-config --cflags r_util r_arch) +LDFLAGS+=$(shell pkg-config --libs r_util r_arch) +CFLAGS+=-g + +OBJS=arch_hexagon.o +OBJS+=hexagon.o +OBJS+=hexagon_anal.o +OBJS+=hexagon_disas.o + + +all: arch_hexagon.${SO} + +arch_hexagon.$(SO): $(OBJS) + $(CC) -shared -fPIC -o arch_hexagon.$(SO) $(OBJS) $(LDFLAGS) + rm -f $(PD)/arch_hexagon.$(SO) + cp -f arch_hexagon.$(SO) $(PD)/arch_hexagon.$(SO) + +clean: + rm -f arch_hexagon.$(SO) $(OBJS)