2012-08-14 13:14:54 +02:00
|
|
|
include ../../global.mk
|
|
|
|
|
2009-02-05 22:08:46 +01:00
|
|
|
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
|
2014-11-10 15:59:43 +01:00
|
|
|
CURDIR=p/
|
2009-03-08 23:49:15 +00:00
|
|
|
|
2012-08-14 13:14:54 +02:00
|
|
|
include $(TOP)/libr/config.mk
|
2010-01-15 17:02:04 +01:00
|
|
|
|
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
|
2009-03-08 23:49:15 +00:00
|
|
|
|
2014-03-08 01:18:45 +01:00
|
|
|
EXTRA_CLEAN=doclean
|
|
|
|
|
2012-10-11 13:09:33 +02:00
|
|
|
all: plugins
|
2009-08-14 00:37:18 +00:00
|
|
|
|
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}
|
2014-11-10 15:59:43 +01:00
|
|
|
${MAKE} -C d all
|
|
|
|
${MAKE} -C p all
|
2009-02-17 02:46:52 +01:00
|
|
|
|
2012-10-11 13:09:33 +02:00
|
|
|
include ${STATIC_ASM_PLUGINS}
|
|
|
|
STATIC_OBJS=$(subst ..,p/..,$(subst asm_,p/asm_,$(STATIC_OBJ)))
|
2018-08-19 03:24:10 +02:00
|
|
|
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
|