2009-02-15 23:57:03 +00:00
|
|
|
NAME=r_anal
|
2012-07-20 15:14:28 +00:00
|
|
|
EXTRA_CLEAN=clean2
|
2012-07-18 09:29:24 +00:00
|
|
|
DEPS=r_util r_db r_lib r_reg r_syscall r_diff # r_core (commented as it would be recursive)
|
2012-08-06 12:25:31 +00:00
|
|
|
CFLAGS+=-DCORELIB -Iarch -I../../shlr
|
2010-02-28 19:07:36 +00:00
|
|
|
|
|
|
|
include ../config.mk
|
|
|
|
|
2010-05-24 09:15:32 +00:00
|
|
|
LDFLAGS+=${BN_LIBS}
|
|
|
|
|
2012-08-10 13:59:37 +00:00
|
|
|
foo:
|
|
|
|
for a in pre libr_anal.${EXT_SO} libr_anal.${EXT_AR} plugins ; do ${MAKE} $$a ; done
|
2010-02-28 19:07:36 +00:00
|
|
|
|
|
|
|
include ${STATIC_ANAL_PLUGINS}
|
2010-05-23 12:31:18 +00:00
|
|
|
STATIC_OBJS=$(subst ../ar,p/../ar,$(subst anal_,p/anal_,$(STATIC_OBJ)))
|
2011-09-03 03:09:31 +00:00
|
|
|
OBJLIBS=meta.o reflines.o ref.o op.o fcn.o bb.o var.o anal.o cond.o value.o cc.o diff.o type.o fcnstore.o
|
2012-07-17 03:08:52 +00:00
|
|
|
CPARSE_OBJS=./cparse/cparse.o ./cparse/lex.yy.o ./cparse/tree.o
|
|
|
|
OBJ=${STATIC_OBJS} ${OBJLIBS} ${CPARSE_OBJS}
|
|
|
|
|
2010-02-28 19:07:36 +00:00
|
|
|
pre:
|
2012-07-18 09:29:24 +00:00
|
|
|
${MAKE} -C cparse
|
2011-03-28 08:24:01 +00:00
|
|
|
@if [ ! -e libr_anal.${EXT_SO} ]; then rm -f ${STATIC_OBJS} ; fi
|
2010-02-28 19:07:36 +00:00
|
|
|
|
2012-07-20 15:14:28 +00:00
|
|
|
clean2:
|
|
|
|
${MAKE} -C cparse clean
|
|
|
|
|
2010-02-28 19:07:36 +00:00
|
|
|
plugins:
|
2011-05-21 12:27:46 +00:00
|
|
|
@${MAKE} -C p all
|
2009-02-15 23:57:03 +00:00
|
|
|
|
|
|
|
include ../rules.mk
|