2009-02-05 21:08:46 +00:00
|
|
|
# XXX
|
2009-02-06 12:17:51 +00:00
|
|
|
PREFIX=../prefix
|
2009-02-05 21:08:46 +00:00
|
|
|
|
|
|
|
# Libraries
|
2009-02-06 12:17:51 +00:00
|
|
|
LIBLIST=io util lib lang flags bin macro hash line cons line print config syscall range socket cmd asm search diff debug reg core
|
2009-02-05 21:08:46 +00:00
|
|
|
|
|
|
|
|
|
|
|
# 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
|
2009-02-06 12:17:51 +00:00
|
|
|
@for a in `find */t -perm /u+x -type f | grep 2`; \
|
|
|
|
do echo " $$a"; cp $$a ${PREFIX}/bin ; done
|
2009-02-06 17:22:27 +00:00
|
|
|
# plugins
|
|
|
|
@mkdir -p ${PREFIX}/plugins
|
|
|
|
@for a in `find */p -perm /u+x -type f`; \
|
|
|
|
do echo " $$a"; cp $$a ${PREFIX}/plugins ; done
|
2009-02-05 21:08:46 +00:00
|
|
|
# test programs
|
|
|
|
@mkdir -p ${PREFIX}/bin-test
|
2009-02-06 12:17:51 +00:00
|
|
|
@for a in `find */t -perm /u+x -type f | grep -v 2`; \
|
2009-02-05 21:08:46 +00:00
|
|
|
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
|