mirror of
https://github.com/radareorg/radare2.git
synced 2025-01-24 23:06:36 +00:00
05b40f0e75
* Plugin directory renamed to 'p' * Add env.sh to enter into a "radare2 development shell" --HG-- rename : libr/io/plugins/Makefile => libr/io/p/Makefile rename : libr/io/plugins/README => libr/io/p/README rename : libr/io/plugins/dbg.c => libr/io/p/dbg.c rename : libr/io/plugins/malloc.c => libr/io/p/malloc.c rename : libr/io/plugins/ptrace.c => libr/io/p/ptrace.c
46 lines
1.1 KiB
Makefile
46 lines
1.1 KiB
Makefile
# XXX
|
|
PREFIX=/tmp/libr-install
|
|
|
|
# Libraries
|
|
LIBLIST=io io/p util lib lang bin macro hash line cons print config flags syscall range socket cmd asm search diff debug reg core
|
|
|
|
|
|
# Under development
|
|
#LIBLIST+=print
|
|
#LIBLIST+=util
|
|
#LIBLIST+=search
|
|
|
|
# TODO : generate single library linking against the rest
|
|
#LIBSO=libr.so
|
|
#LIBAR=libr.a
|
|
|
|
all:
|
|
for lib in ${LIBLIST}; do ( cd $${lib} && ${MAKE} all ); done
|
|
@echo Build done for: ${LIBLIST}
|
|
|
|
install:
|
|
# libraries
|
|
@mkdir -p ${PREFIX}/lib
|
|
@for a in `find * | grep -e '\.so$$'` ; do \
|
|
echo " $$a "; cp $$a ${PREFIX}/lib ; done
|
|
# object archives
|
|
@for a in `find * | grep -e '\.a$$'` ; do \
|
|
echo " $$a"; cp $$a ${PREFIX}/lib ; done
|
|
# includes
|
|
@mkdir -p ${PREFIX}/include
|
|
cp -f include/* ${PREFIX}/include
|
|
# programs
|
|
@mkdir -p ${PREFIX}/bin
|
|
cp -f util/t/rax2 ${PREFIX}/bin
|
|
# test programs
|
|
@mkdir -p ${PREFIX}/bin-test
|
|
@for a in `find */t -perm /u+x -type f`; \
|
|
do echo " $$a"; cp $$a ${PREFIX}/bin-test ; done
|
|
@echo libr aka radare2 has been installed in PREFIX=${PREFIX}
|
|
|
|
todo:
|
|
grep -re TODO *
|
|
|
|
clean:
|
|
for lib in ${LIBLIST}; do ( cd $${lib} && ${MAKE} clean ); done
|