#### Makefile for OpenSSL#### {- join("\n## ", @autowarntext) -}{- our $objext = $target{obj_extension} || ".o"; our $depext = $target{dep_extension} || ".d"; our $exeext = $target{exe_extension} || ""; our $libext = $target{lib_extension} || ".a"; our $shlibext = $target{shared_extension} || ".so"; our $shlibvariant = $target{shlib_variant} || ""; our $shlibextsimple = $target{shared_extension_simple} || ".so"; our $shlibextimport = $target{shared_import_extension} || ""; our $dsoext = $target{dso_extension} || ".so"; our $makedepprog = $disabled{makedepend} ? undef : $config{makedepprog}; # $mingw_installroot and $mingw_commonroot is relevant for mingw only. my $build_scheme = $target{build_scheme}; my $install_flavour = $build_scheme->[$#$build_scheme]; # last element my $mingw_installenv = $install_flavour eq "WOW" ? "ProgramFiles(x86)" : "ProgramW6432"; my $mingw_commonenv = $install_flavour eq "WOW" ? "CommonProgramFiles(x86)" : "CommonProgramW6432"; our $mingw_installroot = defined($ENV{$mingw_installenv}) ? $mingw_installenv : 'ProgramFiles'; our $mingw_commonroot = defined($ENV{$mingw_commonenv}) ? $mingw_commonenv : 'CommonProgramFiles'; my $mingw_installdflt =$install_flavour eq "WOW" ? "C:/Program Files (x86)" : "C:/Program Files"; my $mingw_commondflt = "$mingw_installdflt/Common Files"; # expand variables early$mingw_installroot = $ENV{$mingw_installroot} // $mingw_installdflt;$mingw_commonroot = $ENV{$mingw_commonroot} // $mingw_commondflt; sub windowsdll { $config{target} =~ /^(?:Cygwin|mingw)/ } # Shared AIX support is special. We put libcrypto[64].so.ver into # libcrypto.a and use libcrypto_a.a as static one. sub sharedaix { !$disabled{shared} && $config{target} =~ /^aix/ } our $sover_dirname = $config{shlib_version_number};$sover_dirname =~ s|\.|_|g if $config{target} =~ /^mingw/; # shlib and shlib_simple both take a static library name and figure # out what the shlib name should be. # # When OpenSSL is configured "no-shared", these functions will just # return empty lists, making them suitable to join(). # # With Windows DLL producers, shlib($libname) will return the shared # library name (which usually is different from the static library # name) with the default shared extension appended to it, while # shlib_simple($libname) will return the static library name with # the shared extension followed by ".a" appended to it. The former # result is used as the runtime shared library while the latter is # use