radare2/libr/debug/p/native.mk

30 lines
877 B
Makefile

OBJ_PTRACE=debug_native.o
STATIC_OBJ+=${OBJ_PTRACE}
TARGET_PTRACE=debug_native.${EXT_SO}
ALL_TARGETS+=${TARGET_PTRACE}
ifeq (${OSTYPE},darwin)
NATIVE_OBJS=native/xnu/xnu_debug.o
endif
ifeq ($(OSTYPE),$(filter $(OSTYPE),gnulinux android))
NATIVE_OBJS=native/linux/linux_debug.o
NATIVE_OBJS+=native/procfs.o
endif
ifeq ($(OSTYPE),$(filter $(OSTYPE),gnulinux))
COREDUMP_OBJS=native/linux/linux_coredump.o
endif
${TARGET_PTRACE}: ${OBJ_PTRACE}
${CC} $(call libname,debug_native) ${CFLAGS} \
${LDFLAGS_LINKPATH}.. -L.. -lr_debug \
${LDFLAGS_LINKPATH}../../io -L../../io -lr_io \
${LDFLAGS_LINKPATH}../../bp -L../../bp -lr_bp \
${LDFLAGS_LINKPATH}../../anal -L../../anal -lr_anal \
${LDFLAGS_LINKPATH}../../reg -L../../reg -lr_reg \
${LDFLAGS_LINKPATH}../../util -L../../util -lr_util \
${LDFLAGS_LINKPATH}../../syscall -L../../util -lr_syscall \
${OBJ_PTRACE}