Some checks failed
sm-rpc / build (Debug, aarch64-linux-gnu) (push) Failing after 13m15s
sm-rpc / build (Release, mipsel-linux-gnu) (push) Failing after 13m1s
sm-rpc / build (Release, host.gcc) (push) Failing after 13m14s
sm-rpc / build (Release, arm-linux-gnueabihf) (push) Failing after 13m35s
sm-rpc / build (Release, aarch64-linux-gnu) (push) Failing after 13m56s
sm-rpc / build (Debug, mipsel-linux-gnu) (push) Failing after 14m22s
sm-rpc / build (Debug, host.gcc) (push) Failing after 14m49s
sm-rpc / build (Debug, arm-linux-gnueabihf) (push) Failing after 15m13s
32 lines
903 B
Makefile
32 lines
903 B
Makefile
#
|
|
# diStorm3 (Mac Port)
|
|
#
|
|
|
|
DISTORM_MODE ?= DISTORM_DYNAMIC
|
|
TARGET = libdistorm3.dylib
|
|
PYTHON_BUILD_DIR = ../../Python/macosx-x86
|
|
COBJS = ../../src/mnemonics.o ../../src/textdefs.o ../../src/prefix.o ../../src/operands.o ../../src/insts.o ../../src/instructions.o ../../src/distorm.o ../../src/decoder.o
|
|
CC = gcc
|
|
CFLAGS = -arch x86_64 -O2 -Wall -fPIC -DSUPPORT_64BIT_OFFSET -D${DISTORM_MODE}
|
|
ifeq ($(DISTORM_FAT), 1)
|
|
CFLAGS += -arch i386
|
|
endif
|
|
|
|
all: clib
|
|
|
|
clean:
|
|
/bin/rm -rf ../../src/*.o ${TARGET} ../../libdistorm3.dylib ../../distorm3.a ../../*.a
|
|
|
|
clib: ${COBJS}
|
|
ifeq '$(DISTORM_MODE)' 'DISTORM_DYNAMIC'
|
|
${CC} ${CFLAGS} ${VERSION} ${COBJS} -fPIC -dynamiclib -o ${TARGET}
|
|
[ -d ${PYTHON_BUILD_DIR} ] && rm -rf ${PYTHON_BUILD_DIR} || true
|
|
mkdir ${PYTHON_BUILD_DIR}
|
|
cp ${TARGET} ${PYTHON_BUILD_DIR}/
|
|
else
|
|
ar rs ../../distorm3.a ${COBJS}
|
|
endif
|
|
|
|
.c.o:
|
|
${CC} ${CFLAGS} ${VERSION} -c $< -o $@
|