mirror of
https://git.freebsd.org/ports.git
synced 2025-07-07 12:29:16 -04:00
80x86 instructions in 64 bits (AMD64, X86-64) and both in 16 and 32 bits. In addition, it disassembles FPU, MMX, SSE, SSE2, SSE3, SSE4, 3DNow! (w/ extensions), new x86-64 instruction sets, VMX, and AMD's SVM! diStorm was written to decode quickly every instruction as accurately as possible. Robust decoding, while taking special care for valid or unused prefixes, is what makes this disassembler powerful, especially for research. Another benefit that might come in handy is that the module was written as multi-threaded, which means you could disassemble several streams or more simultaneously. WWW: http://www.ragestorm.net/distorm/ PR: ports/107977 Submitted by: Lutz Boehne <lboehne at damogran.de>
22 lines
928 B
Text
22 lines
928 B
Text
--- Makefile.orig Sat Jun 3 19:24:48 2006
|
|
+++ Makefile Wed Jan 10 12:45:23 2007
|
|
@@ -5,8 +5,7 @@
|
|
TARGET = libdistorm64.so
|
|
COBJS = ../../src/x86defs.o ../../src/wstring.o ../../src/textdefs.o ../../src/prefix.o ../../src/operands.o ../../src/insts.o ../../src/instructions.o ../../src/distorm.o ../../src/decoder.o
|
|
PYOBJS = ../../src/x86defs.o ../../src/wstring.o ../../src/textdefs.o ../../src/pydistorm.o ../../src/prefix.o ../../src/operands.o ../../src/insts.o ../../src/instructions.o ../../src/decoder.o
|
|
-CC = gcc
|
|
-CFLAGS = -O2 -Wall -fPIC
|
|
+CFLAGS+= -fPIC -I${LOCALBASE}/include
|
|
|
|
all: clib py
|
|
|
|
@@ -21,8 +20,7 @@
|
|
${CC} ${CFLAGS} ${VERSION} ${PYOBJS} -fPIC -shared -o ${TARGET}
|
|
|
|
install: libdistorm64.so
|
|
- install -s ${TARGET} /usr/local/lib
|
|
- @echo "... running ldconfig might be smart ..."
|
|
+ ${INSTALL} -s libdistorm64.so XXPYTHON_LIBDIRXX/lib-dynload/distorm.so
|
|
|
|
.c.o:
|
|
${CC} ${CFLAGS} ${VERSION} -c $< -o $@
|