2012-08-14 13:14:54 +02:00
|
|
|
include ../../global.mk
|
|
|
|
|
2009-02-16 00:57:03 +01:00
|
|
|
NAME=r_anal
|
2012-07-20 17:14:28 +02:00
|
|
|
EXTRA_CLEAN=clean2
|
2012-09-03 01:27:52 +02:00
|
|
|
DEPS=r_util r_db r_lib r_reg r_syscall r_diff
|
|
|
|
# r_core (commented as it would be recursive)
|
2012-09-12 19:35:27 +02:00
|
|
|
CFLAGS*=HAVE_CPARSE=$(HAVE_CPARSE)
|
2012-08-14 15:44:17 +02:00
|
|
|
CFLAGS+=-DCORELIB -Iarch -I$(TOP)/shlr
|
2010-02-28 20:07:36 +01:00
|
|
|
|
2012-09-03 01:27:52 +02:00
|
|
|
include $(LTOP)/config.mk
|
2010-02-28 20:07:36 +01:00
|
|
|
|
2010-05-24 11:15:32 +02:00
|
|
|
LDFLAGS+=${BN_LIBS}
|
|
|
|
|
2012-08-10 15:59:37 +02:00
|
|
|
foo:
|
|
|
|
for a in pre libr_anal.${EXT_SO} libr_anal.${EXT_AR} plugins ; do ${MAKE} $$a ; done
|
2010-02-28 20:07:36 +01:00
|
|
|
|
|
|
|
include ${STATIC_ANAL_PLUGINS}
|
2012-08-14 15:44:17 +02:00
|
|
|
STATIC_OBJS=$(addprefix $(LTOP)/anal/p/,$(STATIC_OBJ))
|
2011-09-03 05:09:31 +02: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-09-02 20:39:34 +04:00
|
|
|
|
2012-09-12 19:35:27 +02:00
|
|
|
ifeq ($(HAVE_CPARSE),1)
|
2012-09-02 20:39:34 +04:00
|
|
|
CPARSE_OBJS=cparse/cparse.o cparse/lex.yy.o cparse/tree.o cparse/gen.o cparse/error.o cparse/symset.o cparse/pplex.o cparse/exptree.o cparse/pp.o
|
2012-09-12 19:35:27 +02:00
|
|
|
endif
|
2012-09-02 20:39:34 +04:00
|
|
|
|
2012-10-03 14:31:35 +02:00
|
|
|
OBJS=${STATIC_OBJS} ${OBJLIBS} ${CPARSE_OBJS}
|
2012-07-17 07:08:52 +04:00
|
|
|
|
2010-02-28 20:07:36 +01:00
|
|
|
pre:
|
2012-08-14 15:44:17 +02:00
|
|
|
@cd cparse && ${MAKE} all
|
2012-09-03 09:34:38 +02:00
|
|
|
@cd $(TOP)/shlr && ${MAKE}
|
2012-09-03 03:07:16 +02:00
|
|
|
|
|
|
|
#@if [ ! -e libr_anal.${EXT_SO} ]; then rm -f ${STATIC_OBJS} ; fi
|
2010-02-28 20:07:36 +01:00
|
|
|
|
2012-07-20 17:14:28 +02:00
|
|
|
clean2:
|
2012-08-14 15:44:17 +02:00
|
|
|
@cd cparse && ${MAKE} clean
|
2012-07-20 17:14:28 +02:00
|
|
|
|
2010-02-28 20:07:36 +01:00
|
|
|
plugins:
|
2011-05-21 14:27:46 +02:00
|
|
|
@${MAKE} -C p all
|
2009-02-16 00:57:03 +01:00
|
|
|
|
2012-09-03 01:27:52 +02:00
|
|
|
include $(LTOP)/rules.mk
|