2012-08-14 11:14:54 +00:00
|
|
|
include ../../global.mk
|
|
|
|
|
2009-02-05 21:08:46 +00:00
|
|
|
NAME=r_asm
|
2016-06-17 10:14:39 +00:00
|
|
|
DEPS=r_syscall r_lang r_util r_parse
|
2016-06-06 15:30:07 +00:00
|
|
|
DEPS+=r_flags r_cons r_reg r_anal
|
2012-08-06 12:25:31 +00:00
|
|
|
CFLAGS+=-DCORELIB -Iarch/include -Iarch -I../../shlr
|
2014-11-10 14:59:43 +00:00
|
|
|
CURDIR=p/
|
2009-03-08 23:49:15 +00:00
|
|
|
|
2012-08-14 11:14:54 +00:00
|
|
|
include $(TOP)/libr/config.mk
|
2010-01-15 16:02:04 +00:00
|
|
|
|
2015-12-28 01:00:54 +00:00
|
|
|
ifeq ($(WITHNONPIC),1)
|
|
|
|
# do not statically link capstone when creating libars
|
|
|
|
else
|
2014-06-24 10:48:29 +00:00
|
|
|
include p/capstone.mk
|
|
|
|
LDFLAGS+=${CS_LDFLAGS}
|
2014-06-25 03:03:05 +00:00
|
|
|
LINK+=$(SHLR)/java/libr_java.a
|
2015-12-28 01:00:54 +00:00
|
|
|
endif
|
2014-06-24 10:48:29 +00:00
|
|
|
|
2012-10-11 11:09:33 +00:00
|
|
|
.PHONY: all plugins
|
2009-03-08 23:49:15 +00:00
|
|
|
|
2014-03-08 00:18:45 +00:00
|
|
|
EXTRA_CLEAN=doclean
|
|
|
|
|
2012-10-11 11:09:33 +00:00
|
|
|
all: plugins
|
2009-08-14 00:37:18 +00:00
|
|
|
|
2014-03-08 00:18:45 +00:00
|
|
|
doclean:
|
|
|
|
@cd d && ${MAKE} clean
|
2014-03-18 01:21:52 +00:00
|
|
|
@cd p && ${MAKE} clean
|
|
|
|
rm -f `find arch/| grep '\.o$$'`
|
2014-03-08 00:18:45 +00:00
|
|
|
|
2012-10-11 11:09:33 +00:00
|
|
|
plugins: ${LIBSO} ${LIBAR}
|
2014-11-10 14:59:43 +00:00
|
|
|
${MAKE} -C d all
|
|
|
|
${MAKE} -C p all
|
2009-02-17 01:46:52 +00:00
|
|
|
|
2012-10-11 11:09:33 +00:00
|
|
|
include ${STATIC_ASM_PLUGINS}
|
|
|
|
STATIC_OBJS=$(subst ..,p/..,$(subst asm_,p/asm_,$(STATIC_OBJ)))
|
|
|
|
OBJS=${STATIC_OBJS} asm.o code.o
|
2012-11-27 18:03:09 +00:00
|
|
|
# hack to b
|
|
|
|
OBJS+=${SHARED2_OBJ}
|
2012-10-11 11:09:33 +00:00
|
|
|
|
2012-08-14 11:14:54 +00:00
|
|
|
include $(TOP)/libr/rules.mk
|