* Autogenerate libr.pc.acr with 'make pkgcfg'

* Revert elf.h (was partially killed by zeroes)
This commit is contained in:
pancake 2009-07-16 09:40:00 +00:00
parent d62886064a
commit 233e83323d
36 changed files with 47 additions and 36 deletions

2
configure vendored
View File

@ -368,7 +368,7 @@ for A in ${ENVWORDS} ; do
SEDFLAGS="${SEDFLAGS}s,@${A}@,${VAR},g;"
done
SEDFLAGS="${SEDFLAGS}'"
for A in ./config-user.mk libr/include/r_userconf.h pkgcfg/libr.pc pkgcfg/r_asm.pc pkgcfg/r_bin.pc pkgcfg/r_util.pc pkgcfg/r_search.pc ; do # SUBDIRS
for A in ./config-user.mk libr/include/r_userconf.h pkgcfg/libr.pc pkgcfg/r_io.pc pkgcfg/r_asm.pc pkgcfg/r_bin.pc pkgcfg/r_cons.pc pkgcfg/r_diff.pc pkgcfg/r_core.pc pkgcfg/r_socket.pc pkgcfg/r_line.pc pkgcfg/r_syscall.pc pkgcfg/r_macro.pc pkgcfg/r_util.pc pkgcfg/r_search.pc pkgcfg/r_vm.pc ; do # SUBDIRS
if [ -f "${VPATH}/${A}.acr" ]; then
SD_TARGET=${A}
else

View File

@ -37,8 +37,17 @@ REPORT PREFIX HAVE_LIB_EWF HAVE_LIB_TCC HAVE_VALAC DEBUGGER USERCC USEROSTYPE ;
(( TODO: Add the rest of .pc files here.. add a rule for acr? ))
SUBDIRS ./config-user.mk libr/include/r_userconf.h
pkgcfg/libr.pc
pkgcfg/r_io.pc
pkgcfg/r_asm.pc
pkgcfg/r_bin.pc
pkgcfg/r_cons.pc
pkgcfg/r_diff.pc
pkgcfg/r_core.pc
pkgcfg/r_socket.pc
pkgcfg/r_line.pc
pkgcfg/r_syscall.pc
pkgcfg/r_macro.pc
pkgcfg/r_util.pc
pkgcfg/r_search.pc
pkgcfg/r_vm.pc
;

View File

@ -23,6 +23,7 @@ all:
pkgcfg:
for lib in ${LIBLIST}; do ( cd $${lib} && ${MAKE} pkgcfg ); done
cd asm && ${MAKE} pkgcfg NAME=libr DEPS="r_`echo ${LIBLIST}|sed -e 's, , r_,g'`"
# TODO: Magically generate libr.pc.acr here using LIBLIST and so :)
install:

Binary file not shown.

View File

@ -78,13 +78,14 @@ pkgcfg:
@echo 'prefix=@PREFIX@' > ../../pkgcfg/${NAME}.pc.acr
@echo 'exec_prefix=$${prefix}' >> ../../pkgcfg/${NAME}.pc.acr
@echo 'libdir=$${exec_prefix}/lib' >> ../../pkgcfg/${NAME}.pc.acr
@echo 'includedir=$${exec_prefix}/include' >> ../../pkgcfg/${NAME}.pc.acr
@echo 'includedir=$${prefix}/include' >> ../../pkgcfg/${NAME}.pc.acr
@echo >> ../../pkgcfg/${NAME}.pc.acr
@echo 'Name: ${NAME}' >> ../../pkgcfg/${NAME}.pc.acr
@echo 'Description: radare foundation libraries' >> ../../pkgcfg/${NAME}.pc.acr
@echo 'Version: ${VERSION}' >> ../../pkgcfg/${NAME}.pc.acr
@echo 'Requires:' >> ../../pkgcfg/${NAME}.pc.acr
@echo 'Libs: -L$${libdir} '`echo ${NAME} ${DEPS}|sed -e s,r_,-lr_,g` >> ../../pkgcfg/${NAME}.pc.acr
@if [ "${NAME}" = "libr" ]; then NAME=''; else NAME=${NAME}; fi ;\
echo 'Libs: -L$${libdir} '`echo $${NAME} ${DEPS}|sed -e s,r_,-lr_,g` >> ../../pkgcfg/${NAME}.pc.acr
@echo 'Cflags: -I$${includedir}/libr' >> ../../pkgcfg/${NAME}.pc.acr
install:

View File

@ -4,8 +4,8 @@ libdir=${exec_prefix}/lib
includedir=${prefix}/include
Name: libr
Description: radare framework libraries
Version: 0.1
Description: radare foundation libraries
Version: 0.2
Requires:
Libs: -L${libdir} -lr_core -lr_lang -lr_search -lr_cmd -lr_meta -lr_asm -lr_util
Libs: -L${libdir} -lr_io -lr_util -lr_lib -lr_meta -lr_lang -lr_flags -lr_bin -lr_bininfo -lr_macro -lr_hash -lr_line -lr_cons -lr_print -lr_config -lr_syscall -lr_range -lr_socket -lr_cmd -lr_asm -lr_anal -lr_parse -lr_search -lr_diff -lr_bp -lr_debug -lr_reg -lr_core -lr_var -lr_sign -lr_trace -lr_vm
Cflags: -I${includedir}/libr

View File

@ -1,7 +1,7 @@
prefix=@PREFIX@
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${exec_prefix}/include
includedir=${prefix}/include
Name: r_anal
Description: radare foundation libraries

View File

@ -1,7 +1,7 @@
prefix=@PREFIX@
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${exec_prefix}/include
includedir=${prefix}/include
Name: r_asm
Description: radare foundation libraries

View File

@ -1,7 +1,7 @@
prefix=@PREFIX@
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${exec_prefix}/include
includedir=${prefix}/include
Name: r_bin
Description: radare foundation libraries

View File

@ -1,7 +1,7 @@
prefix=@PREFIX@
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${exec_prefix}/include
includedir=${prefix}/include
Name: r_bininfo
Description: radare foundation libraries

View File

@ -1,7 +1,7 @@
prefix=@PREFIX@
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${exec_prefix}/include
includedir=${prefix}/include
Name: r_cmd
Description: radare foundation libraries

View File

@ -1,7 +1,7 @@
prefix=@PREFIX@
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${exec_prefix}/include
includedir=${prefix}/include
Name: r_config
Description: radare foundation libraries

View File

@ -1,7 +1,7 @@
prefix=@PREFIX@
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${exec_prefix}/include
includedir=${prefix}/include
Name: r_cons
Description: radare foundation libraries

View File

@ -1,7 +1,7 @@
prefix=@PREFIX@
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${exec_prefix}/include
includedir=${prefix}/include
Name: r_core
Description: radare foundation libraries

View File

@ -1,7 +1,7 @@
prefix=@PREFIX@
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${exec_prefix}/include
includedir=${prefix}/include
Name: r_debug
Description: radare foundation libraries

View File

@ -1,7 +1,7 @@
prefix=@PREFIX@
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${exec_prefix}/include
includedir=${prefix}/include
Name: r_diff
Description: radare foundation libraries

View File

@ -1,7 +1,7 @@
prefix=@PREFIX@
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${exec_prefix}/include
includedir=${prefix}/include
Name: r_flags
Description: radare foundation libraries

View File

@ -1,7 +1,7 @@
prefix=@PREFIX@
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${exec_prefix}/include
includedir=${prefix}/include
Name: r_hash
Description: radare foundation libraries

View File

@ -1,7 +1,7 @@
prefix=@PREFIX@
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${exec_prefix}/include
includedir=${prefix}/include
Name: r_io
Description: radare foundation libraries

View File

@ -1,7 +1,7 @@
prefix=@PREFIX@
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${exec_prefix}/include
includedir=${prefix}/include
Name: r_lang
Description: radare foundation libraries

View File

@ -1,7 +1,7 @@
prefix=@PREFIX@
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${exec_prefix}/include
includedir=${prefix}/include
Name: r_lib
Description: radare foundation libraries

View File

@ -1,7 +1,7 @@
prefix=@PREFIX@
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${exec_prefix}/include
includedir=${prefix}/include
Name: r_line
Description: radare foundation libraries

View File

@ -1,7 +1,7 @@
prefix=@PREFIX@
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${exec_prefix}/include
includedir=${prefix}/include
Name: r_macro
Description: radare foundation libraries

View File

@ -1,7 +1,7 @@
prefix=@PREFIX@
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${exec_prefix}/include
includedir=${prefix}/include
Name: r_meta
Description: radare foundation libraries

View File

@ -1,7 +1,7 @@
prefix=@PREFIX@
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${exec_prefix}/include
includedir=${prefix}/include
Name: r_parse
Description: radare foundation libraries

View File

@ -1,7 +1,7 @@
prefix=@PREFIX@
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${exec_prefix}/include
includedir=${prefix}/include
Name: r_print
Description: radare foundation libraries

View File

@ -1,7 +1,7 @@
prefix=@PREFIX@
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${exec_prefix}/include
includedir=${prefix}/include
Name: r_range
Description: radare foundation libraries

View File

@ -1,7 +1,7 @@
prefix=@PREFIX@
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${exec_prefix}/include
includedir=${prefix}/include
Name: r_reg
Description: radare foundation libraries

View File

@ -1,7 +1,7 @@
prefix=@PREFIX@
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${exec_prefix}/include
includedir=${prefix}/include
Name: r_search
Description: radare foundation libraries

View File

@ -1,7 +1,7 @@
prefix=@PREFIX@
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${exec_prefix}/include
includedir=${prefix}/include
Name: r_sign
Description: radare foundation libraries

View File

@ -1,7 +1,7 @@
prefix=@PREFIX@
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${exec_prefix}/include
includedir=${prefix}/include
Name: r_socket
Description: radare foundation libraries

View File

@ -1,7 +1,7 @@
prefix=@PREFIX@
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${exec_prefix}/include
includedir=${prefix}/include
Name: r_syscall
Description: radare foundation libraries

View File

@ -1,7 +1,7 @@
prefix=@PREFIX@
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${exec_prefix}/include
includedir=${prefix}/include
Name: r_trace
Description: radare foundation libraries

View File

@ -1,7 +1,7 @@
prefix=@PREFIX@
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${exec_prefix}/include
includedir=${prefix}/include
Name: r_util
Description: radare foundation libraries

View File

@ -1,7 +1,7 @@
prefix=@PREFIX@
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${exec_prefix}/include
includedir=${prefix}/include
Name: r_var
Description: radare foundation libraries

View File

@ -1,7 +1,7 @@
prefix=@PREFIX@
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${exec_prefix}/include
includedir=${prefix}/include
Name: r_vm
Description: radare foundation libraries