radare2/libr/asm/Makefile

80 lines
1.5 KiB
Makefile
Raw Normal View History

2012-08-14 11:14:54 +00:00
include ../../global.mk
NAME=r_asm
R2DEPS=r_syscall r_lang r_util r_parse
R2DEPS+=r_flag r_cons r_reg
2019-06-13 17:12:51 +00:00
CFLAGS+=-DR2_PLUGIN_INCORE -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}
2017-05-09 22:34:05 +00:00
include $(STOP)/java/deps.mk
include $(STOP)/capstone.mk
2014-06-24 10:48:29 +00:00
.PHONY: alle plugins
alle:
$(MAKE) gperfs
$(MAKE) -C arch/arm/v35arm64
$(MAKE) plugins
2014-03-08 00:18:45 +00:00
SDB_PATH=../../../shlr/sdb
SDB=$(SDB_PATH)/sdb
gperfs:
PATH=$(SDB_PATH):$$PATH $(MAKE) -C d all
PATH=$(SDB_PATH):$$PATH cd d && for a in *.sdb ; do test $$a -nt `echo $$a.c|sed -e 's,.sdb,,'`; if [ $$? = 0 ]; then $(SDB) -t -C $$a ; fi ; done
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
alle2:
${MAKE} -C d all
${MAKE} -C p all
${MAKE} $(LIBSO)
${MAKE} $(LIBAR)
EXTRA_CLEAN=doclean
$(EXTRA_CLEAN):
$(MAKE) -C d clean
$(MAKE) -C p clean
rm -f `find arch/| grep '\.o$$'`
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 acode.o aop.o binutils_as.o aplugs.o
2012-11-27 18:03:09 +00:00
OBJS+=${SHARED2_OBJ}
2012-10-11 11:09:33 +00:00
ifeq ($(HAVE_GPERF),1)
OBJS+=d/6502.o
2021-12-17 11:10:53 +00:00
OBJS+=d/8051.o
OBJS+=d/LH5801.o
OBJS+=d/arc.o
OBJS+=d/arm.o
OBJS+=d/avr.o
OBJS+=d/chip8.o
2021-12-17 11:10:53 +00:00
OBJS+=d/i4004.o
OBJS+=d/i8080.o
OBJS+=d/java.o
OBJS+=d/lm32.o
OBJS+=d/m68k.o
OBJS+=d/malbolge.o
OBJS+=d/mips.o
2021-12-17 11:10:53 +00:00
OBJS+=d/msp430.o
OBJS+=d/pic18c.o
OBJS+=d/ppc.o
2021-12-17 11:10:53 +00:00
OBJS+=d/propeller.o
OBJS+=d/riscv.o
OBJS+=d/sh.o
OBJS+=d/sparc.o
OBJS+=d/v810.o
OBJS+=d/v850.o
2021-12-17 11:10:53 +00:00
OBJS+=d/x86.o
OBJS+=d/z80.o
endif
2012-08-14 11:14:54 +00:00
include $(TOP)/libr/rules.mk