修正 r2pipe test for C

日期: 分類: «逆向工程» 作者: ols3
標籤: , ,
CFLAGS+=$(shell pkg-config --cflags r_socket) -I/home/ols3/MYBUILD/RADARE2/radare2/subprojects/sdb/include
LDFLAGS+=$(shell pkg-config --libs r_socket)

TESTS=test-pipe test-pipe2 test-spawn

all: $(TESTS)

test-pipe:
    $(CC) -o test-pipe test-pipe.c $(CFLAGS) $(LDFLAGS)
    r2 -q -c '#!pipe ./test-pipe' /bin/ls

test-pipe2:
    $(CC) -o test-pipe2 test-pipe2.c $(CFLAGS) $(LDFLAGS)
    #r2 -q -c '#!pipe ./test-pipe2' /bin/ls
    ./test-pipe2

test-spawn:
    $(CC) -o test-spawn test-spawn.c $(CFLAGS) $(LDFLAGS)
    ./test-spawn

clean:
    rm -f $(TESTS)
    rm -f a.out

.PHONY: $(TESTS)

r2pipe-test