Skip to content

Commit

Permalink
Add possibility to build afen plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
satk0 authored and trufae committed May 20, 2024
1 parent 39f897a commit 306cc36
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
1 change: 1 addition & 0 deletions Makefile.acr
Original file line number Diff line number Diff line change
Expand Up @@ -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)"
Expand Down
16 changes: 8 additions & 8 deletions afen/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 306cc36

Please sign in to comment.