mirror of
https://github.com/radareorg/radare2.git
synced 2025-01-24 14:54:54 +00:00
43 lines
1.0 KiB
Makefile
43 lines
1.0 KiB
Makefile
include ../config.mk
|
|
|
|
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}
|
|
|
|
.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 esil.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
|
|
@cd $(TOP)/shlr && ${MAKE}
|
|
|
|
clean2:
|
|
@cd cparse && ${MAKE} clean
|
|
|
|
include $(LTOP)/rules.mk
|