mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-28 15:41:38 +00:00
9bd9cbe135
* Initial implementation of the visual mode in core * Added pc and ps print formats (c code and string) * Added '/' command in core (search hexa and str) * Add '-d' to radare2 test program * New r_file_path to resolve file path thru $PATH * 'make install' works everywhere
51 lines
1.3 KiB
Makefile
51 lines
1.3 KiB
Makefile
# XXX
|
|
PREFIX=../prefix
|
|
|
|
# Libraries
|
|
LIBLIST=io util lib lang flags bin macro hash line cons line print config 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
|
|
@for a in `find */t -perm /u+x -type f | grep 2`; \
|
|
do echo " $$a"; cp $$a ${PREFIX}/bin ; done
|
|
# plugins
|
|
@mkdir -p ${PREFIX}/lib/radare2
|
|
@for a in `find */p -perm /u+x -type f`; \
|
|
do echo " $$a"; cp $$a ${PREFIX}/lib/radare2 ; done
|
|
# test programs
|
|
@mkdir -p ${PREFIX}/bin-test
|
|
@for a in `find */t -perm /u+x -type f | grep -v 2`; \
|
|
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
|