mirror of
https://github.com/radareorg/radare2.git
synced 2025-03-02 11:16:15 +00:00

* Add ptrace-wrap * Add r_io_ptrace* and r_debug_ptrace() * Use wrappers instead of calling ptrace and fork directly * Sleep while waiting in linux_debug * Add ptrace-wrap Makefile * Link io against ptrace-wrap with acr * Define ptrace usages in r_userconf.h * Conditional ptrace-wrap in acr * Fix HAVE_PTRACE * Some fixes for Solaris * Fixes for FreeBSD * More fixes for Solaris * Style Fix
27 lines
462 B
Makefile
27 lines
462 B
Makefile
include ../../libr/config.mk
|
|
include ../../mk/platform.mk
|
|
include ../../mk/gcc.mk
|
|
|
|
CC ?= gcc
|
|
AR ?= ar
|
|
RANLIB ?= ranlib
|
|
EXT_AR ?= a
|
|
|
|
CFLAGS+=-Iinclude
|
|
LIBPTRACE_WRAP=libptrace_wrap.${EXT_AR}
|
|
|
|
OFILES=src/ptrace_wrap.o
|
|
|
|
all: ${LIBPTRACE_WRAP}
|
|
|
|
%.o: %.c
|
|
$(CC) $(CFLAGS) $(LDFLAGS) -c $< -o $@
|
|
|
|
${LIBPTRACE_WRAP}: $(OFILES)
|
|
rm -f $(LIBPTRACE_WRAP)
|
|
$(AR) q $(LIBPTRACE_WRAP) $(OFILES)
|
|
$(RANLIB) $(LIBPTRACE_WRAP)
|
|
|
|
clean:
|
|
rm -f $(OBJS) ${LIBPTRACE_WRAP} $(OFILES)
|