2009-03-26 03:53:26 +08:00
|
|
|
PKGNAME radare2
|
2017-12-27 17:44:38 +08:00
|
|
|
VERSION 2.3.0-git
|
2009-03-26 03:53:26 +08:00
|
|
|
CONTACT pancake ; pancake@nopcode.org
|
|
|
|
|
|
|
|
LANG_C!
|
|
|
|
|
2012-09-13 01:35:27 +08:00
|
|
|
ARG_DISABLE DEBUGGER debugger disable native debugger features ;
|
2009-04-20 04:55:25 +08:00
|
|
|
|
2010-01-15 20:02:54 +08:00
|
|
|
(( -ldl -dynamic ... ))
|
|
|
|
USE_DL
|
|
|
|
|
2016-02-07 06:14:05 +08:00
|
|
|
CHKPRG! PATCH patch
|
|
|
|
CHKPRG GIT git
|
2011-10-18 15:38:20 +08:00
|
|
|
CHKLIB magic
|
2011-10-19 00:12:17 +08:00
|
|
|
ARG_WITH USE_MAGIC sysmagic force to use system's magic ;
|
2011-10-18 15:38:20 +08:00
|
|
|
IFAND HAVE_LIB_MAGIC USE_MAGIC {
|
|
|
|
USE_LIB_MAGIC = 1 ;
|
2011-10-19 00:12:17 +08:00
|
|
|
LIBMAGIC = -lmagic ;
|
2011-10-18 15:38:20 +08:00
|
|
|
}{
|
|
|
|
USE_LIB_MAGIC = 0 ;
|
2011-10-19 00:12:17 +08:00
|
|
|
LIBMAGIC = -lr_magic ;
|
2011-10-18 15:38:20 +08:00
|
|
|
}
|
|
|
|
|
2015-04-10 06:17:30 +08:00
|
|
|
(( useful for static builds . see sys/static.sh ))
|
|
|
|
ARG_DISABLE LOADLIBS loadlibs disable loading plugins ;
|
|
|
|
|
2015-04-11 11:00:05 +08:00
|
|
|
ARG_WITHOUT HAVE_FORK fork disable fork ;
|
|
|
|
|
2015-02-17 03:51:24 +08:00
|
|
|
ARG_WITH WITH_CAPSTONE syscapstone force to use system-wide capstone ;
|
2014-06-24 18:48:29 +08:00
|
|
|
PKGCFG CAPSTONE_CFLAGS CAPSTONE_LDFLAGS capstone
|
2015-02-17 03:51:24 +08:00
|
|
|
IFAND WITH_CAPSTONE HAVE_PKGCFG_CAPSTONE {
|
2014-06-24 23:47:38 +08:00
|
|
|
USE_CAPSTONE = 1 ;
|
|
|
|
}{
|
|
|
|
USE_CAPSTONE = 0 ;
|
|
|
|
}
|
2014-06-24 18:48:29 +08:00
|
|
|
|
2014-01-30 08:45:08 +08: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 ))
|
|
|
|
}
|
|
|
|
|
2015-02-07 08:41:54 +08:00
|
|
|
ARG_WITHOUT WITH_GPL gpl do not build GPL code (grub, cxx, ... ) ;
|
|
|
|
|
2012-12-15 00:46:33 +08:00
|
|
|
(( TODO must deprecate
|
2010-05-24 17:15:32 +08:00
|
|
|
CHKLIB gmp
|
|
|
|
ARG_WITHOUT HAVE_GMP gmp disable GMP dependency ;
|
|
|
|
IFNOT HAVE_GMP { HAVE_LIB_GMP = 0 ; }
|
2016-05-16 05:02:37 +08:00
|
|
|
HAVE_GMP = 0 ;
|
2012-12-15 00:46:33 +08:00
|
|
|
))
|
|
|
|
HAVE_LIB_GMP = 0 ;
|
2009-03-31 08:57:39 +08:00
|
|
|
|
2011-07-15 04:14:11 +08:00
|
|
|
CHKLIB ssl
|
2011-07-14 01:22:38 +08:00
|
|
|
PKGCFG SSL_CFLAGS SSL_LDFLAGS openssl
|
2013-03-26 20:50:05 +08:00
|
|
|
IFNOTNULL SSL_LDFLAGS {
|
2012-10-26 08:49:33 +08: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-15 04:14:11 +08:00
|
|
|
IFNULL SSL_LDFLAGS {
|
|
|
|
IFNOT HAVE_LIB_SSL {
|
|
|
|
HAVE_OPENSSL = 0 ;
|
|
|
|
}{
|
|
|
|
SSL_LDFLAGS = -lssl ;
|
|
|
|
}
|
|
|
|
}
|
2010-07-17 05:13:34 +08:00
|
|
|
|
2012-08-27 23:02:58 +08:00
|
|
|
ARG_WITH USE_RPATH rpath use rpath to build ;
|
|
|
|
|
2009-04-03 19:11:17 +08:00
|
|
|
(( rules for the compiler ))
|
|
|
|
ARG_WITH USERCC=gcc compiler Define compiler to use (see mk/) ;
|
2013-06-07 19:21:51 +08:00
|
|
|
ARG_WITH USEROSTYPE=auto ostype Choose OS type ( gnulinux windows darwin haiku ) ;
|
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 ; {
|
2015-11-23 09:36:02 +08:00
|
|
|
IFEQ HOST_OS mingw32_nt-6.2 ; {
|
|
|
|
USEROSTYPE = mingw32 ;
|
|
|
|
}{
|
2015-07-13 07:45:38 +08:00
|
|
|
IFEQ HOST_OS mingw32_nt ; {
|
2015-11-12 06:40:22 +08:00
|
|
|
USEROSTYPE = mingw32 ;
|
2015-07-13 07:45:38 +08:00
|
|
|
}{
|
2010-02-22 03:24:28 +08:00
|
|
|
IFEQ HOST_OS linux ; {
|
|
|
|
USEROSTYPE = gnulinux ;
|
|
|
|
}{
|
2011-04-13 22:39:44 +08:00
|
|
|
IFEQ HOST_OS gnu ; {
|
2011-04-19 04:46:21 +08:00
|
|
|
(( GNU / HURD ))
|
2011-04-13 22:39:44 +08:00
|
|
|
USEROSTYPE = gnulinux ;
|
2011-04-20 19:56:58 +08:00
|
|
|
HAVE_LIB_DL = 1 ;
|
|
|
|
DL_LIBS = -ldl ;
|
2011-04-13 22:39:44 +08:00
|
|
|
}{
|
2017-01-18 07:47:46 +08:00
|
|
|
IFEQ HOST_OS sunos ; {
|
|
|
|
USEROSTYPE = solaris ;
|
|
|
|
}{
|
2011-04-13 17:34:27 +08:00
|
|
|
IFEQ HOST_OS gnu/kfreebsd ; {
|
2015-10-25 10:53:55 +08:00
|
|
|
USEROSTYPE = bsd ;
|
2011-04-13 17:34:27 +08:00
|
|
|
}{
|
2010-07-03 09:35:26 +08:00
|
|
|
IFEQ HOST_OS netbsd ; {
|
2015-10-25 10:53:55 +08:00
|
|
|
USEROSTYPE = bsd ;
|
2010-07-03 09:35:26 +08:00
|
|
|
}{
|
|
|
|
IFEQ HOST_OS freebsd ; {
|
2015-10-25 10:53:55 +08:00
|
|
|
USEROSTYPE = bsd ;
|
2010-07-03 09:35:26 +08:00
|
|
|
}{
|
|
|
|
IFEQ HOST_OS openbsd ; {
|
2015-10-25 10:53:55 +08:00
|
|
|
USEROSTYPE = bsd ;
|
2010-07-03 09:35:26 +08:00
|
|
|
}{
|
|
|
|
IFEQ HOST_OS darwin ; {
|
|
|
|
USEROSTYPE = darwin ;
|
2017-01-18 07:47:46 +08:00
|
|
|
} } } } } } } } } }
|
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-10-29 09:10:10 +08:00
|
|
|
ARG_WITH WITHNONPIC nonpic build the library archives .a ;
|
2011-10-18 15:38:20 +08:00
|
|
|
(( this hack is required for openbsd ports ))
|
2011-04-26 00:11:01 +08:00
|
|
|
ARG_WITH LIBVERSION=xxx libversion specify different libversion ;
|
2017-10-09 22:57:43 +08:00
|
|
|
ARG_WITHOUT HAVE_JEMALLOC jemalloc build without jemalloc ;
|
2010-01-13 02:57:33 +08:00
|
|
|
|
2011-04-26 00:11:01 +08:00
|
|
|
IFEQ LIBVERSION xxx ; {
|
2011-04-20 19:56:58 +08:00
|
|
|
LIBVERSION = $VERSION ;
|
|
|
|
}
|
|
|
|
|
2015-04-11 11:00:05 +08:00
|
|
|
REPORT PREFIX HAVE_LIB_GMP HAVE_OPENSSL USE_CAPSTONE HAVE_FORK
|
2014-01-30 08:45:08 +08:00
|
|
|
VERSION USE_LIB_ZIP USE_LIB_MAGIC DEBUGGER CC USERCC
|
2016-05-16 05:02:37 +08:00
|
|
|
USEROSTYPE LIBVERSION BUILD HOST TARGET ;
|
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? ))
|
2011-07-15 04:14:11 +08:00
|
|
|
SUBDIRS ./config-user.mk
|
|
|
|
libr/include/r_userconf.h
|
|
|
|
pkgcfg/r_io.pc
|
2011-09-10 07:30:03 +08:00
|
|
|
pkgcfg/r_magic.pc
|
2011-07-15 04:14:11 +08:00
|
|
|
pkgcfg/r_asm.pc
|
|
|
|
pkgcfg/r_bin.pc
|
|
|
|
pkgcfg/r_anal.pc
|
|
|
|
pkgcfg/r_hash.pc
|
|
|
|
pkgcfg/r_cons.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
|
2016-10-27 07:02:26 +08:00
|
|
|
pkgcfg/r_flag.pc
|
2011-07-15 04:14:11 +08:00
|
|
|
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 08:30:20 +08:00
|
|
|
;
|