mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-12 15:38:09 +00:00
64 lines
2.4 KiB
Makefile
64 lines
2.4 KiB
Makefile
all: core hash sc socket asm search bin
|
|
@true
|
|
|
|
sc:
|
|
valac -C --vapidir=${PWD}/.. sc.vala --pkg r_syscall
|
|
gcc sc.c `pkg-config gobject-2.0 --libs --cflags` -I../../include/ -lr_syscall -Wl,-R../../syscall -L../../syscall -o sc
|
|
|
|
core:
|
|
valac -C --vapidir=${PWD}/.. core.vala --pkg r_core --pkg r_cons
|
|
#gcc `PKG_CONFIG_PATH=../.. pkg-config --libs --cflags gobject-2.0 libr` core.c -o core
|
|
gcc core.c `pkg-config gobject-2.0 --libs --cflags` -I../../include/ \
|
|
-lr_core -Wl,-R../../core -L../../core \
|
|
-lr_util -Wl,-R../../util -L../../util \
|
|
-lr_asm -Wl,-R../../asm -L../../asm \
|
|
-lr_bin -Wl,-R../../bin -L../../bin \
|
|
-lr_io -Wl,-R../../io -L../../io \
|
|
-lr_anal -Wl,-R../../anal -L../../anal \
|
|
-lr_cons -Wl,-R../../cons -L../../cons \
|
|
-lr_debug -Wl,-R../../debug -L../../debug \
|
|
-lr_lang -Wl,-R../../lang -L../../lang \
|
|
-lr_line -Wl,-R../../line -L../../line \
|
|
-lr_lib -Wl,-R../../lib -L../../lib \
|
|
-lr_flags -Wl,-R../../flags -L../../flags \
|
|
-lr_meta -Wl,-R../../meta -L../../meta \
|
|
-lr_macro -Wl,-R../../macro -L../../macro \
|
|
-lr_print -Wl,-R../../print -L../../print \
|
|
-lr_config -Wl,-R../../config -L../../config \
|
|
-lr_search -Wl,-R../../search -L../../search \
|
|
-lr_cmd -Wl,-R../../cmd -L../../cmd \
|
|
-lr_hash -Wl,-R../../hash -L../../hash \
|
|
-g -o core
|
|
|
|
search:
|
|
valac -C --vapidir=${PWD}/.. search.vala --pkg r_search
|
|
gcc search.c `pkg-config gobject-2.0 --libs --cflags` -I../../include/ \
|
|
-lr_search -Wl,-R../../search -L../../search \
|
|
-lr_util -Wl,-R../../util -L../../util \
|
|
-g -o search
|
|
|
|
asm:
|
|
valac -C --vapidir=${PWD}/.. asm.vala --pkg r_asm
|
|
gcc asm.c `pkg-config gobject-2.0 --libs --cflags` -I../../include/ \
|
|
-lr_asm -Wl,-R../../asm -L../../asm \
|
|
-lr_util -Wl,-R../../util -L../../util \
|
|
-g -o asm
|
|
|
|
bin:
|
|
valac -C --vapidir=${PWD}/.. bin.vala --pkg r_bin
|
|
gcc bin.c `pkg-config gobject-2.0 --libs --cflags` -I../../include/ \
|
|
-lr_bin -Wl,-R../../bin -L../../bin \
|
|
-lr_util -Wl,-R../../util -L../../util \
|
|
-g -o bin
|
|
|
|
hash:
|
|
valac -C --vapidir=${PWD}/.. hash.vala --pkg r_hash
|
|
gcc hash.c `pkg-config gobject-2.0 --libs --cflags` -I../../include/ -lr_hash -Wl,-R../../hash -L../../hash -o hash
|
|
|
|
socket:
|
|
valac -C --vapidir=${PWD}/.. socket.vala --pkg r_socket
|
|
gcc socket.c `pkg-config gobject-2.0 --libs --cflags` -I../../include/ -lr_socket -Wl,-R../../socket -L../../socket -o socket
|
|
|
|
clean:
|
|
-rm -f *.c hash sc *.o *.h core socket asm search bin
|