radare2/libr/asm/Makefile

37 lines
685 B
Makefile
Raw Normal View History

2012-08-14 13:14:54 +02:00
include ../../global.mk
NAME=r_asm
2016-06-17 12:14:39 +02:00
DEPS=r_syscall r_lang r_util r_parse
2016-10-27 01:02:26 +02:00
DEPS+=r_flag r_cons r_reg
2019-06-13 19:12:51 +02:00
CFLAGS+=-DR2_PLUGIN_INCORE -Iarch/include -Iarch -I../../shlr
CURDIR=p/
2012-08-14 13:14:54 +02:00
include $(TOP)/libr/config.mk
2014-06-24 12:48:29 +02:00
include p/capstone.mk
LDFLAGS+=${CS_LDFLAGS}
2017-05-10 00:34:05 +02:00
include $(STOP)/java/deps.mk
2014-06-24 12:48:29 +02:00
2012-10-11 13:09:33 +02:00
.PHONY: all plugins
2014-03-08 01:18:45 +01:00
EXTRA_CLEAN=doclean
2012-10-11 13:09:33 +02:00
all: plugins
2014-03-08 01:18:45 +01:00
doclean:
@cd d && ${MAKE} clean
2014-03-18 02:21:52 +01:00
@cd p && ${MAKE} clean
rm -f `find arch/| grep '\.o$$'`
2014-03-08 01:18:45 +01:00
2012-10-11 13:09:33 +02:00
plugins: ${LIBSO} ${LIBAR}
${MAKE} -C d all
${MAKE} -C p all
2012-10-11 13:09:33 +02:00
include ${STATIC_ASM_PLUGINS}
STATIC_OBJS=$(subst ..,p/..,$(subst asm_,p/asm_,$(STATIC_OBJ)))
OBJS=${STATIC_OBJS} asm.o code.o op.o
2012-11-27 19:03:09 +01:00
# hack to b
OBJS+=${SHARED2_OBJ}
2012-10-11 13:09:33 +02:00
2012-08-14 13:14:54 +02:00
include $(TOP)/libr/rules.mk