radare2/libr/anal/Makefile

43 lines
1.0 KiB
Makefile
Raw Normal View History

2012-10-03 23:20:00 +00:00
include ../config.mk
2012-08-14 11:14:54 +00:00
NAME=r_anal
EXTRA_CLEAN=clean2
DEPS=r_util r_db r_lib r_reg r_syscall r_diff r_db
# r_core (commented as it would be recursive)
CFLAGS*=HAVE_CPARSE=$(HAVE_CPARSE)
CFLAGS+=-DCORELIB -Iarch -I$(TOP)/shlr
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
include ${STATIC_ANAL_PLUGINS}
STATIC_OBJS=$(addprefix $(LTOP)/anal/p/,$(STATIC_OBJ))
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
OBJLIBS+=hint.o vm.o anal.o data.o xrefs.o code.o
ifeq ($(HAVE_CPARSE),1)
CPARSE_OBJS=cparse/cparse.o cparse/lex.yy.o cparse/tree.o
CPARSE_OBJS+=cparse/gen.o cparse/error.o cparse/symset.o
CPARSE_OBJS+=cparse/pplex.o cparse/exptree.o cparse/pp.o
endif
OBJS=${STATIC_OBJS} ${OBJLIBS} ${CPARSE_OBJS}
pre:
@cd cparse && ${MAKE} all
2012-09-03 07:34:38 +00:00
@cd $(TOP)/shlr && ${MAKE}
clean2:
@cd cparse && ${MAKE} clean
include $(LTOP)/rules.mk