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
35 lines
1.0 KiB
Makefile
35 lines
1.0 KiB
Makefile
#
|
|
# diStorm3 (Linux Port)
|
|
#
|
|
|
|
TARGET_BASE = libdistorm3.so
|
|
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 = tcc
|
|
CFLAGS += -fPIC -Wall -DSUPPORT_64BIT_OFFSET -DDISTORM_STATIC -std=c99
|
|
LDFLAGS += -shared
|
|
PREFIX = /usr/local
|
|
# The lib SONAME version:
|
|
LIB_S_VERSION = 3
|
|
# The lib real version:
|
|
LIB_R_VERSION = 3.4.0
|
|
LDFLAGS += -Wl,-soname,${TARGET_BASE}.${LIB_S_VERSION}
|
|
DESTDIR =
|
|
TARGET_NAME = ${TARGET_BASE}.${LIB_R_VERSION}
|
|
|
|
all: clib
|
|
|
|
clean:
|
|
/bin/rm -rf ../../src/*.o ${TARGET_NAME} ../../distorm3.a ./../*.o
|
|
|
|
clib: ${COBJS}
|
|
${CC} ${CFLAGS} ${VERSION} ${COBJS} ${LDFLAGS} -o ${TARGET_NAME}
|
|
tcc -ar rs ../../distorm3.a ${COBJS}
|
|
|
|
install: ${TARGET_NAME}
|
|
install -D -s ${TARGET_NAME} ${DESTDIR}${PREFIX}/lib/${TARGET_NAME}
|
|
ln -sf ${DESTDIR}${PREFIX}/lib/${TARGET_NAME} ${DESTDIR}${PREFIX}/lib/${TARGET_BASE}
|
|
@echo "... running ldconfig might be smart ..."
|
|
|
|
.c.o:
|
|
${CC} ${CFLAGS} ${VERSION} -c $< -o $@
|