## Standard openssl configuration targets.
##
## If you edit this file, run this command before committing
## make -f Makefile.org TABLE
## This file is interpolated by the Configure script.
%targets = (
#### Basic configs that should work on any 32-bit box
"gcc" => {
cc => "gcc",
cflags => "",
debug_cflags => "-O0 -g",
release_cflags => "-O3",
thread_cflag => "(unknown)",
bn_ops => "BN_LLONG",
},
"cc" => {
cc => "cc",
cflags => "-O",
thread_cflag => "(unknown)",
},
#### VOS Configurations
"vos-gcc" => {
cc => "gcc",
cflags => "-Wall -DOPENSSL_SYS_VOS -D_POSIX_C_SOURCE=200112L -D_BSD -D_VOS_EXTENDED_NAMES -DB_ENDIAN",
debug_cflags => "-O0 -g -DBN_DEBUG -DREF_CHECK -DCONF_DEBUG -DCRYPTO_MDEBUG",
release_cflags => "-O3",
thread_cflag => "(unknown)",
sys_id => "VOS",
lflags => "-Wl,-map",
bn_ops => "BN_LLONG",
shared_extension => ".so",
},
#### Solaris x86 with GNU C setups
"solaris-x86-gcc" => {
# -DOPENSSL_NO_INLINE_ASM switches off inline assembler. We have
# to do it here because whenever GNU C instantiates an assembler
# template it surrounds it with #APP #NO_APP comment pair which
# (at least Solaris 7_x86) /usr/ccs/bin/as fails to assemble
# with "Illegal mnemonic" error message.
inherit_from => [ asm("x86_elf_asm") ],
cc => "gcc",
cflags => "-march=pentium -Wall -DL_ENDIAN -DOPENSSL_NO_INLINE_ASM",
debug_cflags => "-O0 -g",
release_cflags => "-O3 -fomit-frame-pointer",
thread_cflag => "-D_REENTRANT",
lflags => "-lsocket -lnsl -ldl",
bn_ops => "BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}",
dso_scheme => "dlfcn",
shared_target => "solaris-shared",
shared_cflag => "-fPIC",
shared_ldflag => "-shared",
shared_extension => ".so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
},
"solaris64-x86_64-gcc" => {
# -shared -static-libgcc might appear controversial, but modules
# taken from static libgcc do not have relocations and linking
# them into our shared objects doesn't have any negative side
# effects. On the contrary, doing so makes it possible to use
# gcc shared build with Sun C. Given that gcc generates faster
# code [thanks to inline assembler], I would actually recommend
# to consider using gcc shared build even with vendor compiler:-)
# <appro@fy.chalmers.se>
inherit_from => [ asm("x86_64_asm") ],
cc => "gcc",
cflags => "-m64 -Wall -DL_ENDIAN",
debug_cflags => "-O0 -g",
release_cflags => "-O3",
thread_cflag => "-D_REENTRANT",
lflags => "-lsocket -lnsl -ldl",
bn_ops => "SIXTY_FOUR_BIT_LONG RC4_CHUNK DES_INT DES_UNROLL",
perlasm_scheme => "elf",
dso_scheme => "dlfcn",
shared_target => "solaris-shared",
shared_cflag => "-fPIC",
shared_ldflag => "-m64 -shared -static-libgcc",
shared_extension => ".so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
multilib => "/64",
},
#### Solaris x86 with Sun C setups
"solaris-x86-cc" => {
cc => "cc",
cflags => "-xarch=generic -xstrconst -Xa -DL_ENDIAN",
debug_cflags => "-g",
release_cflags => "-xO5 -xregs=frameptr -xdepend -xbuiltin",
thread_cflag => "-D_REENTRANT",
lflags => "-lsocket -lnsl -ldl",
bn_ops => "BN_LLONG RC4_CHAR RC4_CHUNK DES_PTR DES_UNROLL BF_PTR",
dso_scheme => "dlfcn",
shared_target => "solaris-shared",
shared_cflag => "-KPIC",
shared_ldflag => "-G -dy -z text",
shared_extension => ".so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
},
"solaris64-x86_64-cc" => {
inherit_from => [ asm("x86_64_asm") ],
cc => "cc",
cflags => "-xarch=generic64 -xstrconst -Xa -DL_ENDIAN",
debug_cflags => "-g",
release_cflags => "-xO5 -xdepend -xbuiltin",
thread_cflag => "-D_REENTRANT",
lflags => "-lsocket -lnsl -ldl",
bn_ops => "SIXTY_