2009-03-25 19:53:26 +00:00
|
|
|
PKGNAME radare2
|
2014-03-03 18:33:52 +00:00
|
|
|
VERSION 0.9.8.git
|
2009-03-25 19:53:26 +00:00
|
|
|
CONTACT pancake ; pancake@nopcode.org
|
|
|
|
|
|
|
|
LANG_C!
|
|
|
|
|
2012-09-12 17:35:27 +00:00
|
|
|
ARG_ENABLE CPARSE cparse build with cparse support ;
|
|
|
|
ARG_DISABLE DEBUGGER debugger disable native debugger features ;
|
2009-04-19 20:55:25 +00:00
|
|
|
|
2010-01-15 12:02:54 +00:00
|
|
|
(( -ldl -dynamic ... ))
|
|
|
|
USE_DL
|
|
|
|
|
2010-01-12 18:57:33 +00:00
|
|
|
CHECK_ENDIAN
|
2011-10-18 07:38:20 +00:00
|
|
|
CHKLIB magic
|
2011-10-18 16:12:17 +00:00
|
|
|
ARG_WITH USE_MAGIC sysmagic force to use system's magic ;
|
2011-10-18 07:38:20 +00:00
|
|
|
IFAND HAVE_LIB_MAGIC USE_MAGIC {
|
|
|
|
USE_LIB_MAGIC = 1 ;
|
2011-10-18 16:12:17 +00:00
|
|
|
LIBMAGIC = -lmagic ;
|
2011-10-18 07:38:20 +00:00
|
|
|
}{
|
|
|
|
USE_LIB_MAGIC = 0 ;
|
2011-10-18 16:12:17 +00:00
|
|
|
LIBMAGIC = -lr_magic ;
|
2011-10-18 07:38:20 +00:00
|
|
|
}
|
|
|
|
|
2014-06-24 10:48:29 +00:00
|
|
|
ARG_WITH USE_CAPSTONE syscapstone force to use system-wide capstone ;
|
|
|
|
PKGCFG CAPSTONE_CFLAGS CAPSTONE_LDFLAGS capstone
|
2014-06-24 15:47:38 +00:00
|
|
|
IFAND USE_CAPSTONE HAVE_PKGCFG_CAPSTONE {
|
|
|
|
USE_CAPSTONE = 1 ;
|
|
|
|
}{
|
|
|
|
USE_CAPSTONE = 0 ;
|
|
|
|
}
|
2014-06-24 10:48:29 +00:00
|
|
|
|
2014-01-30 00:45:08 +00:00
|
|
|
CHKLIB z
|
|
|
|
CHKLIB zip
|
|
|
|
ARG_WITH USE_ZIP syszip force to use system's libzip and zlib ;
|
|
|
|
IFAND HAVE_LIB_Z USE_ZIP {
|
|
|
|
IF HAVE_LIB_ZIP {
|
|
|
|
USE_LIB_ZIP = 1 ;
|
|
|
|
LIBZIP = -lz -lzip ;
|
|
|
|
}{
|
|
|
|
USE_LIB_ZIP = 0 ;
|
|
|
|
LIBZIP = -lrz ; (( static linking to shlr/zip ))
|
|
|
|
}
|
|
|
|
}{
|
|
|
|
USE_LIB_ZIP = 0 ;
|
|
|
|
LIBZIP = -lrz ; (( static linking to shlr/zip ))
|
|
|
|
}
|
|
|
|
|
2009-03-31 00:57:39 +00:00
|
|
|
CHKLIB ewf
|
2012-02-03 00:13:09 +00:00
|
|
|
PKGCFG EWF_CFLAGS EWF_LDFLAGS libewf
|
2014-05-17 02:27:49 +00:00
|
|
|
ARG_WITHOUT HAVE_LIBVERSION libversion disable version library builds ;
|
2009-03-31 00:57:39 +00:00
|
|
|
ARG_WITHOUT HAVE_EWF ewf disable EWF dependency ;
|
2012-02-03 00:13:09 +00:00
|
|
|
IF HAVE_PKGCFG_LIBEWF {
|
|
|
|
HAVE_LIB_EWF = 1 ;
|
2012-05-29 22:44:46 +00:00
|
|
|
}{
|
|
|
|
HAVE_LIB_EWF = 0 ;
|
2012-02-03 00:13:09 +00:00
|
|
|
}
|
2012-02-18 00:49:59 +00:00
|
|
|
IFNOT HAVE_EWF { HAVE_LIB_EWF = 0 ; }
|
2010-05-24 09:15:32 +00:00
|
|
|
|
2012-12-14 16:46:33 +00:00
|
|
|
(( TODO must deprecate
|
2010-05-24 09:15:32 +00:00
|
|
|
CHKLIB gmp
|
|
|
|
ARG_WITHOUT HAVE_GMP gmp disable GMP dependency ;
|
|
|
|
IFNOT HAVE_GMP { HAVE_LIB_GMP = 0 ; }
|
2012-12-14 16:46:33 +00:00
|
|
|
))
|
|
|
|
HAVE_LIB_GMP = 0 ;
|
|
|
|
HAVE_GMP = 0 ;
|
2009-03-31 00:57:39 +00:00
|
|
|
|
2011-07-14 20:14:11 +00:00
|
|
|
CHKLIB ssl
|
2011-07-13 17:22:38 +00:00
|
|
|
PKGCFG SSL_CFLAGS SSL_LDFLAGS openssl
|
2013-03-26 12:50:05 +00:00
|
|
|
IFNOTNULL SSL_LDFLAGS {
|
2012-10-26 00:49:33 +00:00
|
|
|
HAVE_OPENSSL = 1 ;
|
|
|
|
}
|
|
|
|
(( ARG_WITHOUT HAVE_OPENSSL ssl disable openssl dependency ; ))
|
|
|
|
ARG_WITH WANT_OPENSSL openssl build with openssl if possible ;
|
|
|
|
IFAND WANT_OPENSSL HAVE_OPENSSL {
|
|
|
|
HAVE_OPENSSL = 1 ;
|
|
|
|
}{
|
|
|
|
HAVE_OPENSSL = 0 ;
|
|
|
|
}
|
2011-07-14 20:14:11 +00:00
|
|
|
IFNULL SSL_LDFLAGS {
|
|
|
|
IFNOT HAVE_LIB_SSL {
|
|
|
|
HAVE_OPENSSL = 0 ;
|
|
|
|
}{
|
|
|
|
SSL_LDFLAGS = -lssl ;
|
|
|
|
}
|
|
|
|
}
|
2010-07-16 21:13:34 +00:00
|
|
|
|
2012-08-27 15:02:58 +00:00
|
|
|
ARG_WITH USE_RPATH rpath use rpath to build ;
|
|
|
|
|
2011-07-15 00:21:40 +00:00
|
|
|
ARG_WITH HAVE_LILEND little-endian force little endian ;
|
|
|
|
IF HAVE_LILEND { LIL_ENDIAN = 1 ; }
|
|
|
|
ARG_WITH HAVE_BIGEND big-endian force big endian ;
|
|
|
|
IF HAVE_BIGEND { LIL_ENDIAN = 0 ; }
|
|
|
|
|
2010-02-03 13:34:00 +00:00
|
|
|
CHKLIB lua5.1
|
2009-04-06 22:53:25 +00:00
|
|
|
|
2009-04-03 11:11:17 +00:00
|
|
|
(( rules for the compiler ))
|
|
|
|
ARG_WITH USERCC=gcc compiler Define compiler to use (see mk/) ;
|
2013-06-07 11:21:51 +00:00
|
|
|
ARG_WITH USEROSTYPE=auto ostype Choose OS type ( gnulinux windows darwin haiku ) ;
|
2010-02-21 19:24:28 +00:00
|
|
|
|
|
|
|
(( TODO: throw error if unknown ostype ))
|
2010-07-03 01:35:26 +00:00
|
|
|
(( TODO: handle BSD os as different ostype? ))
|
2010-02-21 19:49:39 +00:00
|
|
|
IFEQ USEROSTYPE auto ; {
|
2010-02-21 19:24:28 +00:00
|
|
|
IFEQ HOST_OS linux ; {
|
|
|
|
USEROSTYPE = gnulinux ;
|
|
|
|
}{
|
2011-04-13 14:39:44 +00:00
|
|
|
IFEQ HOST_OS gnu ; {
|
2011-04-18 20:46:21 +00:00
|
|
|
(( GNU / HURD ))
|
2011-04-13 14:39:44 +00:00
|
|
|
USEROSTYPE = gnulinux ;
|
2011-04-20 11:56:58 +00:00
|
|
|
HAVE_LIB_DL = 1 ;
|
|
|
|
DL_LIBS = -ldl ;
|
2011-04-13 14:39:44 +00:00
|
|
|
}{
|
2011-04-13 09:34:27 +00:00
|
|
|
IFEQ HOST_OS gnu/kfreebsd ; {
|
|
|
|
USEROSTYPE = gnulinux ;
|
|
|
|
}{
|
2010-07-03 01:35:26 +00: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 ;
|
2011-04-13 14:39:44 +00:00
|
|
|
} } } } } } }
|
2010-02-21 19:24:28 +00:00
|
|
|
}
|
2009-04-03 11:11:17 +00:00
|
|
|
|
2010-01-21 20:22:30 +00:00
|
|
|
ARG_WITHOUT WITHPIC pic do not build libr as a program independent location ;
|
2010-10-29 01:10:10 +00:00
|
|
|
ARG_WITH WITHNONPIC nonpic build the library archives .a ;
|
2011-10-18 07:38:20 +00:00
|
|
|
(( this hack is required for openbsd ports ))
|
2011-04-25 16:11:01 +00:00
|
|
|
ARG_WITH LIBVERSION=xxx libversion specify different libversion ;
|
2010-01-12 18:57:33 +00:00
|
|
|
|
2011-04-25 16:11:01 +00:00
|
|
|
IFEQ LIBVERSION xxx ; {
|
2011-04-20 11:56:58 +00:00
|
|
|
LIBVERSION = $VERSION ;
|
|
|
|
}
|
|
|
|
|
2014-06-24 10:48:29 +00:00
|
|
|
REPORT PREFIX HAVE_LIB_EWF HAVE_LIB_GMP HAVE_OPENSSL USE_CAPSTONE
|
2014-01-30 00:45:08 +00:00
|
|
|
VERSION USE_LIB_ZIP USE_LIB_MAGIC DEBUGGER CC USERCC
|
2013-06-11 10:25:56 +00:00
|
|
|
USEROSTYPE LIL_ENDIAN LIBVERSION ;
|
2009-03-31 00:57:39 +00:00
|
|
|
|
2009-07-16 00:30:20 +00:00
|
|
|
(( TODO: Add the rest of .pc files here.. add a rule for acr? ))
|
2011-07-14 20:14:11 +00:00
|
|
|
SUBDIRS ./config-user.mk
|
|
|
|
libr/include/r_userconf.h
|
|
|
|
pkgcfg/r_io.pc
|
2011-09-08 13:47:05 +00:00
|
|
|
pkgcfg/r_db.pc
|
2011-09-09 23:30:03 +00:00
|
|
|
pkgcfg/r_magic.pc
|
2011-07-14 20:14:11 +00:00
|
|
|
pkgcfg/r_asm.pc
|
|
|
|
pkgcfg/r_bin.pc
|
|
|
|
pkgcfg/r_anal.pc
|
|
|
|
pkgcfg/r_hash.pc
|
|
|
|
pkgcfg/r_cons.pc
|
|
|
|
pkgcfg/r_diff.pc
|
|
|
|
pkgcfg/r_core.pc
|
|
|
|
pkgcfg/r_lang.pc
|
|
|
|
pkgcfg/r_socket.pc
|
|
|
|
pkgcfg/r_debug.pc
|
|
|
|
pkgcfg/r_reg.pc
|
|
|
|
pkgcfg/r_config.pc
|
|
|
|
pkgcfg/r_flags.pc
|
|
|
|
pkgcfg/r_syscall.pc
|
|
|
|
pkgcfg/r_util.pc
|
|
|
|
pkgcfg/r_search.pc
|
|
|
|
pkgcfg/r_bp.pc
|
|
|
|
pkgcfg/r_parse.pc
|
|
|
|
pkgcfg/r_fs.pc
|
2009-07-16 00:30:20 +00:00
|
|
|
;
|