From 306cc36d80b5d0fe9ac9b3d4da1eadf235e16dd2 Mon Sep 17 00:00:00 2001 From: satk0 Date: Sun, 19 May 2024 20:29:15 +0200 Subject: [PATCH] Add possibility to build afen plugin --- Makefile.acr | 1 + afen/Makefile | 16 ++++++++-------- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/Makefile.acr b/Makefile.acr index 9f7f411f3..0d0541fcf 100644 --- a/Makefile.acr +++ b/Makefile.acr @@ -15,6 +15,7 @@ help: @echo "Usage make [target] .. Targets:" @echo " all - build everything" @echo " baleful - build baleful r2 plugin" + @echo " afen - build afen r2 plugin" @echo " asm - build armthumb, ppc, psosvm, x86bea, m68k plugins" @echo " io - build io plugins" @echo " anal - build analysis plugins (RAnal)" diff --git a/afen/Makefile b/afen/Makefile index 4f7b26b7c..ad04abeff 100644 --- a/afen/Makefile +++ b/afen/Makefile @@ -3,20 +3,20 @@ CFLAGS+=$(shell pkg-config --cflags r_core) LDFLAGS+=$(shell pkg-config --libs r_core) R2_USER_PLUGINS=$(shell r2 -HR2_USER_PLUGINS) -CORE_HELLO=src/core_hello.$(LIBEXT) -OBJS=src/core_hello.o +CORE_AFEN=src/libcoreafen.$(LIBEXT) +OBJS=src/main.o -all: $(CORE_HELLO) +all: $(CORE_AFEN) -$(CORE_HELLO): $(OBJS) - r2pm -r $(CC) $(LDFLAGS) -shared -fPIC -o $(CORE_HELLO) $(OBJS) +$(CORE_AFEN): $(OBJS) + r2pm -r $(CC) $(LDFLAGS) -shared -fPIC -o $(CORE_AFEN) $(OBJS) clean: - rm -f $(OBJS) $(CORE_HELLO) + rm -f $(OBJS) $(CORE_AFEN) user-install install: mkdir -p $(R2_USER_PLUGINS) - cp -f $(CORE_HELLO) $(R2_USER_PLUGINS) + cp -f $(CORE_AFEN) $(R2_USER_PLUGINS) user-uninstall uninstall: - rm -f $(R2_USER_PLUGINS)/$(CORE_HELLO) + rm -f $(R2_USER_PLUGINS)/$(CORE_AFEN)