mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-12 07:26:42 +00:00
40 lines
741 B
Makefile
40 lines
741 B
Makefile
include ../../global.mk
|
|
|
|
NAME=r_asm
|
|
DEPS=r_util r_parse r_db r_syscall r_lang
|
|
CFLAGS+=-DCORELIB -Iarch/include -Iarch -I../../shlr
|
|
CURDIR=p/
|
|
|
|
include $(TOP)/libr/config.mk
|
|
|
|
ifeq ($(WITHNONPIC),1)
|
|
# do not statically link capstone when creating libars
|
|
else
|
|
include p/capstone.mk
|
|
LDFLAGS+=${CS_LDFLAGS}
|
|
LINK+=$(SHLR)/java/libr_java.a
|
|
endif
|
|
|
|
.PHONY: all plugins
|
|
|
|
EXTRA_CLEAN=doclean
|
|
|
|
all: plugins
|
|
|
|
doclean:
|
|
@cd d && ${MAKE} clean
|
|
@cd p && ${MAKE} clean
|
|
rm -f `find arch/| grep '\.o$$'`
|
|
|
|
plugins: ${LIBSO} ${LIBAR}
|
|
${MAKE} -C d all
|
|
${MAKE} -C p all
|
|
|
|
include ${STATIC_ASM_PLUGINS}
|
|
STATIC_OBJS=$(subst ..,p/..,$(subst asm_,p/asm_,$(STATIC_OBJ)))
|
|
OBJS=${STATIC_OBJS} asm.o code.o
|
|
# hack to b
|
|
OBJS+=${SHARED2_OBJ}
|
|
|
|
include $(TOP)/libr/rules.mk
|