2009-03-26 03:53:26 +08:00
|
|
|
PKGNAME radare2
|
2010-03-26 18:59:28 +08:00
|
|
|
VERSION 0.4.5
|
2009-03-26 03:53:26 +08:00
|
|
|
CONTACT pancake ; pancake@nopcode.org
|
|
|
|
|
|
|
|
LANG_C!
|
|
|
|
|
2009-04-20 04:55:25 +08:00
|
|
|
ARG_WITHOUT DEBUGGER debugger disable native debugger features ;
|
|
|
|
|
2010-01-15 20:02:54 +08:00
|
|
|
(( -ldl -dynamic ... ))
|
|
|
|
USE_DL
|
|
|
|
|
2010-01-13 02:57:33 +08:00
|
|
|
CHECK_ENDIAN
|
2009-03-31 08:57:39 +08:00
|
|
|
CHKLIB ewf
|
|
|
|
ARG_WITHOUT HAVE_EWF ewf disable EWF dependency ;
|
2010-05-24 17:15:32 +08:00
|
|
|
IFNOT HAVE_EWF { HAVE_LIB_EWF = 0 ; }
|
|
|
|
|
|
|
|
CHKLIB gmp
|
|
|
|
ARG_WITHOUT HAVE_GMP gmp disable GMP dependency ;
|
|
|
|
IFNOT HAVE_GMP { HAVE_LIB_GMP = 0 ; }
|
2009-03-31 08:57:39 +08:00
|
|
|
|
2010-02-03 21:34:00 +08:00
|
|
|
CHKLIB lua5.1
|
2009-04-07 06:53:25 +08:00
|
|
|
CHKLIB tcc
|
|
|
|
|
2009-04-03 19:11:17 +08:00
|
|
|
(( rules for the compiler ))
|
|
|
|
ARG_WITH USERCC=gcc compiler Define compiler to use (see mk/) ;
|
2010-02-22 03:49:39 +08:00
|
|
|
ARG_WITH USEROSTYPE=auto ostype Choose OS type ( gnulinux windows darwin ) ;
|
2010-02-22 03:24:28 +08:00
|
|
|
|
|
|
|
(( TODO: throw error if unknown ostype ))
|
2010-07-03 09:35:26 +08:00
|
|
|
(( TODO: handle BSD os as different ostype? ))
|
2010-02-22 03:49:39 +08:00
|
|
|
IFEQ USEROSTYPE auto ; {
|
2010-02-22 03:24:28 +08:00
|
|
|
IFEQ HOST_OS linux ; {
|
|
|
|
USEROSTYPE = gnulinux ;
|
|
|
|
}{
|
2010-07-03 09:35:26 +08:00
|
|
|
IFEQ HOST_OS netbsd ; {
|
|
|
|
USEROSTYPE = gnulinux ;
|
|
|
|
}{
|
|
|
|
IFEQ HOST_OS freebsd ; {
|
|
|
|
USEROSTYPE = gnulinux ;
|
|
|
|
}{
|
|
|
|
IFEQ HOST_OS openbsd ; {
|
|
|
|
USEROSTYPE = gnulinux ;
|
|
|
|
}{
|
|
|
|
IFEQ HOST_OS darwin ; {
|
|
|
|
USEROSTYPE = darwin ;
|
|
|
|
} } } } }
|
2010-02-22 03:24:28 +08:00
|
|
|
}
|
2009-04-03 19:11:17 +08:00
|
|
|
|
2010-01-22 04:22:30 +08:00
|
|
|
ARG_WITHOUT WITHPIC pic do not build libr as a program independent location ;
|
2010-01-13 02:57:33 +08:00
|
|
|
|
2010-05-24 17:15:32 +08:00
|
|
|
REPORT PREFIX HAVE_LIB_EWF HAVE_LIB_GMP HAVE_LIB_TCC DEBUGGER USERCC USEROSTYPE ;
|
2009-03-31 08:57:39 +08:00
|
|
|
|
2009-07-16 08:30:20 +08:00
|
|
|
(( 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
|
2009-07-16 17:40:00 +08:00
|
|
|
pkgcfg/r_io.pc
|
2009-07-16 08:30:20 +08:00
|
|
|
pkgcfg/r_asm.pc
|
|
|
|
pkgcfg/r_bin.pc
|
2010-01-25 18:54:25 +08:00
|
|
|
pkgcfg/r_anal.pc
|
|
|
|
pkgcfg/r_hash.pc
|
2009-07-16 17:40:00 +08:00
|
|
|
pkgcfg/r_cons.pc
|
|
|
|
pkgcfg/r_diff.pc
|
|
|
|
pkgcfg/r_core.pc
|
2009-09-20 07:03:57 +08:00
|
|
|
pkgcfg/r_lang.pc
|
2009-07-16 17:40:00 +08:00
|
|
|
pkgcfg/r_socket.pc
|
2009-09-20 06:28:06 +08:00
|
|
|
pkgcfg/r_debug.pc
|
|
|
|
pkgcfg/r_reg.pc
|
2010-01-25 18:54:25 +08:00
|
|
|
pkgcfg/r_cmd.pc
|
|
|
|
pkgcfg/r_config.pc
|
|
|
|
pkgcfg/r_flags.pc
|
2009-07-16 17:40:00 +08:00
|
|
|
pkgcfg/r_line.pc
|
|
|
|
pkgcfg/r_syscall.pc
|
2010-01-25 18:54:25 +08:00
|
|
|
pkgcfg/r_sign.pc
|
2009-07-16 08:30:20 +08:00
|
|
|
pkgcfg/r_util.pc
|
|
|
|
pkgcfg/r_search.pc
|
2009-07-16 17:40:00 +08:00
|
|
|
pkgcfg/r_vm.pc
|
2009-07-22 06:59:34 +08:00
|
|
|
pkgcfg/r_th.pc
|
|
|
|
pkgcfg/r_bp.pc
|
|
|
|
pkgcfg/r_db.pc
|
2010-01-26 08:28:33 +08:00
|
|
|
pkgcfg/r_lib.pc
|
2009-07-16 08:30:20 +08:00
|
|
|
;
|