mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-23 13:19:54 +00:00
More native mingw32 fixes
This commit is contained in:
parent
0178d0a4ed
commit
0d620bd37f
2
Makefile
2
Makefile
@ -22,7 +22,7 @@ TAR=bsdtar cvf
|
||||
TAREXT=tar.gz
|
||||
CZ=gzip -f
|
||||
endif
|
||||
PWD=$(shell pwd | sed -e 's,^/c/,/,')
|
||||
PWD=$(shell pwd)
|
||||
|
||||
all: plugins.cfg
|
||||
${MAKE} -C shlr/zip
|
||||
|
@ -7,7 +7,7 @@ PREFIX?=${PWD}/../prefix
|
||||
PFX=$(call rmdblslash,${DESTDIR}/${PREFIX})
|
||||
LFX=$(call rmdblslash,${DESTDIR}/${LIBDIR})
|
||||
IFX=$(call rmdblslash,${DESTDIR}/${INCLUDEDIR})
|
||||
PWD=$(call rmdblslash,$(shell pwd |sed -e 's,^/c/,/,'))
|
||||
PWD=$(call rmdblslash,$(shell pwd))
|
||||
|
||||
LIBS0=util hash
|
||||
LIBS1=reg cons db magic diff bp search config socket
|
||||
|
@ -1,7 +1,9 @@
|
||||
OBJ_8051=anal_8051.o
|
||||
|
||||
STATIC_OBJ+=${OBJ_8051}
|
||||
OBJ_8051+=../../../../../../../../../../../../../../../../../../../../${LTOP}/asm/arch/8051/8051.o
|
||||
#OBJ_8051+=../../../../../../../../../../../../../../../../../../../../${LTOP}/asm/arch/8051/8051.o
|
||||
#OBJ_8051+=${LTOP}/asm/arch/8051/8051.o
|
||||
OBJ_8051+=../../asm/arch/8051/8051.o
|
||||
TARGET_8051=anal_8051.${EXT_SO}
|
||||
|
||||
ALL_TARGETS+=${TARGET_8051}
|
||||
|
@ -1,7 +1,8 @@
|
||||
OBJ_CR16=anal_cr16.o
|
||||
|
||||
STATIC_OBJ+=${OBJ_CR16}
|
||||
OBJ_CR16+=../../../../../../../../../../../../../../../../../../../../${LTOP}/asm/arch/cr16/cr16_disas.o
|
||||
#OBJ_CR16+=../../../../../../../../../../../../../../../../../../../../${LTOP}/asm/arch/cr16/cr16_disas.o
|
||||
OBJ_CR16+=../../asm/arch/cr16/cr16_disas.o
|
||||
TARGET_CR16=anal_cr16.${EXT_SO}
|
||||
|
||||
ALL_TARGETS+=${TARGET_CR16}
|
||||
|
@ -1,7 +1,8 @@
|
||||
OBJ_EBC=anal_ebc.o
|
||||
|
||||
STATIC_OBJ+=${OBJ_EBC}
|
||||
OBJ_EBC+=../../../../../../../../../../../../../../../../../../../../${LTOP}/asm/arch/ebc/ebc_disas.o
|
||||
#OBJ_EBC+=../../../../../../../../../../../../../../../../../../../../${LTOP}/asm/arch/ebc/ebc_disas.o
|
||||
OBJ_EBC+=../../asm/arch/ebc/ebc_disas.o
|
||||
TARGET_EBC=anal_ebc.${EXT_SO}
|
||||
|
||||
ALL_TARGETS+=${TARGET_EBC}
|
||||
|
@ -1,7 +1,8 @@
|
||||
OBJ_H8300=anal_h8300.o
|
||||
|
||||
STATIC_OBJ+=${OBJ_H8300}
|
||||
OBJ_H8300+=../../../../../../../../../../../../../../../../../../../../${LTOP}/asm/arch/h8300/h8300_disas.o
|
||||
#OBJ_H8300+=../../../../../../../../../../../../../../../../../../../../${LTOP}/asm/arch/h8300/h8300_disas.o
|
||||
OBJ_H8300+=../../asm/arch/h8300/h8300_disas.o
|
||||
TARGET_H8300=anal_h8300.${EXT_SO}
|
||||
|
||||
ALL_TARGETS+=${TARGET_H8300}
|
||||
|
@ -3,15 +3,16 @@ OBJ_TMS320+=anal_tms320_c55x_plus.o
|
||||
|
||||
STATIC_OBJ+=${OBJ_TMS320}
|
||||
#OBJ_TMS320+=../../../../../../../../../../../${LTOP}/asm/arch/tms320/tms320_dasm.o
|
||||
ROOT=../../../../../../../../../../../../../../../../../../../../../
|
||||
OBJ_TMS320+=$(ROOT)/${LTOP}/asm/arch/tms320/tms320_dasm.o
|
||||
OBJ_TMS320+=$(ROOT)/${LTOP}/asm/arch/tms320/c55x_plus/ins.o
|
||||
OBJ_TMS320+=$(ROOT)/${LTOP}/asm/arch/tms320/c55x_plus/c55plus.o
|
||||
OBJ_TMS320+=$(ROOT)/${LTOP}/asm/arch/tms320/c55x_plus/c55plus_decode.o
|
||||
OBJ_TMS320+=$(ROOT)/${LTOP}/asm/arch/tms320/c55x_plus/decode_funcs.o
|
||||
OBJ_TMS320+=$(ROOT)/${LTOP}/asm/arch/tms320/c55x_plus/utils.o
|
||||
OBJ_TMS320+=$(ROOT)/${LTOP}/asm/arch/tms320/c55x_plus/hashtable.o
|
||||
OBJ_TMS320+=$(ROOT)/${LTOP}/asm/arch/tms320/c55x_plus/hashvector.o
|
||||
#ROOT=../../../../../../../../../../../../../../../../../../../../../${LTOP}
|
||||
ROOT=../../
|
||||
OBJ_TMS320+=$(ROOT)/asm/arch/tms320/tms320_dasm.o
|
||||
OBJ_TMS320+=$(ROOT)/asm/arch/tms320/c55x_plus/ins.o
|
||||
OBJ_TMS320+=$(ROOT)/asm/arch/tms320/c55x_plus/c55plus.o
|
||||
OBJ_TMS320+=$(ROOT)/asm/arch/tms320/c55x_plus/c55plus_decode.o
|
||||
OBJ_TMS320+=$(ROOT)/asm/arch/tms320/c55x_plus/decode_funcs.o
|
||||
OBJ_TMS320+=$(ROOT)/asm/arch/tms320/c55x_plus/utils.o
|
||||
OBJ_TMS320+=$(ROOT)/asm/arch/tms320/c55x_plus/hashtable.o
|
||||
OBJ_TMS320+=$(ROOT)/asm/arch/tms320/c55x_plus/hashvector.o
|
||||
TARGET_TMS320=anal_tms320.${EXT_SO}
|
||||
|
||||
ALL_TARGETS+=${TARGET_TMS320}
|
||||
|
@ -1,7 +1,8 @@
|
||||
OBJ_V850=anal_v850.o
|
||||
|
||||
STATIC_OBJ+=${OBJ_V850}
|
||||
OBJ_V850+=../../../../../../../../../../../../../../../../../../../../${LTOP}/asm/arch/v850/v850_disas.o
|
||||
#OBJ_V850+=../../../../../../../../../../../../../../../../../../../../${LTOP}/asm/arch/v850/v850_disas.o
|
||||
OBJ_V850+=../../asm/arch/v850/v850_disas.o
|
||||
TARGET_V850=anal_v850.${EXT_SO}
|
||||
|
||||
ALL_TARGETS+=${TARGET_V850}
|
||||
|
@ -22,7 +22,7 @@ install: ${F_SDB}
|
||||
cp -f *.sdb "${OPDIR}"
|
||||
|
||||
#that sed is a workaround for mingw's pwd
|
||||
CWD=$(shell pwd | sed -e 's,^/c/,/,')
|
||||
CWD=$(shell pwd)
|
||||
symstall install-symlink: ${F_SDB}
|
||||
mkdir -p "${OPDIR}"
|
||||
for a in *.sdb ; do ln -fs "${CWD}/$$a" "${OPDIR}/$$a" ; done
|
||||
|
@ -28,6 +28,11 @@
|
||||
#define __KFBSD__ 0
|
||||
#endif
|
||||
|
||||
#if __MINGW32__ || __MINGW64__
|
||||
#undef MINGW32
|
||||
#define MINGW32 1
|
||||
#endif
|
||||
|
||||
#if defined(EMSCRIPTEN) || defined(__linux__) || defined(__APPLE__) || defined(__GNU__) || defined(__ANDROID__) || defined(__QNX__)
|
||||
#define __BSD__ 0
|
||||
#define __UNIX__ 1
|
||||
|
Loading…
Reference in New Issue
Block a user