radare2/libr/Makefile
pancake 05b40f0e75 * Fix build issues - fix build order
* 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
2009-02-05 22:28:33 +01:00

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