2012-10-03 23:20:00 +00:00
|
|
|
include ../config.mk
|
2012-08-14 11:14:54 +00:00
|
|
|
|
2009-02-15 23:57:03 +00:00
|
|
|
NAME=r_anal
|
2013-04-18 01:58:44 +00:00
|
|
|
DEPS=r_util r_db r_lib r_reg r_syscall r_diff r_db
|
2012-09-02 23:27:52 +00:00
|
|
|
# r_core (commented as it would be recursive)
|
2012-09-12 17:35:27 +00:00
|
|
|
CFLAGS*=HAVE_CPARSE=$(HAVE_CPARSE)
|
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}
|
|
|
|
|
2012-10-03 23:20:00 +00:00
|
|
|
.PHONY: pre libs ${EXTRA_CLEAN}
|
|
|
|
|
|
|
|
all: plugins
|
|
|
|
|
|
|
|
plugins: libr_anal.${EXT_SO} libr_anal.${EXT_AR}
|
|
|
|
@${MAKE} -C p all
|
|
|
|
|
|
|
|
libr_anal.${EXT_SO} libr_anal.${EXT_AR}: pre
|
2010-02-28 19:07:36 +00:00
|
|
|
|
|
|
|
include ${STATIC_ANAL_PLUGINS}
|
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
|
|
|
|
OBJLIBS+=cond.o value.o cc.o diff.o type.o fcnstore.o
|
2013-05-20 01:00:49 +00:00
|
|
|
OBJLIBS+=hint.o vm.o anal.o data.o xrefs.o esil.o
|
2012-09-02 16:39:34 +00:00
|
|
|
|
2012-10-03 12:31:35 +00:00
|
|
|
OBJS=${STATIC_OBJS} ${OBJLIBS} ${CPARSE_OBJS}
|
2012-07-17 03:08:52 +00:00
|
|
|
|
2010-02-28 19:07:36 +00:00
|
|
|
pre:
|
2012-09-03 07:34:38 +00:00
|
|
|
@cd $(TOP)/shlr && ${MAKE}
|
2012-09-03 01:07:16 +00:00
|
|
|
|
2012-09-02 23:27:52 +00:00
|
|
|
include $(LTOP)/rules.mk
|