radare2/libr/anal/Makefile

30 lines
790 B
Makefile
Raw Normal View History

NAME=r_anal
EXTRA_CLEAN=clean2
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
include ../config.mk
LDFLAGS+=${BN_LIBS}
foo:
for a in pre libr_anal.${EXT_SO} libr_anal.${EXT_AR} plugins ; do ${MAKE} $$a ; done
include ${STATIC_ANAL_PLUGINS}
STATIC_OBJS=$(subst ../ar,p/../ar,$(subst anal_,p/anal_,$(STATIC_OBJ)))
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
CPARSE_OBJS=./cparse/cparse.o ./cparse/lex.yy.o ./cparse/tree.o
OBJ=${STATIC_OBJS} ${OBJLIBS} ${CPARSE_OBJS}
pre:
${MAKE} -C cparse
@if [ ! -e libr_anal.${EXT_SO} ]; then rm -f ${STATIC_OBJS} ; fi
clean2:
${MAKE} -C cparse clean
plugins:
@${MAKE} -C p all
include ../rules.mk