radare2/libr/asm/Makefile

41 lines
770 B
Makefile
Raw Normal View History

2012-08-14 11:14:54 +00:00
include ../../global.mk
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
CURDIR=p/
2012-08-14 11:14:54 +00:00
include $(TOP)/libr/config.mk
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
endif
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