mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-27 07:00:30 +00:00
0ba897f5c9
* Add network support for WinDbg/KD (KDNET) ##debug * Add iob_net io_backend plugin for shlr/winkd * Add Windows 10 (May 2019 Update) build 18362 profile * Add r_hash_do_hmac_sha256 function to r_hash * Change r_socket_connect to bind source port for UDP connection
63 lines
1.2 KiB
Makefile
63 lines
1.2 KiB
Makefile
include ../config.mk
|
|
|
|
NAME=r_debug
|
|
R2DEPS=r_reg r_anal r_bp r_io r_parse r_cons r_syscall r_hash r_flag r_util r_egg r_crypto
|
|
R2DEPS+=r_socket
|
|
CFLAGS+=-DR2_PLUGIN_INCORE
|
|
|
|
ifeq ($(OSTYPE),bsd)
|
|
LDFLAGS=-lkvm
|
|
endif
|
|
|
|
foo:
|
|
@${MAKE} libs
|
|
@${MAKE} plugins
|
|
|
|
include ../config.mk
|
|
include ${STATIC_DEBUG_PLUGINS}
|
|
|
|
# Enable pure-MACH debugging by default.
|
|
# The ptrace one will be deprecated at some point
|
|
XNU_USE_PTRACE?=0
|
|
CFLAGS+=-DXNU_USE_PTRACE=$(XNU_USE_PTRACE)
|
|
|
|
STATIC_OBJS=$(subst ..,p/..,$(subst debug_,p/debug_,$(STATIC_OBJ)))
|
|
|
|
OBJS=dsignal.o dmap.o trace.o arg.o debug.o plugin.o snap.o dsession.o
|
|
OBJS+=pid.o dreg.o ddesc.o desil.o ${STATIC_OBJS}
|
|
|
|
ifeq (${OSTYPE},darwin)
|
|
ifneq (${NATIVE_OBJS},)
|
|
OBJS+= p/${NATIVE_OBJS}
|
|
endif
|
|
endif
|
|
|
|
ifeq ($(OSTYPE),$(filter $(OSTYPE),gnulinux android))
|
|
CFLAGS+=-I../bin/format/elf
|
|
OBJS+=$(addprefix p/,$(NATIVE_OBJS))
|
|
endif
|
|
|
|
ifneq (${COREDUMP_OBJS},)
|
|
ifeq ($(OSTYPE),$(filter $(OSTYPE),gnulinux))
|
|
OBJS+= p/${COREDUMP_OBJS}
|
|
endif
|
|
endif
|
|
|
|
ifneq (,$(findstring bsd,$(OSTYPE))$(findstring dragonfly,$(OSTYPE)))
|
|
ifneq (${NATIVE_OBJS},)
|
|
OBJS+=$(addprefix p/,$(NATIVE_OBJS))
|
|
endif
|
|
endif
|
|
|
|
plugins:
|
|
$(MAKE) -C p all
|
|
|
|
ios:
|
|
cd ../.. && sys/rebuild.sh iosdbg
|
|
|
|
include ../rules.mk
|
|
|
|
libs: ${LIBSO} ${LIBAR}
|
|
|
|
.PHONY: foo plugins tests libs ios
|