2012-08-14 11:14:54 +00:00
|
|
|
include ../../global.mk
|
|
|
|
|
2009-02-05 21:08:46 +00:00
|
|
|
NAME=r_asm
|
2014-01-18 01:52:49 +00:00
|
|
|
DEPS=r_util r_parse r_db r_syscall
|
2012-08-06 12:25:31 +00:00
|
|
|
CFLAGS+=-DCORELIB -Iarch/include -Iarch -I../../shlr
|
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
|
|
|
|
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
|
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}
|
2011-11-12 00:52:31 +00:00
|
|
|
@cd d && ${MAKE}
|
2011-05-21 12:27:46 +00:00
|
|
|
@cd p && ${MAKE} 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
|