radare2/configure.acr

298 lines
6.4 KiB
Plaintext
Raw Normal View History

PKGNAME radare2
2022-03-23 10:52:05 +00:00
VERSION 5.6.7
CONTACT pancake ; pancake@nopcode.org
LANG_C!
ARG_DISABLE DEBUGGER debugger disable native debugger features ;
2010-01-15 12:02:54 +00:00
(( -ldl -dynamic ... ))
USE_DL
USE_PKGCONFIG
CHKPRG! PATCH patch
CHKPRG! AR ar
CHKPRG GIT git
CHKPRG GPERF gperf
CHKLIB magic
ARG_WITH USE_MAGIC sysmagic force to use system's magic ;
IFAND HAVE_LIB_MAGIC USE_MAGIC {
USE_LIB_MAGIC = 1 ;
LIBMAGIC = -lmagic ;
}{
USE_LIB_MAGIC = 0 ;
2018-01-29 10:36:59 +00:00
LIBMAGIC = '' ;
}
ARG_DISABLE WANT_THREADS threads disable use of thread apis ;
(( useful for static builds . see sys/static.sh ))
ARG_DISABLE LOADLIBS loadlibs disable loading plugins ;
ARG_WITHOUT WANT_DYLINK dylink disable support for dynamic loading of plugins ;
2015-04-11 03:00:05 +00:00
ARG_WITHOUT HAVE_FORK fork disable fork ;
ARG_WITHOUT WANT_PTRACE_WRAP ptrace-wrap build ptrace-wrap support needed for the iaito debugger on Linux ;
ARG_WITHOUT WANT_GPERF gperf do not statically link the sdb databases even if gperf is found ;
ARG_WITHOUT WANT_CAPSTONE capstone dont build the capstone dependency ;
IFNOT WANT_GPERF {
HAVE_GPERF = 0 ;
}
2015-04-11 03:00:05 +00:00
ARG_WITH WITH_LIBR libr build libr.a and libr.dylib ;
(( CAPSTONE ))
ARG_WITH USE_CS5 capstone5 build next branch of capstone5 (default) ;
ARG_WITH USE_CS4 capstone4 build v4 branch of capstone ;
2015-02-16 19:51:24 +00:00
ARG_WITH WITH_CAPSTONE syscapstone force to use system-wide capstone ;
IF WITH_CAPSTONE {
PKGCFG CAPSTONE_CFLAGS CAPSTONE_LDFLAGS capstone
}
2015-02-16 19:51:24 +00:00
IFAND WITH_CAPSTONE HAVE_PKGCFG_CAPSTONE {
USE_CAPSTONE = 1 ;
}{
USE_CAPSTONE = 0 ;
}
2014-06-24 10:48:29 +00:00
(( LZ4 ))
PKGCFG LZ4_CFLAGS LZ4_LDFLAGS liblz4
ARG_WITH WITH_SYSLZ4 syslz4 force to use system's liblz4 ;
IFAND WITH_SYSLZ4 LZ4_CFLAGS {
USE_SYSLZ4 = 1 ;
}{
USE_SYSLZ4 = 0 ;
}
(( ZIP ))
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 ;
2018-01-29 10:36:59 +00:00
LIBZIP = '' ; (( static linking to shlr/zip ))
}
}{
USE_LIB_ZIP = 0 ;
2018-01-29 10:36:59 +00:00
LIBZIP = '' ; (( static linking to shlr/zip ))
}
CHKLIB xxhash
ARG_WITH USE_XXHASH sysxxhash force to use system's xxhash ;
IFAND HAVE_LIB_XXHASH USE_XXHASH {
USE_LIB_XXHASH = 1 ;
LIBXXHASH = -lxxhash ;
}{
USE_LIB_XXHASH = 0 ;
LIBXXHASH = '' ;
}
ARG_WITHOUT WITH_GPL gpl do not build GPL code (grub, cxx, ... ) ;
CHKDECL sys/personality.h ADDR_NO_RANDOMIZE
CHKDECL features.h __GLIBC__
CHKFNC c arc4random_uniform
CHKFNC c explicit_bzero
2018-12-02 23:32:39 +00:00
CHKFNC c explicit_memset
2018-11-28 16:08:09 +00:00
CHKFNC c clock_nanosleep
2019-11-06 11:41:36 +00:00
CHKFNC c sigaction
CHKFNC c clock_gettime
IFNOT HAVE_CLOCK_GETTIME {
IF HAVE_DECL___GLIBC__ {
CLOCK_LDFLAGS += '-lrt' ;
}
}
CHKFLG SUPPORT_GNU99 -std=gnu99 ;
(( TODO must deprecate
CHKLIB gmp
ARG_WITHOUT HAVE_GMP gmp disable GMP dependency ;
IFNOT HAVE_GMP { HAVE_LIB_GMP = 0 ; }
HAVE_GMP = 0 ;
))
HAVE_LIB_GMP = 0 ;
CHKLIB ssl
PKGCFG SSL_CFLAGS SSL_LDFLAGS openssl
2013-03-26 12:50:05 +00:00
IFNOTNULL SSL_LDFLAGS {
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 ;
}
IFNULL SSL_LDFLAGS {
IFNOT HAVE_LIB_SSL {
HAVE_OPENSSL = 0 ;
}{
SSL_LDFLAGS = -lssl ;
}
}
CHKVER libuv 1.0.0
IF HAVE_LIBUV_VERSION_1_0_0 {
PKGCFG LIBUV_CFLAGS LIBUV_LDFLAGS libuv
IFNOTNULL LIBUV_LDFLAGS {
HAVE_LIBUV = 1 ;
}{
HAVE_LIBUV = 0 ;
}
ARG_WITHOUT WANT_LIBUV libuv disable libuv dependency ;
IFNOT WANT_LIBUV {
HAVE_LIBUV = 0 ;
}
}{
HAVE_LIBUV = 0 ;
}
ARG_WITH USE_RPATH rpath use rpath to build ;
(( rules for the compiler ))
ARG_WITH USERCC=gcc compiler Define compiler to use (see mk/) ;
ARG_WITH USEROSTYPE=auto ostype Choose OS ( android windows wsl mingw32 bsd solaris gnulinux darwin haiku ) ;
(( TODO: throw error if unknown ostype ))
(( TODO: handle BSD os as different ostype? ))
IFEQ USEROSTYPE auto ; {
2015-11-23 01:36:02 +00:00
IFEQ HOST_OS mingw32_nt-6.2 ; {
USEROSTYPE = mingw32 ;
}{
2015-07-12 23:45:38 +00:00
IFEQ HOST_OS mingw32_nt ; {
2015-11-11 22:40:22 +00:00
USEROSTYPE = mingw32 ;
2015-07-12 23:45:38 +00:00
}{
2019-02-16 10:43:51 +00:00
IFEQ HOST_OS wsl ; {
USEROSTYPE = wsl ;
}{
IFEQ HOST_OS linux ; {
USEROSTYPE = gnulinux ;
}{
IFEQ HOST_OS serenityos ; {
2021-07-07 22:24:36 +00:00
USEROSTYPE = serenityos ;
HAVE_LIB_DL = 1 ;
DL_LIBS = -ldl ;
}{
IFEQ HOST_OS gnu ; {
2011-04-18 20:46:21 +00:00
(( GNU / HURD ))
USEROSTYPE = gnulinux ;
HAVE_LIB_DL = 1 ;
DL_LIBS = -ldl ;
}{
IFEQ HOST_OS sunos ; {
USEROSTYPE = solaris ;
}{
IFEQ HOST_OS gnu/kfreebsd ; {
2015-10-25 02:53:55 +00:00
USEROSTYPE = bsd ;
}{
IFEQ HOST_OS netbsd ; {
2015-10-25 02:53:55 +00:00
USEROSTYPE = bsd ;
}{
IFEQ HOST_OS freebsd ; {
2015-10-25 02:53:55 +00:00
USEROSTYPE = bsd ;
}{
IFEQ HOST_OS openbsd ; {
2015-10-25 02:53:55 +00:00
USEROSTYPE = bsd ;
}{
IFEQ HOST_OS darwin ; {
USEROSTYPE = darwin ;
}{
IFEQ HOST_OS haiku ; {
USEROSTYPE = haiku ;
} } } } } } } } } } } } }
}
(( this hack is required for openbsd ports ))
2011-04-25 16:11:01 +00:00
ARG_WITH LIBVERSION=xxx libversion specify different libversion ;
2017-10-09 14:57:43 +00:00
ARG_WITHOUT HAVE_JEMALLOC jemalloc build without jemalloc ;
2011-04-25 16:11:01 +00:00
IFEQ LIBVERSION xxx ; {
LIBVERSION = $VERSION ;
}
IFEQ USEROSTYPE gnulinux ; {
HAVE_PTRACE = 1 ;
USE_PTRACE_WRAP = 1 ;
}{
2019-02-16 10:43:51 +00:00
IFEQ USEROSTYPE wsl ; {
2019-02-17 03:45:12 +00:00
BUILD = ${SPLIT_CPU}-unknown-linux-gnu ;
HOST = $BUILD ;
TARGET = $HOST ;
USEROSTYPE = gnulinux ;
2019-02-16 10:43:51 +00:00
HAVE_PTRACE = 1 ;
USE_PTRACE_WRAP = 0 ;
}{
2019-01-22 23:13:59 +00:00
IFEQ USEROSTYPE android ; {
HAVE_PTRACE = 1 ;
USE_PTRACE_WRAP = 1 ;
}{
IFEQ USEROSTYPE mingw32 ; {
HAVE_PTRACE = 0 ;
USE_PTRACE_WRAP = 0 ;
}{
IFEQ USEROSTYPE solaris ; {
HAVE_PTRACE = 0 ;
USE_PTRACE_WRAP = 0 ;
}{
IFEQ USEROSTYPE haiku ; {
HAVE_PTRACE = 0 ;
USE_PTRACE_WRAP = 0 ;
}{
HAVE_PTRACE = 1 ;
USE_PTRACE_WRAP = 0 ;
} } } } } }
IFNOT DEBUGGER {
HAVE_PTRACE = 0 ;
}
IFEQ WANT_PTRACE_WRAP 0 ; {
USE_PTRACE_WRAP = 0 ;
}
ARG_WITH R_CHECKS_LEVEL=2 checks-level value between 0 and 3 to enable different level of assert (see R_CHECKS_LEVEL) ;
2022-02-25 12:30:43 +00:00
REPORT
BUILD CC CFLAGS DEBUGGER HAVE_ARC4RANDOM_UNIFORM HAVE_EXPLICIT_BZERO
HAVE_EXPLICIT_MEMSET HAVE_FORK HAVE_GPERF HAVE_LIBUV HAVE_LIB_GMP
HAVE_OPENSSL HAVE_PTRACE HOST LDFLAGS LIBVERSION PKGCONFIG PREFIX
R_CHECKS_LEVEL TARGET USERCC USEROSTYPE USE_CAPSTONE USE_LIB_MAGIC
USE_LIB_XXHASH USE_LIB_ZIP USE_PTRACE_WRAP USE_SYSLZ4 VERSION WANT_DYLINK
;
(( TODO: Add the rest of .pc files here.. add a rule for acr? ))
SUBDIRS ./config-user.mk
libr/include/r_userconf.h
pkgcfg/r_io.pc
pkgcfg/r_magic.pc
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-26 23:02:26 +00:00
pkgcfg/r_flag.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
pkgcfg/r_egg.pc
pkgcfg/r_crypto.pc
;