2012-10-03 23:20:00 +00:00
|
|
|
include ../config.mk
|
2016-01-22 19:53:01 +00:00
|
|
|
|
2015-10-30 02:07:22 +00:00
|
|
|
EXTRA_TARGETS+=do
|
|
|
|
EXTRA_CLEAN=doclean
|
2012-08-14 11:14:54 +00:00
|
|
|
|
2009-02-15 23:57:03 +00:00
|
|
|
NAME=r_anal
|
2015-06-01 23:21:56 +00:00
|
|
|
DEPS=r_util r_db r_reg r_syscall
|
2012-08-14 13:44:17 +00:00
|
|
|
CFLAGS+=-DCORELIB -Iarch -I$(TOP)/shlr
|
2010-02-28 19:07:36 +00:00
|
|
|
|
2010-05-24 09:15:32 +00:00
|
|
|
LDFLAGS+=${BN_LIBS}
|
|
|
|
|
2014-11-10 15:40:47 +00:00
|
|
|
CURDIR=p/
|
|
|
|
|
2014-06-24 10:48:29 +00:00
|
|
|
include p/capstone.mk
|
|
|
|
LDFLAGS+=$(CS_LDFLAGS)
|
2014-06-25 02:40:15 +00:00
|
|
|
LDFLAGS+=$(SHLR)/java/libr_java.a
|
|
|
|
|
2014-03-07 02:16:10 +00:00
|
|
|
.PHONY: all plugins libs ${EXTRA_CLEAN}
|
2012-10-03 23:20:00 +00:00
|
|
|
|
|
|
|
all: plugins
|
|
|
|
|
2013-08-26 00:43:15 +00:00
|
|
|
plugins: ${LIBSO} ${LIBAR}
|
2012-10-03 23:20:00 +00:00
|
|
|
@${MAKE} -C p all
|
|
|
|
|
2010-02-28 19:07:36 +00:00
|
|
|
include ${STATIC_ANAL_PLUGINS}
|
2014-03-07 02:16:10 +00:00
|
|
|
|
2012-08-14 13:44:17 +00:00
|
|
|
STATIC_OBJS=$(addprefix $(LTOP)/anal/p/,$(STATIC_OBJ))
|
2013-01-22 04:06:12 +00:00
|
|
|
OBJLIBS=meta.o reflines.o ref.o op.o fcn.o bb.o var.o
|
2013-07-31 22:39:19 +00:00
|
|
|
OBJLIBS+=cond.o value.o cc.o diff.o types.o fcnstore.o
|
2013-12-31 04:30:39 +00:00
|
|
|
OBJLIBS+=hint.o vm.o anal.o data.o xrefs.o esil.o sign.o
|
2015-07-21 04:06:00 +00:00
|
|
|
OBJLIBS+=anal_ex.o switch.o state.o cycles.o
|
2015-02-22 10:18:40 +00:00
|
|
|
OBJLIBS+=esil_stats.o esil_trace.o flirt.o labels.o
|
2015-06-30 08:50:46 +00:00
|
|
|
OBJLIBS+=esil2reil.o pin.o
|
2012-09-02 16:39:34 +00:00
|
|
|
|
2015-10-22 22:30:33 +00:00
|
|
|
OBJS=${STATIC_OBJS} ${OBJLIBS}
|
2012-07-17 03:08:52 +00:00
|
|
|
|
2015-03-11 01:59:33 +00:00
|
|
|
test tests: tests-esil
|
|
|
|
|
|
|
|
tests-esil:
|
|
|
|
cd ../../radare2-regressions ; \
|
|
|
|
sh run_tests.sh t.esil
|
|
|
|
|
2015-10-30 02:07:22 +00:00
|
|
|
.PHONY: do doclean
|
|
|
|
|
|
|
|
do:
|
|
|
|
${MAKE} -C d
|
|
|
|
|
|
|
|
doclean:
|
|
|
|
${MAKE} -C d clean
|
|
|
|
|
2012-09-02 23:27:52 +00:00
|
|
|
include $(LTOP)/rules.mk
|