radare2/libr/asm/Makefile

36 lines
652 B
Makefile
Raw Normal View History

2012-08-14 11:14:54 +00:00
include ../../global.mk
NAME=r_asm
DEPS=r_util r_parse r_db r_syscall r_lang
2012-08-06 12:25:31 +00:00
CFLAGS+=-DCORELIB -Iarch/include -Iarch -I../../shlr
CURDIR=p/
2012-08-14 11:14:54 +00:00
include $(TOP)/libr/config.mk
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
2014-03-08 00:18:45 +00:00
EXTRA_CLEAN=doclean
2012-10-11 11:09:33 +00:00
all: plugins
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}
${MAKE} -C d all
${MAKE} -C p all
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