radare2/shlr/udis86/Makefile
2017-05-09 14:25:57 +02:00

24 lines
482 B
Makefile

include ../../global.mk
include $(TOP)/libr/config.mk
PYTHON=python2
SRC=$(shell ls *.c)
OUT=$(subst .c,.o,$(SRC))
CFLAGS+=-DHAVE_STRING_H=1
all: $(OUT)
$(OUT):
$(CC) $(CFLAGS) $(LDFLAGS) -c `echo $@|sed -e 's,\.o,\.c,g'` -o $@
sync:
rm -rf tmp
mkdir -p tmp
git clone --depth 1 git://github.com/radare/udis86.git
cd udis86/libudis86 ; ${PYTHON} ../scripts/ud_itab.py ../docs/x86/optable.xml .
cp -f udis86/libudis86/*.[ch] .
rm -rf udis86
clean mrproper:
rm -f *.o *.d