mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-27 15:10:53 +00:00
* Fix static compilation on Linux systems
- Not really portable, needs some work to fix w32 build
This commit is contained in:
parent
64a94329c5
commit
a6629c610c
@ -11,7 +11,7 @@ LIBS+=$(subst r_,-L../../libr/,$(DEPS))
|
||||
all: ${BIN}${EXT_EXE}
|
||||
|
||||
${BIN}${EXT_EXE}: ${BIN}.o ${OBJS}
|
||||
${CC} -o ${BIN}${EXT_EXE} ${LIBS} ${LDFLAGS} ${OBJS} ${BIN}.o
|
||||
${CC} -o ${BIN}${EXT_EXE} ${OBJS} ${BIN}.o ${LIBS} ${LDFLAGS}
|
||||
|
||||
clean:
|
||||
-rm -f ${BIN} ${BIN}.o ${OBJS}
|
||||
|
@ -1,4 +1,4 @@
|
||||
BIN=rabin2
|
||||
DEPS=r_bin r_cons r_util r_lib r_flags
|
||||
BINDEPS=r_bin r_cons r_util r_lib r_flags
|
||||
|
||||
include ../binr.mk
|
||||
|
@ -1,6 +1,10 @@
|
||||
BIN=radare2
|
||||
DEPS=r_diff r_config r_parse r_lib r_cons r_search r_anal r_reg
|
||||
DEPS+=r_bin r_flags r_debug r_util r_core r_bp r_io r_cmd r_th r_vm
|
||||
DEPS+=r_sign r_print r_lang r_asm r_syscall r_hash r_line r_socket
|
||||
BINDEPS=r_core r_parse r_search r_cons r_lib r_config r_diff
|
||||
BINDEPS+=r_bin r_debug r_anal r_reg r_bp r_io r_cmd r_th r_vm
|
||||
BINDEPS+=r_sign r_print r_lang r_asm r_syscall r_hash r_line r_socket r_flags r_util
|
||||
|
||||
include ../binr.mk
|
||||
|
||||
ifeq ($(WITHNONPIC),1)
|
||||
LDFLAGS+=${DL_LIBS} -lm -lgmp -lpthread
|
||||
endif
|
||||
|
@ -1,6 +1,10 @@
|
||||
BIN=radiff2
|
||||
DEPS=r_diff r_config r_parse r_lib r_cons r_search r_anal r_reg
|
||||
DEPS+=r_bin r_flags r_debug r_util r_vm r_core r_bp r_io r_cmd
|
||||
DEPS+=r_sign r_print r_lang r_asm r_syscall r_hash r_line r_socket
|
||||
BINDEPS=r_core r_diff r_config r_parse r_lib r_cons r_search r_anal r_reg
|
||||
BINDEPS+=r_bin r_flags r_debug r_vm r_bp r_io r_cmd
|
||||
BINDEPS+=r_sign r_print r_lang r_asm r_syscall r_hash r_line r_socket r_util
|
||||
|
||||
include ../binr.mk
|
||||
|
||||
ifeq ($(WITHNONPIC),1)
|
||||
LDFLAGS+=${DL_LIBS} -lm -lgmp
|
||||
endif
|
||||
|
@ -1,5 +1,5 @@
|
||||
BIN=rafind2
|
||||
DEPS=r_search r_util r_io r_cons r_print r_lib r_asm r_anal r_reg
|
||||
DEPS+=r_socket
|
||||
BINDEPS=r_search r_io r_print r_lib r_asm r_anal r_reg r_cons r_util
|
||||
BINDEPS+=r_socket
|
||||
|
||||
include ../binr.mk
|
||||
|
@ -1,4 +1,4 @@
|
||||
BIN=rahash2
|
||||
DEPS=r_hash r_util
|
||||
BINDEPS=r_hash r_util
|
||||
|
||||
include ../binr.mk
|
||||
|
@ -1,4 +1,8 @@
|
||||
BIN=ranal2
|
||||
DEPS=r_anal r_util r_lib r_reg
|
||||
BINDEPS=r_anal r_lib r_reg r_util
|
||||
|
||||
include ../binr.mk
|
||||
|
||||
ifeq ($(WITHNONPIC),1)
|
||||
LDFLAGS+=${DL_LIBS} -lm -lgmp -lpthread
|
||||
endif
|
||||
|
@ -1,4 +1,8 @@
|
||||
BIN=rasm2
|
||||
DEPS=r_asm r_util r_lib
|
||||
BINDEPS=r_asm r_util r_lib
|
||||
|
||||
include ../binr.mk
|
||||
|
||||
ifeq ($(WITHNONPIC),1)
|
||||
LDFLAGS+=${DL_LIBS}
|
||||
endif
|
||||
|
@ -1,4 +1,4 @@
|
||||
BIN=rax2
|
||||
DEPS=r_util
|
||||
BINDEPS=r_util
|
||||
|
||||
include ../binr.mk
|
||||
|
@ -11,7 +11,7 @@ STATIC_OBJS=$(subst ..,p/..,$(subst asm_,p/asm_,$(STATIC_OBJ)))
|
||||
OBJ=${STATIC_OBJS} asm.o code.o
|
||||
|
||||
pre:
|
||||
@if [ ! -e libr_asm.${EXT_SO} ]; then rm -f ${STATIC_OBJS} ; fi
|
||||
@if [ ! -e libr_asm.${EXT_SO} ]; then if [ ! -e libr_asm.${EXT_AR} ]; then rm -f ${STATIC_OBJS} ; fi ; fi
|
||||
|
||||
re:
|
||||
rm -f asm.o libr_asm.so
|
||||
|
@ -7,7 +7,7 @@ plugin.${EXT_SO}:
|
||||
${CC} ${CFLAGS} -shared -Wall -o plugin.${EXT_SO} ${LDFLAGS_LIB} plugin.c -I../../include
|
||||
|
||||
test-plugin${EXT_EXE}:
|
||||
${CC} ${CFLAGS} -Wall -o test-plugin${EXT_EXE} test-plugin.c -L../../util/ -lr_util -I../../include ../*.o ${DL_LIBS}
|
||||
${CC} ../*.o ${CFLAGS} -Wall -o test-plugin${EXT_EXE} test-plugin.c -L../../util/ -lr_util -I../../include ${DL_LIBS}
|
||||
|
||||
clean:
|
||||
-rm -f plugin.${EXT_SO} test-plugin${EXT_EXE}
|
||||
|
@ -114,7 +114,7 @@ ifneq ($(BIN),)
|
||||
all: ${BIN}${EXT_EXE}
|
||||
|
||||
${BIN}${EXT_EXE}: ${OBJ}
|
||||
${CC} -L.. ${LDFLAGS} ${LIBS} ${OBJ} -o ${BIN}${EXT_EXE}
|
||||
${CC} ${OBJ} -L.. ${LDFLAGS} ${LIBS} -o ${BIN}${EXT_EXE}
|
||||
endif
|
||||
|
||||
# Dummy myclean rule that can be overriden by the t/ Makefile
|
||||
|
Loading…
Reference in New Issue
Block a user