diff options
Diffstat (limited to 'botan/src/build-data')
54 files changed, 1846 insertions, 0 deletions
diff --git a/botan/src/build-data/arch/alpha.txt b/botan/src/build-data/arch/alpha.txt new file mode 100644 index 0000000..60b2643 --- /dev/null +++ b/botan/src/build-data/arch/alpha.txt @@ -0,0 +1,31 @@ +realname "DEC Alpha" + +default_submodel alpha-ev4 +endian little + +<aliases> +axp +alphaaxp +</aliases> + +<submodels> +alpha-ev4 +alpha-ev5 +alpha-ev56 +alpha-pca56 +alpha-ev6 +alpha-ev67 +alpha-ev68 +alpha-ev7 +</submodels> + +<submodel_aliases> +alphaev4 -> alpha-ev4 +alphaev5 -> alpha-ev5 +alphaev56 -> alpha-ev56 +alphapca56 -> alpha-pca56 +alphaev6 -> alpha-ev6 +alphaev67 -> alpha-ev67 +alphaev68 -> alpha-ev68 +alphaev7 -> alpha-ev7 +</submodel_aliases> diff --git a/botan/src/build-data/arch/amd64.txt b/botan/src/build-data/arch/amd64.txt new file mode 100644 index 0000000..216588e --- /dev/null +++ b/botan/src/build-data/arch/amd64.txt @@ -0,0 +1,27 @@ +realname "x86-64" + +default_submodel opteron + +endian little +unaligned ok + +<aliases> +x86-64 +x86_64 # for RPM +</aliases> + +<submodels> +opteron +em64t +core2 +</submodels> + +<submodel_aliases> +core2duo -> core2 +intelcore2 -> core2 +intelcore2duo -> core2 + +amdopteron -> opteron +athlon64 -> opteron +k8 -> opteron +</submodel_aliases> diff --git a/botan/src/build-data/arch/arm.txt b/botan/src/build-data/arch/arm.txt new file mode 100644 index 0000000..c6be4ad --- /dev/null +++ b/botan/src/build-data/arch/arm.txt @@ -0,0 +1,23 @@ +realname "ARM" + +default_submodel arm2 + +<submodels> +arm2 +arm3 +arm6 +arm7 +arm8 +arm9 +strongarm +strongarm110 +strongarm1100 +xscale +</submodels> + +<submodel_aliases> +sa110 -> strongarm110 +sa1100 -> strongarm1100 +strongarm1110 -> strongarm1100 +armv5tel -> xscale +</submodel_aliases> diff --git a/botan/src/build-data/arch/hitachi-sh.txt b/botan/src/build-data/arch/hitachi-sh.txt new file mode 100644 index 0000000..8e9f7ee --- /dev/null +++ b/botan/src/build-data/arch/hitachi-sh.txt @@ -0,0 +1,11 @@ +realname "Hitachi SH" + +default_submodel hitachi-sh1 + +<submodels> +hitachi-sh1 +hitachi-sh2 +hitachi-sh3 +hitachi-sh3e +hitachi-sh4 +</submodels> diff --git a/botan/src/build-data/arch/hppa.txt b/botan/src/build-data/arch/hppa.txt new file mode 100644 index 0000000..4cdd408 --- /dev/null +++ b/botan/src/build-data/arch/hppa.txt @@ -0,0 +1,17 @@ +realname "HP-PA" + +default_submodel hppa1.0 + +<aliases> +hp-pa +parisc +pa-risc +hp-parisc +hp-pa-risc +</aliases> + +<submodels> +hppa1.0 +hppa1.1 +hppa2.0 +</submodels> diff --git a/botan/src/build-data/arch/ia32.txt b/botan/src/build-data/arch/ia32.txt new file mode 100644 index 0000000..aafcf9a --- /dev/null +++ b/botan/src/build-data/arch/ia32.txt @@ -0,0 +1,60 @@ +realname "IA-32" + +default_submodel i386 + +endian little +unaligned ok + +<aliases> +x86 +ix86 +80x86 +i86pc # for Solaris +</aliases> + +<submodels> +i386 +i486 +i586 +i686 +pentium2 +pentium3 +pentium4 +pentium-m +prescott +k6 +athlon +</submodels> + +<submodel_aliases> +pentium -> i586 +pentiumpro -> i686 +pentium_pro -> i686 +pentium2 -> pentium2 +pentiumii -> pentium2 +pentium3 -> pentium3 +pentiumiii -> pentium3 + +x86family5 -> i586 +x86family6 -> i686 + +pentiumm -> pentium-m +intelpentiumm -> pentium-m + +intelpentium4 -> pentium4 + +duron -> athlon +athlon-xp -> athlon +k7 -> athlon + +p2 -> i686 +p3 -> i686 +p4 -> pentium4 + +intelcput2250 -> prescott +intelcput2300 -> prescott +intelcput2400 -> prescott +intelcput2500 -> prescott +intelcput2600 -> prescott +intelcput2700 -> prescott +</submodel_aliases> diff --git a/botan/src/build-data/arch/ia64.txt b/botan/src/build-data/arch/ia64.txt new file mode 100644 index 0000000..7ca84c0 --- /dev/null +++ b/botan/src/build-data/arch/ia64.txt @@ -0,0 +1,15 @@ +realname "IA-64" + +# This is safe: only affects tuning, not ISA +default_submodel itanium2 + +<aliases> +merced +itanium +</aliases> + +<submodels> +itanium1 +itanium2 +mckinley +</submodels> diff --git a/botan/src/build-data/arch/m68k.txt b/botan/src/build-data/arch/m68k.txt new file mode 100644 index 0000000..27f246a --- /dev/null +++ b/botan/src/build-data/arch/m68k.txt @@ -0,0 +1,15 @@ +realname "Motorola 680x0" + +default_submodel 68020 + +<aliases> +680x0 +68k +</aliases> + +<submodels> +68020 +68030 +68040 +68060 +</submodels> diff --git a/botan/src/build-data/arch/mips32.txt b/botan/src/build-data/arch/mips32.txt new file mode 100644 index 0000000..9846c8f --- /dev/null +++ b/botan/src/build-data/arch/mips32.txt @@ -0,0 +1,22 @@ +realname "MIPS" + +default_submodel r3000 + +<aliases> +mips +mipsel # For Debian +</aliases> + +<submodels> +r3000 +r6000 +</submodels> + +<submodel_aliases> +r3k -> r3000 +r6k -> r6000 + +# These are for RPM +mipsbe -> r3000 +mipsle -> r3000 +</submodel_aliases> diff --git a/botan/src/build-data/arch/mips64.txt b/botan/src/build-data/arch/mips64.txt new file mode 100644 index 0000000..dbb49d0 --- /dev/null +++ b/botan/src/build-data/arch/mips64.txt @@ -0,0 +1,22 @@ +realname "MIPS64" + +default_submodel r4400 + +<submodels> +r4000 +r4100 +r4300 +r4400 +r4600 +r4560 +r5000 +r8000 +r10000 +</submodels> + +<submodel_aliases> +r4k -> r4000 +r5k -> r5000 +r8k -> r8000 +r10k -> r10000 +</submodel_aliases> diff --git a/botan/src/build-data/arch/ppc.txt b/botan/src/build-data/arch/ppc.txt new file mode 100644 index 0000000..16112f3 --- /dev/null +++ b/botan/src/build-data/arch/ppc.txt @@ -0,0 +1,24 @@ +realname "PowerPC" + +endian big + +default_submodel ppc604 + +<aliases> +powerpc +</aliases> + +<submodel_aliases> +g3 -> ppc740 +g4 -> ppc7450 +</submodel_aliases> + +<submodels> +ppc601 +ppc603 +ppc604 +ppc740 +ppc750 +ppc7400 +ppc7450 +</submodels> diff --git a/botan/src/build-data/arch/ppc64.txt b/botan/src/build-data/arch/ppc64.txt new file mode 100644 index 0000000..7c8944f --- /dev/null +++ b/botan/src/build-data/arch/ppc64.txt @@ -0,0 +1,26 @@ +realname "PowerPC 64" + +endian big + +default_submodel power4 + +<aliases> +powerpc64 +</aliases> + +<submodel_aliases> +g5 -> ppc970 +</submodel_aliases> + +<submodels> +rs64a +ppc970 +power3 +power4 +power5 +cellppu +</submodels> + +<submodel_aliases> +cellbroadbandengine -> cellppu +</submodel_aliases> diff --git a/botan/src/build-data/arch/s390.txt b/botan/src/build-data/arch/s390.txt new file mode 100644 index 0000000..392f513 --- /dev/null +++ b/botan/src/build-data/arch/s390.txt @@ -0,0 +1,7 @@ +realname "S/390 31-bit" + +default_submodel s390 + +<submodels> +s390 +</submodels> diff --git a/botan/src/build-data/arch/s390x.txt b/botan/src/build-data/arch/s390x.txt new file mode 100644 index 0000000..49fb0bd --- /dev/null +++ b/botan/src/build-data/arch/s390x.txt @@ -0,0 +1,7 @@ +realname "S/390 64-bit" + +default_submodel s390x + +<submodels> +s390x +</submodels> diff --git a/botan/src/build-data/arch/sparc32.txt b/botan/src/build-data/arch/sparc32.txt new file mode 100644 index 0000000..6b752df --- /dev/null +++ b/botan/src/build-data/arch/sparc32.txt @@ -0,0 +1,34 @@ +realname "SPARC" + +# V7 doesn't have integer multiply, so it will be bitterly slow for some things +# (especially BigInt). Also, it's fairly rare nowadays, so we default to V8. +default_submodel sparc32-v8 + +endian big + +<aliases> +sparc +</aliases> + +<submodels> +sparc32-v7 +sparc32-v8 +sparc32-v9 +</submodels> + +<submodel_aliases> +cypress -> sparc32-v7 +supersparc -> sparc32-v8 +hypersparc -> sparc32-v8 +microsparc -> sparc32-v8 +sparclite -> sparc32-v8 + +sparcv7 -> sparc32-v7 +sparcv8 -> sparc32-v8 +sparcv9 -> sparc32-v9 + +sparc-v7 -> sparc32-v7 +sparc-v8 -> sparc32-v8 +sparc-v9 -> sparc32-v9 +</submodel_aliases> + diff --git a/botan/src/build-data/arch/sparc64.txt b/botan/src/build-data/arch/sparc64.txt new file mode 100644 index 0000000..c0575ef --- /dev/null +++ b/botan/src/build-data/arch/sparc64.txt @@ -0,0 +1,15 @@ +realname "SPARC64" + +default_submodel sparc64-ultra + +<submodels> +sparc64-ultra +sparc64-ultra2 +sparc64-ultra3 +</submodels> + +<submodel_aliases> +ultrasparc -> sparc64-ultra +ultrasparc2 -> sparc64-ultra2 +ultrasparc3 -> sparc64-ultra3 +</submodel_aliases> diff --git a/botan/src/build-data/botan-config.in b/botan/src/build-data/botan-config.in new file mode 100644 index 0000000..f3fa3db --- /dev/null +++ b/botan/src/build-data/botan-config.in @@ -0,0 +1,69 @@ +#!/bin/sh + +# For normal builds: +guess_prefix=`dirname \`dirname $0\`` +includedir=%{includedir} +libdir=%{libdir} + +# For workspace builds: +#guess_prefix=`dirname $0` +#includedir=build/include +#libdir= + +install_prefix=%{prefix} +prefix= + +usage() +{ + echo "$0 [--prefix[=DIR]] [--version] [--libs] [--cflags]" + exit 1 +} + +if test $# -eq 0; then + usage +fi + +if test `echo $guess_prefix | cut -c 1` = "/"; then + prefix=$guess_prefix +else + prefix=$install_prefix +fi + +while test $# -gt 0; do + case "$1" in + -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;; + *) optarg= ;; + esac + case "$1" in + --prefix=*) + prefix=$optarg + ;; + --prefix) + echo $prefix + ;; + --version) + echo %{version} + exit 0 + ;; + --cflags) + if [ $prefix != "/usr" -a $prefix != "/usr/local" ] + then + echo -I$prefix/$includedir + fi + ;; + --libs) + if [ $prefix != "/usr" -a $prefix != "/usr/local" ] + then + echo -L$prefix/$libdir -lbotan %{link_to} + else + echo -lbotan %{link_to} + fi + ;; + *) + usage + ;; + esac + shift +done + +exit 0 diff --git a/botan/src/build-data/botan.doxy.in b/botan/src/build-data/botan.doxy.in new file mode 100644 index 0000000..87d6e58 --- /dev/null +++ b/botan/src/build-data/botan.doxy.in @@ -0,0 +1,233 @@ +# Doxyfile 1.5.4 + +#--------------------------------------------------------------------------- +# Project related configuration options +#--------------------------------------------------------------------------- +DOXYFILE_ENCODING = UTF-8 +PROJECT_NAME = Botan +PROJECT_NUMBER = %{version} +OUTPUT_DIRECTORY = doc/doxygen +CREATE_SUBDIRS = NO +OUTPUT_LANGUAGE = English +BRIEF_MEMBER_DESC = YES +REPEAT_BRIEF = YES +ABBREVIATE_BRIEF = +ALWAYS_DETAILED_SEC = NO +INLINE_INHERITED_MEMB = NO +FULL_PATH_NAMES = YES +STRIP_FROM_PATH = +STRIP_FROM_INC_PATH = +SHORT_NAMES = NO +JAVADOC_AUTOBRIEF = NO +QT_AUTOBRIEF = NO +MULTILINE_CPP_IS_BRIEF = NO +DETAILS_AT_TOP = NO +INHERIT_DOCS = YES +SEPARATE_MEMBER_PAGES = NO +TAB_SIZE = 8 +ALIASES = +OPTIMIZE_OUTPUT_FOR_C = NO +OPTIMIZE_OUTPUT_JAVA = NO +BUILTIN_STL_SUPPORT = NO +CPP_CLI_SUPPORT = NO +SIP_SUPPORT = NO +DISTRIBUTE_GROUP_DOC = NO +SUBGROUPING = YES +TYPEDEF_HIDES_STRUCT = NO +#--------------------------------------------------------------------------- +# Build related configuration options +#--------------------------------------------------------------------------- +EXTRACT_ALL = YES +EXTRACT_PRIVATE = NO +EXTRACT_STATIC = NO +EXTRACT_LOCAL_CLASSES = YES +EXTRACT_LOCAL_METHODS = NO +EXTRACT_ANON_NSPACES = NO +HIDE_UNDOC_MEMBERS = NO +HIDE_UNDOC_CLASSES = NO +HIDE_FRIEND_COMPOUNDS = NO +HIDE_IN_BODY_DOCS = NO +INTERNAL_DOCS = NO +CASE_SENSE_NAMES = YES +HIDE_SCOPE_NAMES = NO +SHOW_INCLUDE_FILES = YES +INLINE_INFO = YES +SORT_MEMBER_DOCS = YES +SORT_BRIEF_DOCS = YES +SORT_BY_SCOPE_NAME = NO +GENERATE_TODOLIST = YES +GENERATE_TESTLIST = YES +GENERATE_BUGLIST = YES +GENERATE_DEPRECATEDLIST= YES +ENABLED_SECTIONS = +MAX_INITIALIZER_LINES = 30 +SHOW_USED_FILES = YES +SHOW_DIRECTORIES = NO +FILE_VERSION_FILTER = +#--------------------------------------------------------------------------- +# configuration options related to warning and progress messages +#--------------------------------------------------------------------------- +QUIET = YES +WARNINGS = YES +WARN_IF_UNDOCUMENTED = NO +WARN_IF_DOC_ERROR = YES +WARN_NO_PARAMDOC = NO +WARN_FORMAT = "$file:$line: $text" +WARN_LOGFILE = +#--------------------------------------------------------------------------- +# configuration options related to the input files +#--------------------------------------------------------------------------- +INPUT = src +INPUT_ENCODING = UTF-8 +FILE_PATTERNS = +RECURSIVE = YES +EXCLUDE = +EXCLUDE_SYMLINKS = NO +EXCLUDE_PATTERNS = +EXCLUDE_SYMBOLS = +EXAMPLE_PATH = +EXAMPLE_PATTERNS = +EXAMPLE_RECURSIVE = NO +IMAGE_PATH = +INPUT_FILTER = +FILTER_PATTERNS = +FILTER_SOURCE_FILES = NO +#--------------------------------------------------------------------------- +# configuration options related to source browsing +#--------------------------------------------------------------------------- +SOURCE_BROWSER = YES +INLINE_SOURCES = YES +STRIP_CODE_COMMENTS = NO +REFERENCED_BY_RELATION = YES +REFERENCES_RELATION = YES +REFERENCES_LINK_SOURCE = YES +USE_HTAGS = NO +VERBATIM_HEADERS = YES +#--------------------------------------------------------------------------- +# configuration options related to the alphabetical class index +#--------------------------------------------------------------------------- +ALPHABETICAL_INDEX = YES +COLS_IN_ALPHA_INDEX = 5 +IGNORE_PREFIX = +#--------------------------------------------------------------------------- +# configuration options related to the HTML output +#--------------------------------------------------------------------------- +GENERATE_HTML = YES +HTML_OUTPUT = html +HTML_FILE_EXTENSION = .html +HTML_HEADER = +HTML_FOOTER = +HTML_STYLESHEET = +HTML_ALIGN_MEMBERS = YES +GENERATE_HTMLHELP = NO +HTML_DYNAMIC_SECTIONS = NO +CHM_FILE = +HHC_LOCATION = +GENERATE_CHI = NO +BINARY_TOC = NO +TOC_EXPAND = NO +DISABLE_INDEX = NO +ENUM_VALUES_PER_LINE = 4 +GENERATE_TREEVIEW = NO +TREEVIEW_WIDTH = 250 +#--------------------------------------------------------------------------- +# configuration options related to the LaTeX output +#--------------------------------------------------------------------------- +GENERATE_LATEX = NO +LATEX_OUTPUT = latex +LATEX_CMD_NAME = latex +MAKEINDEX_CMD_NAME = makeindex +COMPACT_LATEX = NO +PAPER_TYPE = a4wide +EXTRA_PACKAGES = +LATEX_HEADER = +PDF_HYPERLINKS = NO +USE_PDFLATEX = NO +LATEX_BATCHMODE = NO +LATEX_HIDE_INDICES = NO +#--------------------------------------------------------------------------- +# configuration options related to the RTF output +#--------------------------------------------------------------------------- +GENERATE_RTF = NO +RTF_OUTPUT = rtf +COMPACT_RTF = NO +RTF_HYPERLINKS = NO +RTF_STYLESHEET_FILE = +RTF_EXTENSIONS_FILE = +#--------------------------------------------------------------------------- +# configuration options related to the man page output +#--------------------------------------------------------------------------- +GENERATE_MAN = NO +MAN_OUTPUT = man +MAN_EXTENSION = .3 +MAN_LINKS = NO +#--------------------------------------------------------------------------- +# configuration options related to the XML output +#--------------------------------------------------------------------------- +GENERATE_XML = NO +XML_OUTPUT = xml +XML_SCHEMA = +XML_DTD = +XML_PROGRAMLISTING = YES +#--------------------------------------------------------------------------- +# configuration options for the AutoGen Definitions output +#--------------------------------------------------------------------------- +GENERATE_AUTOGEN_DEF = NO +#--------------------------------------------------------------------------- +# configuration options related to the Perl module output +#--------------------------------------------------------------------------- +GENERATE_PERLMOD = NO +PERLMOD_LATEX = NO +PERLMOD_PRETTY = YES +PERLMOD_MAKEVAR_PREFIX = +#--------------------------------------------------------------------------- +# Configuration options related to the preprocessor +#--------------------------------------------------------------------------- +ENABLE_PREPROCESSING = YES +MACRO_EXPANSION = NO +EXPAND_ONLY_PREDEF = NO +SEARCH_INCLUDES = YES +INCLUDE_PATH = +INCLUDE_FILE_PATTERNS = +PREDEFINED = +EXPAND_AS_DEFINED = +SKIP_FUNCTION_MACROS = YES +#--------------------------------------------------------------------------- +# Configuration::additions related to external references +#--------------------------------------------------------------------------- +TAGFILES = +GENERATE_TAGFILE = +ALLEXTERNALS = NO +EXTERNAL_GROUPS = YES +PERL_PATH = /usr/bin/perl +#--------------------------------------------------------------------------- +# Configuration options related to the dot tool +#--------------------------------------------------------------------------- +CLASS_DIAGRAMS = YES +MSCGEN_PATH = +HIDE_UNDOC_RELATIONS = YES +HAVE_DOT = NO +CLASS_GRAPH = YES +COLLABORATION_GRAPH = YES +GROUP_GRAPHS = YES +UML_LOOK = NO +TEMPLATE_RELATIONS = NO +INCLUDE_GRAPH = YES +INCLUDED_BY_GRAPH = YES +CALL_GRAPH = NO +CALLER_GRAPH = NO +GRAPHICAL_HIERARCHY = YES +DIRECTORY_GRAPH = YES +DOT_IMAGE_FORMAT = png +DOT_PATH = +DOTFILE_DIRS = +DOT_GRAPH_MAX_NODES = 50 +MAX_DOT_GRAPH_DEPTH = 0 +DOT_TRANSPARENT = YES +DOT_MULTI_TARGETS = NO +GENERATE_LEGEND = YES +DOT_CLEANUP = YES +#--------------------------------------------------------------------------- +# Configuration::additions related to the search engine +#--------------------------------------------------------------------------- +SEARCHENGINE = NO diff --git a/botan/src/build-data/botan.pc.in b/botan/src/build-data/botan.pc.in new file mode 100644 index 0000000..70ed65d --- /dev/null +++ b/botan/src/build-data/botan.pc.in @@ -0,0 +1,12 @@ +prefix=%{prefix} +exec_prefix=${prefix} +libdir=${prefix}/%{libdir} +includedir=${prefix}/include + +Name: Botan +Description: Multi-platform C++ crypto library +Version: %{version} + +Libs: -L${libdir} -lbotan +Libs.private: %{link_to} +Cflags: -I${includedir} diff --git a/botan/src/build-data/buildh.in b/botan/src/build-data/buildh.in new file mode 100644 index 0000000..e4ab0f4 --- /dev/null +++ b/botan/src/build-data/buildh.in @@ -0,0 +1,66 @@ + +#ifndef BOTAN_BUILD_CONFIG_H__ +#define BOTAN_BUILD_CONFIG_H__ + +/* This file was automatically generated %{timestamp} UTC */ + +#define BOTAN_VERSION_MAJOR %{version_major} +#define BOTAN_VERSION_MINOR %{version_minor} +#define BOTAN_VERSION_PATCH %{version_patch} + +#ifndef BOTAN_DLL + #define BOTAN_DLL %{dll_export_flags} +#endif + +/* Chunk sizes */ +#define BOTAN_DEFAULT_BUFFER_SIZE 4096 +#define BOTAN_MEM_POOL_CHUNK_SIZE 64*1024 + +/* BigInt toggles */ +#define BOTAN_MP_WORD_BITS %{mp_bits} +#define BOTAN_KARAT_MUL_THRESHOLD 32 +#define BOTAN_KARAT_SQR_THRESHOLD 32 +#define BOTAN_PRIVATE_KEY_OP_BLINDING_BITS 64 + +/* PK key consistency checking toggles */ +#define BOTAN_PUBLIC_KEY_STRONG_CHECKS_ON_LOAD 1 +#define BOTAN_PRIVATE_KEY_STRONG_CHECKS_ON_LOAD 1 +#define BOTAN_PRIVATE_KEY_STRONG_CHECKS_ON_GENERATE 1 + +/* Should we use GCC-style inline assembler? */ +#if !defined(BOTAN_USE_GCC_INLINE_ASM) && defined(__GNUG__) + #define BOTAN_USE_GCC_INLINE_ASM 1 +#endif + +#ifndef BOTAN_USE_GCC_INLINE_ASM + #define BOTAN_USE_GCC_INLINE_ASM 0 +#endif + +/* Target identification and feature test macros */ +%{target_os_defines} + +%{target_cpu_defines} + +%{target_compiler_defines} + +/* Module definitions */ +%{module_defines} + +/* Local configuration options */ +%{local_config} + +/* +%{user}@%{hostname} ran '%{command_line}' + +Target +------- +Compiler: %{cc} %{lib_opt} %{mach_opt} +Arch: %{submodel}/%{arch} +OS: %{os} + +Modules +------- +%{mod_list} +*/ + +#endif diff --git a/botan/src/build-data/cc/bcc.txt b/botan/src/build-data/cc/bcc.txt new file mode 100644 index 0000000..df09daf --- /dev/null +++ b/botan/src/build-data/cc/bcc.txt @@ -0,0 +1,31 @@ +realname "Borland C++" + +binary_name "bcc32" + +compile_option "-c " +output_to_option "-o " +add_include_dir_option "-I" +add_lib_dir_option "-L" +add_lib_option "-l" + +lib_opt_flags "-O2" +check_opt_flags "-O2" +debug_flags "" +no_debug_flags "" +lang_flags "-tWR -tWM -tWC" +warning_flags "-w" + +dll_import_flags "" +dll_export_flags "" + +ar_command "tlib /C /P256" + +makefile_style nmake + +<mach_opt> +i486 -> "/G4" +i586 -> "/G5" +i686 -> "/G6" +athlon -> "/G6" +pentium4 -> "/G6" +</mach_opt> diff --git a/botan/src/build-data/cc/compaq.txt b/botan/src/build-data/cc/compaq.txt new file mode 100644 index 0000000..66d3a52 --- /dev/null +++ b/botan/src/build-data/cc/compaq.txt @@ -0,0 +1,29 @@ +realname "Compaq C++" + +binary_name "cxx" + +compile_option "-c " +output_to_option "-o " +add_include_dir_option "-I" +add_lib_dir_option "-L" +add_lib_option "-l" + +# -O3 and up seem to be unhappy with Botan +lib_opt_flags "-O2" +check_opt_flags "-O2" +debug_flags "-g" +no_debug_flags "" +lang_flags "-std ansi -D__USE_STD_IOSTREAM" + +dll_import_flags "" +dll_export_flags "" + +makefile_style unix + +<so_link_flags> +default -> "$(CXX) -shared -soname $(SONAME)" +</so_link_flags> + +<mach_opt> +alpha -> "-arch=SUBMODEL" alpha- +</mach_opt> diff --git a/botan/src/build-data/cc/ekopath.txt b/botan/src/build-data/cc/ekopath.txt new file mode 100644 index 0000000..ca24710 --- /dev/null +++ b/botan/src/build-data/cc/ekopath.txt @@ -0,0 +1,40 @@ +realname "PathScale EKOPath C++" + +binary_name "pathCC" + +compile_option "-c " +output_to_option "-o " +add_include_dir_option "-I" +add_lib_dir_option "-L" +add_lib_option "-l" + +lib_opt_flags "-O3 -OPT:Ofast:alias=disjoint" +check_opt_flags "-O2" +lang_flags "-D_REENTRANT -ansi -Wno-long-long" +warning_flags "-W -Wall" + +ar_command "pathCC -ar -o" + +shared_flags "-fPIC" +debug_flags "-g" + +dll_import_flags "" +dll_export_flags "" + +makefile_style unix + +<so_link_flags> +default -> "$(CXX) -shared -fPIC -Wl,-soname,$(SONAME)" +</so_link_flags> + +<mach_opt> +athlon -> "-mcpu=athlon" +pentium4 -> "-mcpu=pentium4" + +opteron -> "-mcpu=opteron" +em64t -> "-mcpu=em64t" +core2 -> "-mcpu=core" + +ia32 -> "-mcpu=anyx86" +amd64 -> "-mcpu=athlon64" +</mach_opt> diff --git a/botan/src/build-data/cc/gcc.txt b/botan/src/build-data/cc/gcc.txt new file mode 100644 index 0000000..978ed6d --- /dev/null +++ b/botan/src/build-data/cc/gcc.txt @@ -0,0 +1,89 @@ +realname "GNU C++" + +binary_name "g++" + +compiler_has_tr1 yes + +compile_option "-c " +output_to_option "-o " +add_include_dir_option "-I" +add_lib_dir_option "-L" +add_lib_option "-l" + +lang_flags "-D_REENTRANT -ansi -Wno-long-long" +warning_flags "-W -Wall" +#warning_flags "-Wextra -Wall -Wstrict-aliasing -Wstrict-overflow=5 -Wcast-align -Wmissing-declarations -Wno-unused-parameter" + +lib_opt_flags "-O2 -finline-functions" +check_opt_flags "-O2" +shared_flags "-fPIC" +debug_flags "-g" + +dll_import_flags "" +dll_export_flags "" + +makefile_style unix + +<so_link_flags> +# The default works for GNU ld and several other Unix linkers +default -> "$(CXX) -shared -fPIC -Wl,-soname,$(SONAME)" + +# AIX doesn't seem to have soname support (weird...) +aix -> "$(CXX) -shared -fPIC" + +darwin -> "$(CXX) -dynamiclib -fPIC -install_name $(SONAME)" +hpux -> "$(CXX) -shared -fPIC -Wl,+h,$(SONAME)" +solaris -> "$(CXX) -shared -fPIC -Wl,-h,$(SONAME)" +# Gotta use ld directly on BeOS, their GCC is busted +beos -> "ld -shared -h $(SONAME)" +</so_link_flags> + +<mach_opt> +# Specializations first (they don't need to be, just clearer) +i386 -> "-mtune=i686 -momit-leaf-frame-pointer" +r10000 -> "-mips4" +alpha-ev67 -> "-mcpu=ev6" # FIXME: GCC 3.1 and on has -march=ev67 +alpha-ev68 -> "-mcpu=ev6" +alpha-ev7 -> "-mcpu=ev6" +ppc601 -> "-mpowerpc -mcpu=601" +sparc64-ultra3 -> "-mcpu=v9 -mtune=ultrasparc3" + +em64t -> "-march=nocona -momit-leaf-frame-pointer" +cellppu -> "" + +# Default family options (SUBMODEL is substitued with the real submodel) +# Anything after the quotes is what should be *removed* from the submodel name +# before it's put into SUBMODEL. +alpha -> "-mcpu=SUBMODEL" alpha- +amd64 -> "-march=SUBMODEL -momit-leaf-frame-pointer" +arm -> "-mcpu=SUBMODEL" +ia32 -> "-march=SUBMODEL -momit-leaf-frame-pointer" +ia64 -> "-mtune=SUBMODEL" +hppa -> "-march=SUBMODEL" hppa +m68k -> "-mSUBMODEL" +hitachi-sh -> "-mSUBMODEL" hitachi-sh +sparc32 -> "-mcpu=SUBMODEL -Wa,-xarch=v8plus" sparc32- +sparc64 -> "-mcpu=v9 -mtune=ultrasparc" +mips32 -> "-mips1 -mcpu=SUBMODEL" mips32- +mips64 -> "-mips3 -mcpu=SUBMODEL" mips64- +ppc -> "-mcpu=SUBMODEL" ppc +ppc64 -> "-mcpu=SUBMODEL" ppc +</mach_opt> + +# Note that the 'linking' bit means "use this for both compiling *and* linking" +<mach_abi_linking> +amd64 -> "-m64" +mips64 -> "-mabi=64" +s390 -> "-m31" +s390x -> "-m64" +sparc32 -> "-m32 -mno-app-regs" +sparc64 -> "-m64 -mno-app-regs" +ppc64 -> "-m64" + +# This should probably be used on most/all targets, but the docs are incomplete +openbsd -> "-pthread" +freebsd -> "-pthread" +dragonfly -> "-pthread" +netbsd -> "-pthread -D_NETBSD_SOURCE" +qnx -> "-fexceptions -D_QNX_SOURCE" +</mach_abi_linking> diff --git a/botan/src/build-data/cc/hpcc.txt b/botan/src/build-data/cc/hpcc.txt new file mode 100644 index 0000000..284e92c --- /dev/null +++ b/botan/src/build-data/cc/hpcc.txt @@ -0,0 +1,32 @@ +realname "HP-UX C++" + +binary_name "aCC" + +compile_option "-c " +output_to_option "-o " +add_include_dir_option "-I" +add_lib_dir_option "-L" +add_lib_option "-l" + +lib_opt_flags "+O2" +check_opt_flags "+O2" +debug_flags "-g" +no_debug_flags "" +lang_flags "-AA -ext +eh -z" +warning_flags "" # +w +shared_flags "+Z" + +dll_import_flags "" +dll_export_flags "" + +makefile_style unix + +<mach_abi_linking> +hppa1.0 -> "+DAportable" +hppa1.1 -> "+DA1.1" +hppa2.0 -> "+DA2.0W" +</mach_abi_linking> + +<so_link_flags> +default -> "$(CXX) +Z -b -Wl,+h,$(SONAME)" # Documented in cc(1), but not CC(1) (?) +</so_link_flags> diff --git a/botan/src/build-data/cc/icc.txt b/botan/src/build-data/cc/icc.txt new file mode 100644 index 0000000..7d8e968 --- /dev/null +++ b/botan/src/build-data/cc/icc.txt @@ -0,0 +1,35 @@ +realname "Intel C++" + +binary_name "icpc" + +compiler_has_tr1 yes + +compile_option "-c " +output_to_option "-o " +add_include_dir_option "-I" +add_lib_dir_option "-L" +add_lib_option "-l" + +lib_opt_flags "-O2 -ip -unroll" +check_opt_flags "-O2" +debug_flags "-g" +no_debug_flags "-fomit-frame-pointer" +lang_flags "" +warning_flags "-w1" +shared_flags "-fPIC" + +dll_import_flags "" +dll_export_flags "" + +makefile_style unix + +<mach_opt> +pentium3 -> "-march=pentium3" +pentium4 -> "-march=pentium4" +pentium-m -> "-march=pentium3" +core2 -> "-march=core2" +</mach_opt> + +<so_link_flags> +default -> "$(CXX) -fPIC -shared" +</so_link_flags> diff --git a/botan/src/build-data/cc/kai.txt b/botan/src/build-data/cc/kai.txt new file mode 100644 index 0000000..8585e54 --- /dev/null +++ b/botan/src/build-data/cc/kai.txt @@ -0,0 +1,30 @@ +realname "KAI C++" + +binary_name "KCC" + +compile_option "-c " +output_to_option "-o " +add_include_dir_option "-I" +add_lib_dir_option "-L" +add_lib_option "-l" + +ar_command "KCC -o" + +lib_opt_flags "+K3 --inline_auto_space_time=65 --abstract_pointer" +check_opt_flags "+K3" +lang_flags "-D__KAI_STRICT" +debug_flags "-g" +no_debug_flags "" + +dll_import_flags "" +dll_export_flags "" + +makefile_style unix + +<so_link_flags> +default -> "$(CXX) --soname $(SONAME)" +</so_link_flags> + +<mach_abi_linking> +all -> "--one_per" +</mach_abi_linking> diff --git a/botan/src/build-data/cc/mipspro.txt b/botan/src/build-data/cc/mipspro.txt new file mode 100644 index 0000000..b75fc4f --- /dev/null +++ b/botan/src/build-data/cc/mipspro.txt @@ -0,0 +1,42 @@ +realname "SGI MIPSPro C++" + +binary_name "CC" + +compile_option "-c " +output_to_option "-o " +add_include_dir_option "-I" +add_lib_dir_option "-L" +add_lib_option "-l" + +lib_opt_flags "-O3 -OPT:alias=TYPED" +check_opt_flags "-O3 -OPT:alias=TYPED" +debug_flags "-g3" +no_debug_flags "" +shared_flags "-KPIC" +lang_flags "-ansi -LANG:ansi-for-init-scope=ON" +# Disabled, because, while my code is fine, it warns about a lot of it's own +# headers <g> +#warning_flags "-fullwarn" + +dll_import_flags "" +dll_export_flags "" + +makefile_style unix + +<so_link_flags> +default -> "$(CXX) -shared -Wl,-soname,$(SONAME)" +</so_link_flags> + +<mach_opt> +mips32 -> "-mips1" +mips64 -> "-mips3" + +mips64-r5000 -> "-mips4 -r5000" +mips64-r8000 -> "-mips4 -r8000" +mips64-r10000 -> "-mips4 -r10000" +</mach_opt> + +<mach_abi_linking> +mips32 -> "-n32" +mips64 -> "-64" +</mach_abi_linking> diff --git a/botan/src/build-data/cc/msvc.txt b/botan/src/build-data/cc/msvc.txt new file mode 100644 index 0000000..68e4517 --- /dev/null +++ b/botan/src/build-data/cc/msvc.txt @@ -0,0 +1,27 @@ +realname "Visual C++" + +binary_name "cl.exe" + +compile_option "/nologo /c " +output_to_option "/Fo" +add_include_dir_option "/I" +add_lib_dir_option "-L" +add_lib_option "" + +lib_opt_flags "/O2" +check_opt_flags "/O2" +debug_flags "/Zi" +no_debug_flags "" +lang_flags "/EHsc /GR /D_CONSOLE" +warning_flags "" + +dll_import_flags "__declspec(dllimport)" +dll_export_flags "__declspec(dllexport)" + +ar_command "lib" + +makefile_style nmake + +<so_link_flags> +default -> "link /DLL" +</so_link_flags> diff --git a/botan/src/build-data/cc/open64.txt b/botan/src/build-data/cc/open64.txt new file mode 100644 index 0000000..b7c1e9e --- /dev/null +++ b/botan/src/build-data/cc/open64.txt @@ -0,0 +1,30 @@ +realname "Open64" + +binary_name "openCC" + +compile_option "-c " +output_to_option "-o " +add_include_dir_option "-I" +add_lib_dir_option "-L" +add_lib_option "-l" + +lib_opt_flags "-O3 -OPT:alias=TYPED" +check_opt_flags "-O3 -OPT:alias=TYPED" +debug_flags "-g3" +no_debug_flags "-fomit-frame-pointer" +shared_flags "-fPIC" +lang_flags "-ansi -LANG:ansi-for-init-scope=ON" +warning_flags "-Wall -W" + +dll_import_flags "" +dll_export_flags "" + +makefile_style unix + +<so_link_flags> +default -> "$(CXX) -shared -Wl,-soname,$(SONAME)" +</so_link_flags> + +<mach_abi_linking> +amd64 -> "-m64" +</mach_abi_linking> diff --git a/botan/src/build-data/cc/pgi.txt b/botan/src/build-data/cc/pgi.txt new file mode 100644 index 0000000..35f4664 --- /dev/null +++ b/botan/src/build-data/cc/pgi.txt @@ -0,0 +1,31 @@ +realname "Portland Group C++" + +binary_name "pgCC" + +compile_option "-c " +output_to_option "-o " +add_include_dir_option "-I" +add_lib_dir_option "-L" +add_lib_option "-l" + +lib_opt_flags "-fast -Minline" +check_opt_flags "-fast" +shared_flags "-fPIC" + +dll_import_flags "" +dll_export_flags "" + +makefile_style unix + +<so_link_flags> +linux -> "$(CXX) -shared -fPIC -Wl,-soname,$(SONAME)" +solaris -> "$(CXX) -G -fPIC -Wl,-h,$(SONAME)" +</so_link_flags> + +<mach_opt> +i586 -> "-tp p5" +i686 -> "-tp p6" +athlon -> "-tp k7" +pentium4 -> "-tp p6" +ia32 -> "-tp px" +</mach_opt> diff --git a/botan/src/build-data/cc/sgipro64.txt b/botan/src/build-data/cc/sgipro64.txt new file mode 100644 index 0000000..28132ff --- /dev/null +++ b/botan/src/build-data/cc/sgipro64.txt @@ -0,0 +1,30 @@ +realname "SGI Pro64" + +binary_name "sgiCC" + +compile_option "-c " +output_to_option "-o " +add_include_dir_option "-I" +add_lib_dir_option "-L" +add_lib_option "-l" + +lib_opt_flags "-O3 -OPT:alias=TYPED" +check_opt_flags "-O3 -OPT:alias=TYPED" +debug_flags "-g3" +no_debug_flags "" +shared_flags "-KPIC" +lang_flags "-ansi -LANG:ansi-for-init-scope=ON" +warning_flags "-Wall -W" + +dll_import_flags "" +dll_export_flags "" + +makefile_style unix + +<so_link_flags> +default -> "$(CXX) -shared -Wl,-soname,$(SONAME)" +</so_link_flags> + +<mach_opt> + +</mach_opt> diff --git a/botan/src/build-data/cc/sunwspro.txt b/botan/src/build-data/cc/sunwspro.txt new file mode 100644 index 0000000..e1bc0b2 --- /dev/null +++ b/botan/src/build-data/cc/sunwspro.txt @@ -0,0 +1,47 @@ +realname "Sun Workshop Pro C++" + +binary_name "CC" + +compile_option "-c " +output_to_option "-o " +add_include_dir_option "-I" +add_lib_dir_option "-L" +add_lib_option "-l" + +# The compiler supports up to -xO5, but anything higher than -xO2 causes +# incorrect results, infinite loops, other badness. :( +lib_opt_flags "-xO2" +check_opt_flags "-xO2" +debug_flags "-g" +no_debug_flags "" +shared_flags "-KPIC" +warning_flags "+w" +lang_flags "+p -D__EXTENSIONS__" + +dll_import_flags "" +dll_export_flags "" + +makefile_style unix + +<so_link_flags> +default -> "$(CXX) -G -h$(SONAME)" +</so_link_flags> + +<mach_opt> +i386 -> "-xtarget=486" +i486 -> "-xtarget=486" +i586 -> "-xtarget=pentium" +i686 -> "-xtarget=pentium_pro" +pentium4 -> "-xtarget=pentium_pro" +k6 -> "-xtarget=pentium" + +sparc32-v9 -> "-xchip=ultra -xarch=v8" + +sparc32 -> "-xchip=ultra -xarch=SUBMODEL" sparc32- +sparc64 -> "-xchip=SUBMODEL" sparc64- +</mach_opt> + +<mach_abi_linking> +sparc64 -> "-xarch=v9" +amd64 -> "-m64" +</mach_abi_linking> diff --git a/botan/src/build-data/cc/xlc.txt b/botan/src/build-data/cc/xlc.txt new file mode 100644 index 0000000..64b8884 --- /dev/null +++ b/botan/src/build-data/cc/xlc.txt @@ -0,0 +1,29 @@ +realname "IBM XL C/C++" + +binary_name "xlC" + +compile_option "-c " +output_to_option "-o " +add_include_dir_option "-I" +add_lib_dir_option "-L" +add_lib_option "-l" + +lib_opt_flags "-O2" +check_opt_flags "-O2" +lang_flags "" +debug_flags "-g" +no_debug_flags "" + +dll_import_flags "" +dll_export_flags "" + +makefile_style unix + +<mach_opt> +cellppu -> "-qarch=cell" +ppc970 -> "-qarch=ppc970" +power4 -> "-qarch=pwr4" +power5 -> "-qarch=pwr5" + +cellppu -> "-qarch=cell" +</mach_opt> diff --git a/botan/src/build-data/makefile/nmake.in b/botan/src/build-data/makefile/nmake.in new file mode 100644 index 0000000..34c864e --- /dev/null +++ b/botan/src/build-data/makefile/nmake.in @@ -0,0 +1,107 @@ +################################################## +# Compiler Options # +################################################## +CXX = %{cc} +LIB_OPT = %{lib_opt} +CHECK_OPT = %{check_opt} +MACH_OPT = %{mach_opt} +LANG_FLAGS = %{lang_flags} +WARN_FLAGS = %{warn_flags} +LINK_TO = %{link_to} + +################################################## +# Version Numbers # +################################################## +VERSION = %{version} + +################################################## +# Installation Settings # +################################################## +DESTDIR = %{prefix} + +LIBDIR = $(DESTDIR)\%{libdir} +HEADERDIR = $(DESTDIR)\%{includedir}\botan +DOCDIR = $(DESTDIR)\%{docdir}\Botan-$(VERSION) + +################################################## +# Aliases for Common Programs # +################################################## +AR = %{ar_command} +CD = @cd +ECHO = @echo +INSTALL = %{install_cmd_exec} +INSTALL_CMD = %{install_cmd_exec} +MKDIR = @md +MKDIR_INSTALL = @md +RM = @del /Q +RMDIR = @rmdir + +################################################## +# File Lists # +################################################## +CHECK = check + +DOCS = %{doc_files} + +HEADERS = %{include_files} + +LIBOBJS = %{lib_objs} + +CHECKOBJS = %{check_objs} + +LIB_FLAGS = $(LIB_OPT) $(MACH_OPT) $(LANG_FLAGS) $(WARN_FLAGS) +CHECK_FLAGS = $(CHECK_OPT) $(LANG_FLAGS) $(WARN_FLAGS) + +LIBRARIES = $(STATIC_LIB) + +LIBNAME = libbotan +STATIC_LIB = $(LIBNAME).%{static_suffix} + +all: $(LIBRARIES) + +################################################## +# Build Commands # +################################################## +%{lib_build_cmds} + +%{check_build_cmds} + +################################################## +# Link Commands # +################################################## + +# Link for Borland? +#ilink32 -L$(BCB)\lib -w -c -x -Gn -ap -Tpe c0x32.obj \ +# $(CHECKOBJS),check.exe,,$(LINK_TO) $(STATIC_LIB) + +$(CHECK): $(LIBRARIES) $(CHECKOBJS) + link /OUT:$@.exe $(CHECKOBJS) $(STATIC_LIB) $(LINK_TO) + +$(STATIC_LIB): $(LIBOBJS) + $(AR) /OUT:$@ /NAME:BOTAN-$(VERSION) $(LIBOBJS) + +################################################## +# Misc Targets # +################################################## +static: $(STATIC_LIB) + +################################################## +# Fake Targets # +################################################## +clean: + $(RM) %{build_dir}\lib\* %{build_dir}\checks\* + $(RM) $(LIBRARIES) $(CHECK) + +distclean: clean + $(RM) %{build_dir}\build.h + $(RM) %{build_dir}\include\botan\* + $(RMDIR) %{build_dir}\include\botan %{build_dir}\include + $(RMDIR) %{build_dir}\lib %{build_dir}\checks + $(RMDIR) %{build_dir} + $(RM) Makefile + +################################################## +# Install Commands # +################################################## +install: $(LIBRARIES) + $(ECHO) "Install command not implemented" diff --git a/botan/src/build-data/makefile/unix.in b/botan/src/build-data/makefile/unix.in new file mode 100644 index 0000000..a48a5a1 --- /dev/null +++ b/botan/src/build-data/makefile/unix.in @@ -0,0 +1,121 @@ +################################################## +# Compiler Options # +################################################## +CXX = %{cc} +LIB_OPT = %{lib_opt} +CHECK_OPT = %{check_opt} +MACH_OPT = %{mach_opt} +LANG_FLAGS = %{lang_flags} +WARN_FLAGS = %{warn_flags} +LINK_TO = %{link_to} + +################################################## +# Version Numbers # +################################################## +VERSION = %{version} + +################################################## +# Installation Settings # +################################################## +DESTDIR = %{prefix} + +BINDIR = $(DESTDIR)/bin +LIBDIR = $(DESTDIR)/%{libdir} +HEADERDIR = $(DESTDIR)/%{includedir}/botan +DOCDIR = $(DESTDIR)/%{docdir}/Botan-$(VERSION) +PKGCONF_DIR = $(LIBDIR)/pkgconfig + +CONFIG_SCRIPT = %{botan_config} +PKGCONFIG = %{botan_pkgconfig} + +################################################## +# Aliases for Common Programs # +################################################## +AR = %{ar_command} +CD = @cd +ECHO = @echo +INSTALL_CMD_EXEC = %{install_cmd_exec} +INSTALL_CMD_DATA = %{install_cmd_data} +LN = ln -fs +MKDIR = @mkdir +MKDIR_INSTALL = @umask 022; mkdir -p -m 755 +RANLIB = %{ranlib_command} +RM = @rm -f +RM_R = @rm -rf + +################################################## +# File Lists # +################################################## +CHECK = %{check_prefix}check + +DOCS = %{doc_files} + +HEADERS = %{include_files} + +LIBOBJS = %{lib_objs} + +CHECKOBJS = %{check_objs} + +LIB_FLAGS = $(LIB_OPT) $(MACH_OPT) $(LANG_FLAGS) $(WARN_FLAGS) +CHECK_FLAGS = $(CHECK_OPT) $(LANG_FLAGS) $(WARN_FLAGS) + +LIBRARIES = $(STATIC_LIB) + +LIBNAME = %{lib_prefix}libbotan +STATIC_LIB = $(LIBNAME).a + +all: $(LIBRARIES) + +################################################## +# Build Commands # +################################################## +%{lib_build_cmds} + +%{check_build_cmds} + +################################################## +# Link Commands # +################################################## +$(CHECK): $(LIBRARIES) $(CHECKOBJS) + $(CXX) $(CHECKOBJS) -L. libbotan.a $(LINK_TO) -o $(CHECK) + +$(STATIC_LIB): $(LIBOBJS) + $(RM) $(STATIC_LIB) + $(AR) $(STATIC_LIB) $(LIBOBJS) + $(RANLIB) $(STATIC_LIB) + +################################################## +# Fake Targets # +################################################## +.PHONY = doxygen clean distclean install static + +static: $(STATIC_LIB) + +doxygen: + doxygen %{doc_src_dir}/botan.doxy + +clean: + $(RM_R) %{build_dir}/lib/* %{build_dir}/checks/* + $(RM) $(LIBRARIES) $(SYMLINK) $(CHECK) + +distclean: clean + $(RM_R) %{build_dir} + $(RM_R) %{doc_src_dir}/doxygen %{doc_src_dir}/botan.doxy + $(RM) Makefile $(CONFIG_SCRIPT) $(PKGCONFIG) + +install: $(LIBRARIES) + $(ECHO) "Installing Botan into $(DESTDIR)... " + $(MKDIR_INSTALL) $(DOCDIR) + $(MKDIR_INSTALL) $(HEADERDIR) + $(MKDIR_INSTALL) $(LIBDIR) + $(MKDIR_INSTALL) $(BINDIR) + $(MKDIR_INSTALL) $(PKGCONF_DIR) + for i in $(DOCS); do \ + $(INSTALL_CMD_DATA) $$i $(DOCDIR); \ + done + for i in $(HEADERS); do \ + $(INSTALL_CMD_DATA) $$i $(HEADERDIR); \ + done + $(INSTALL_CMD_DATA) $(STATIC_LIB) $(LIBDIR) + $(INSTALL_CMD_EXEC) $(CONFIG_SCRIPT) $(BINDIR) + $(INSTALL_CMD_DATA) $(PKGCONFIG) $(PKGCONF_DIR) diff --git a/botan/src/build-data/makefile/unix_shr.in b/botan/src/build-data/makefile/unix_shr.in new file mode 100644 index 0000000..f718d11 --- /dev/null +++ b/botan/src/build-data/makefile/unix_shr.in @@ -0,0 +1,137 @@ +################################################## +# Compiler Options # +################################################## +CXX = %{cc} +LIB_OPT = %{lib_opt} +CHECK_OPT = %{check_opt} +MACH_OPT = %{mach_opt} +LANG_FLAGS = %{lang_flags} +WARN_FLAGS = %{warn_flags} +SO_OBJ_FLAGS = %{shared_flags} +SO_LINK_CMD = %{so_link} +LINK_TO = %{link_to} + +################################################## +# Version Numbers # +################################################## +VERSION = %{version} +SO_VERSION = %{so_version} + +################################################## +# Installation Settings # +################################################## +DESTDIR = %{prefix} + +BINDIR = $(DESTDIR)/bin +LIBDIR = $(DESTDIR)/%{libdir} +HEADERDIR = $(DESTDIR)/%{includedir}/botan +DOCDIR = $(DESTDIR)/%{docdir}/Botan-$(VERSION) +PKGCONF_DIR = $(LIBDIR)/pkgconfig + +CONFIG_SCRIPT = %{botan_config} +PKGCONFIG = %{botan_pkgconfig} + +################################################## +# Aliases for Common Programs # +################################################## +AR = %{ar_command} +CD = @cd +ECHO = @echo +INSTALL_CMD_EXEC = %{install_cmd_exec} +INSTALL_CMD_DATA = %{install_cmd_data} +LN = ln -fs +MKDIR = @mkdir +MKDIR_INSTALL = @umask 022; mkdir -p -m 755 +RANLIB = %{ranlib_command} +RM = @rm -f +RM_R = @rm -rf + +################################################## +# File Lists # +################################################## +CHECK = %{check_prefix}check + +DOCS = %{doc_files} + +HEADERS = %{include_files} + +LIBOBJS = %{lib_objs} + +CHECKOBJS = %{check_objs} + +LIB_FLAGS = $(LIB_OPT) $(MACH_OPT) $(LANG_FLAGS) $(WARN_FLAGS) $(SO_OBJ_FLAGS) +CHECK_FLAGS = $(CHECK_OPT) $(LANG_FLAGS) $(WARN_FLAGS) + +LIBRARIES = $(STATIC_LIB) $(SHARED_LIB) + +LIBNAME = %{lib_prefix}libbotan +STATIC_LIB = $(LIBNAME).a + +SHARED_LIB = $(LIBNAME)-$(SO_VERSION).%{so_suffix} +SONAME = $(LIBNAME)-$(SO_VERSION).%{so_suffix} + +SYMLINK = libbotan.%{so_suffix} + +all: $(LIBRARIES) + +################################################## +# Build Commands # +################################################## +%{lib_build_cmds} + +%{check_build_cmds} + +################################################## +# Link Commands # +################################################## +$(CHECK): $(LIBRARIES) $(CHECKOBJS) + $(CXX) $(LDFLAGS) $(CHECKOBJS) -o $(CHECK) -L. -lbotan-%{so_version} $(LINK_TO) + +$(STATIC_LIB): $(LIBOBJS) + $(RM) $(STATIC_LIB) + $(AR) $(STATIC_LIB) $(LIBOBJS) + $(RANLIB) $(STATIC_LIB) + +$(SHARED_LIB): $(LIBOBJS) + $(SO_LINK_CMD) $(LDFLAGS) $(LIBOBJS) -o $(SHARED_LIB) $(LINK_TO) + $(LN) $(SHARED_LIB) $(SYMLINK) + +################################################## +# Fake Targets # +################################################## +.PHONY = doxygen clean distclean install static shared + +static: $(STATIC_LIB) + +shared: $(SHARED_LIB) + +doxygen: + doxygen %{doc_src_dir}/botan.doxy + +clean: + $(RM_R) %{build_dir}/lib/* %{build_dir}/checks/* + $(RM) $(LIBRARIES) $(SYMLINK) $(CHECK) + +distclean: clean + $(RM_R) %{build_dir} + $(RM_R) %{doc_src_dir}/doxygen %{doc_src_dir}/botan.doxy + $(RM) Makefile $(CONFIG_SCRIPT) $(PKGCONFIG) + +install: $(LIBRARIES) + $(ECHO) "Installing Botan into $(DESTDIR)... " + $(MKDIR_INSTALL) $(DOCDIR) + $(MKDIR_INSTALL) $(HEADERDIR) + $(MKDIR_INSTALL) $(LIBDIR) + $(MKDIR_INSTALL) $(BINDIR) + $(MKDIR_INSTALL) $(PKGCONF_DIR) + for i in $(DOCS); do \ + $(INSTALL_CMD_DATA) $$i $(DOCDIR); \ + done + for i in $(HEADERS); do \ + $(INSTALL_CMD_DATA) $$i $(HEADERDIR); \ + done + $(INSTALL_CMD_DATA) $(STATIC_LIB) $(LIBDIR) + $(INSTALL_CMD_EXEC) $(CONFIG_SCRIPT) $(BINDIR) + $(INSTALL_CMD_EXEC) $(SHARED_LIB) $(LIBDIR) + $(INSTALL_CMD_DATA) $(PKGCONFIG) $(PKGCONF_DIR) + $(CD) $(LIBDIR); $(LN) $(SHARED_LIB) $(SYMLINK) diff --git a/botan/src/build-data/os/aix.txt b/botan/src/build-data/os/aix.txt new file mode 100644 index 0000000..cec8185 --- /dev/null +++ b/botan/src/build-data/os/aix.txt @@ -0,0 +1,7 @@ +realname "AIX" + +os_type unix + +<supports_shared> +all +</supports_shared> diff --git a/botan/src/build-data/os/beos.txt b/botan/src/build-data/os/beos.txt new file mode 100644 index 0000000..2b12792 --- /dev/null +++ b/botan/src/build-data/os/beos.txt @@ -0,0 +1,16 @@ +realname "BeOS" + +os_type beos + +install_root /boot/beos +header_dir ../develop/headers +lib_dir system/lib +doc_dir documentation + +<supports_shared> +all +</supports_shared> + +<aliases> +haiku +</aliases> diff --git a/botan/src/build-data/os/cygwin.txt b/botan/src/build-data/os/cygwin.txt new file mode 100644 index 0000000..c2aadea --- /dev/null +++ b/botan/src/build-data/os/cygwin.txt @@ -0,0 +1,13 @@ +realname "Cygwin" + +os_type unix + +install_root c:\Botan +doc_dir docs + +# Cygwin supports shared libs fine, but there are problems with making a Botan +# shared library when libraries it depends on are static-only (such as libz). +# So until I can figure out a work-around, it's disabled. +<supports_shared> +#all +</supports_shared> diff --git a/botan/src/build-data/os/darwin.txt b/botan/src/build-data/os/darwin.txt new file mode 100644 index 0000000..2986212 --- /dev/null +++ b/botan/src/build-data/os/darwin.txt @@ -0,0 +1,19 @@ +realname "Darwin / MacOS X" + +os_type unix + +so_suffix dylib + +# It doesn't have the 's' option; you need to use needs ranlib +ar_command "ar cr" +ar_needs_ranlib yes + +doc_dir doc + +<supports_shared> +all +</supports_shared> + +<aliases> +macosx +</aliases> diff --git a/botan/src/build-data/os/defaults.txt b/botan/src/build-data/os/defaults.txt new file mode 100644 index 0000000..5648643 --- /dev/null +++ b/botan/src/build-data/os/defaults.txt @@ -0,0 +1,19 @@ +# Defaults are for a Unix box, since that's what most of OS variants are. It +# would be nice to have generic 'windows', 'beos', 'unix', etc targets to +# handle defaults for those classes of OSes, though Unix is by far the most +# varied/fragmented + +obj_suffix o +so_suffix so +static_suffix a + +ar_command "ar crs" +ar_needs_ranlib no + +install_root /usr/local +header_dir include +lib_dir lib +doc_dir share/doc + +install_cmd_data "install -m 644" +install_cmd_exec "install -m 755" diff --git a/botan/src/build-data/os/dragonfly.txt b/botan/src/build-data/os/dragonfly.txt new file mode 100644 index 0000000..7e36634 --- /dev/null +++ b/botan/src/build-data/os/dragonfly.txt @@ -0,0 +1,11 @@ +realname "DragonFly" + +os_type unix + +<target_features> +posix_mlock +</target_features> + +<supports_shared> +all +</supports_shared> diff --git a/botan/src/build-data/os/freebsd.txt b/botan/src/build-data/os/freebsd.txt new file mode 100644 index 0000000..ea96b0c --- /dev/null +++ b/botan/src/build-data/os/freebsd.txt @@ -0,0 +1,11 @@ +realname "FreeBSD" + +os_type unix + +<target_features> +posix_mlock +</target_features> + +<supports_shared> +all +</supports_shared> diff --git a/botan/src/build-data/os/hpux.txt b/botan/src/build-data/os/hpux.txt new file mode 100644 index 0000000..6e17d3b --- /dev/null +++ b/botan/src/build-data/os/hpux.txt @@ -0,0 +1,13 @@ +realname "HP-UX" + +os_type unix + +so_suffix sl + +<supports_shared> +all +</supports_shared> + +<aliases> +hp-ux +</aliases> diff --git a/botan/src/build-data/os/irix.txt b/botan/src/build-data/os/irix.txt new file mode 100644 index 0000000..fd8b432 --- /dev/null +++ b/botan/src/build-data/os/irix.txt @@ -0,0 +1,7 @@ +realname "IRIX" + +os_type unix + +<supports_shared> +all +</supports_shared> diff --git a/botan/src/build-data/os/linux.txt b/botan/src/build-data/os/linux.txt new file mode 100644 index 0000000..5352851 --- /dev/null +++ b/botan/src/build-data/os/linux.txt @@ -0,0 +1,12 @@ +realname "Linux" + +os_type unix + +<target_features> +posix_mlock +</target_features> + +# Is this correct? +<supports_shared> +all +</supports_shared> diff --git a/botan/src/build-data/os/mingw.txt b/botan/src/build-data/os/mingw.txt new file mode 100644 index 0000000..eb25017 --- /dev/null +++ b/botan/src/build-data/os/mingw.txt @@ -0,0 +1,22 @@ +realname "MS Windows (MinGW)" +os_type windows + +obj_suffix o +so_suffix dll +static_suffix a + +ar_command "ar crs" +ar_needs_ranlib yes + +install_root /mingw +header_dir include +lib_dir lib +doc_dir share/doc + +install_cmd_data "install -m 644" +install_cmd_exec "install -m 755" + +<aliases> +msys +mingw32 +</aliases> diff --git a/botan/src/build-data/os/netbsd.txt b/botan/src/build-data/os/netbsd.txt new file mode 100644 index 0000000..435d8f5 --- /dev/null +++ b/botan/src/build-data/os/netbsd.txt @@ -0,0 +1,7 @@ +realname "NetBSD" + +os_type unix + +<supports_shared> +all +</supports_shared> diff --git a/botan/src/build-data/os/openbsd.txt b/botan/src/build-data/os/openbsd.txt new file mode 100644 index 0000000..cb44bd1 --- /dev/null +++ b/botan/src/build-data/os/openbsd.txt @@ -0,0 +1,7 @@ +realname "OpenBSD" + +os_type unix + +<supports_shared> +all +</supports_shared> diff --git a/botan/src/build-data/os/qnx.txt b/botan/src/build-data/os/qnx.txt new file mode 100644 index 0000000..28bc8de --- /dev/null +++ b/botan/src/build-data/os/qnx.txt @@ -0,0 +1,7 @@ +realname "QNX" + +os_type unix + +<supports_shared> +all +</supports_shared> diff --git a/botan/src/build-data/os/solaris.txt b/botan/src/build-data/os/solaris.txt new file mode 100644 index 0000000..8610b48 --- /dev/null +++ b/botan/src/build-data/os/solaris.txt @@ -0,0 +1,15 @@ +realname "Solaris" + +os_type unix + +<target_features> +posix_mlock +</target_features> + +<supports_shared> +all +</supports_shared> + +<aliases> +sunos +</aliases> diff --git a/botan/src/build-data/os/tru64.txt b/botan/src/build-data/os/tru64.txt new file mode 100644 index 0000000..e320c1d --- /dev/null +++ b/botan/src/build-data/os/tru64.txt @@ -0,0 +1,11 @@ +realname "Tru64" + +os_type unix + +<supports_shared> +all +</supports_shared> + +<aliases> +osf1 +</aliases> diff --git a/botan/src/build-data/os/windows.txt b/botan/src/build-data/os/windows.txt new file mode 100644 index 0000000..a04d609 --- /dev/null +++ b/botan/src/build-data/os/windows.txt @@ -0,0 +1,26 @@ +realname "MS Windows" + +os_type windows + +obj_suffix obj +so_suffix dll +static_suffix lib + +install_root c:\Botan +doc_dir docs + +install_cmd_data "copy" +install_cmd_exec "copy" + +<target_features> +win32_virtual_lock +</target_features> + +<supports_shared> +msvc +</supports_shared> + +<aliases> +win32 +MSWin32 +</aliases> |