mirror of
https://github.com/radareorg/radare2.git
synced 2025-02-20 22:34:39 +00:00

- Fix segfault when accessing null r.file->fd->data * Initial first working steps of the brainfuck debugger * Add missing io.w32 plugin (untested) - Plugins that doesn't work on current platform are not listed
46 lines
821 B
Makefile
46 lines
821 B
Makefile
include ../config.mk
|
|
|
|
NAME=r_io
|
|
DEPS=r_lib r_util r_socket r_cons
|
|
CFLAGS+=-Wall -DCORELIB
|
|
# on solaris only
|
|
ifeq (${OSTYPE},solaris)
|
|
LDFLAGS+=-lsocket
|
|
endif
|
|
# windows
|
|
ifeq (${OSTYPE},windows)
|
|
LDFLAGS+=-lws2_32
|
|
endif
|
|
|
|
# copypasted from socket/Makefile
|
|
# on solaris only
|
|
ifeq (${OSTYPE},solaris)
|
|
LDFLAGS+=-lsocket
|
|
endif
|
|
# windows
|
|
ifeq (${OSTYPE},windows)
|
|
LDFLAGS=-lwsock32
|
|
endif
|
|
|
|
|
|
STATIC_OBJS=
|
|
include ../config.mk
|
|
|
|
foo: pre libr_io.${EXT_SO} libr_io.${EXT_AR} tests plugins
|
|
|
|
include ${STATIC_IO_PLUGINS}
|
|
STATIC_OBJS=$(subst ..,p/..,$(subst io_,p/io_,$(STATIC_OBJ)))
|
|
OBJ=${STATIC_OBJS} io.o plugin.o map.o section.o desc.o cache.o undo.o
|
|
|
|
pre:
|
|
@echo STATICOBJS: ${STATIC_OBJS}
|
|
#if [ ! -e libr_io.${EXT_SO} ]; then rm -f ${STATIC_OBJS} ; fi
|
|
|
|
tests:
|
|
cd t && ${MAKE} all
|
|
|
|
plugins:
|
|
cd p && ${MAKE} all
|
|
|
|
include ../rules.mk
|