ALG: Add AFALG engine
[openssl.git] / Configurations / 00-base-templates.conf
index 7a208676eaabe78c958e4909306b8b35b1bfa81e..cf50785ceb00d929be5ba60f372f887cc0ccdd3b 100644 (file)
@@ -1,19 +1,16 @@
 # -*- Mode: perl -*-
 %targets=(
-    BASE => {
+    DEFAULTS => {
        template        => 1,
 
        cflags          => "",
        defines         => [],
-       debug_cflags    => "",
-       debug_defines   => [],
-       release_cflags  => "",
-       release_defines => [],
-       thread_cflags   => "",
+       thread_scheme   => "(unknown)", # Assume we don't know
        thread_defines  => [],
 
        apps_aux_src    => "",
        cpuid_asm_src   => "mem_clr.c",
+       uplink_aux_src  => "",
        bn_asm_src      => "bn_asm.c",
        ec_asm_src      => "",
        des_asm_src     => "des_enc.c fcrypt_b.c",
        shared_ldflag   => "",
        shared_rcflag   => "",
        shared_extension        => "",
+
        build_scheme    => "unixmake",
-       build_file      => "Makefile",
+       build_file      => "Makefile",
+    },
+
+    BASE_common => {
+       template        => 1,
+       defines         =>
+           [ sub {
+               unless ($disabled{zlib}) {
+                   if (defined($disabled{"zlib-dynamic"})) {
+                       return "ZLIB";
+                   } else {
+                       return "ZLIB_SHARED";
+                   }
+               }
+               return (); }
+           ],
+    },
+
+    BASE_unix => {
+        inherit_from    => [ "BASE_common" ],
+        template        => 1,
+
+        ex_libs         =>
+            sub {
+                unless ($disabled{zlib}) {
+                    if (defined($disabled{"zlib-dynamic"})) {
+                        if (defined($withargs{zlib_lib})) {
+                            return "-L".$withargs{zlib_lib}." -lz";
+                        } else {
+                            return "-lz";
+                        }
+                    }
+                }
+                return (); },
+
+        build_scheme    => "unixmake",
+        build_file      => "Makefile",
+    },
+
+    BASE_Windows => {
+        inherit_from    => [ "BASE_common" ],
+        template        => 1,
+
+        ex_libs         =>
+            sub {
+                unless ($disabled{zlib}) {
+                    if (defined($disabled{"zlib-dynamic"})) {
+                        return "zlib1.lib";
+                    }
+                }
+                return (); },
+
+        build_scheme    => [ "mk1mf" ],
+    },
+
+    BASE_VMS => {
+        inherit_from    => [ "BASE_common" ],
+        template        => 1,
+
+        ex_libs          =>
+            sub {
+                unless ($disabled{zlib}) {
+                    if (defined($disabled{"zlib-dynamic"})) {
+                        if (defined($withargs{zlib_lib})) {
+                            return $withargs{zlib_lib}.'GNV$LIBZSHR.EXE/SHARED'
+                        } else {
+                            return 'GNV$LIBZSHR/SHARE';
+                        }
+                    }
+                }
+                return (); },
+
+        build_file       => "descrip.mms",
+        build_scheme     => [ "unified", "VMS" ],
     },
 
     uplink_common => {
        template        => 1,
        apps_aux_src    => add("../ms/applink.c"),
-       cpuid_asm_src   => add("../ms/uplink.c"),
+       uplink_aux_src  => add("../ms/uplink.c"),
        shared_defines  => add("OPENSSL_USE_APPLINK", { separator => undef }),
     },
     x86_uplink => {
        inherit_from    => [ "uplink_common" ],
        template        => 1,
-       cpuid_asm_src   => add("uplink-x86.s"),
+       uplink_aux_src  => add("uplink-x86.s"),
     },
     x86_64_uplink => {
        inherit_from    => [ "uplink_common" ],
        template        => 1,
-       cpuid_asm_src   => add("uplink-x86_64.s"),
+       uplink_aux_src  => add("uplink-x86_64.s"),
     },
     ia64_uplink => {
        inherit_from    => [ "uplink_common" ],
        template        => 1,
-       cpuid_asm_src   => add("uplink-ia64.s"),
+       uplink_aux_src  => add("uplink-ia64.s"),
     },
 
     x86_asm => {