Generate dependency information
[openssl.git] / Configurations / 50-cppbuilder.conf
1 my %targets = (
2     "BC-32" => {
3         inherit_from     => [ "BASE_Windows" ],
4         sys_id           => "WIN32",
5         bn_ops           => "BN_LLONG",
6         thread_scheme    => "winthreads",
7         cc               => "bcc32c",
8         CPP              => "cpp32 -oCON -Sc -Sr",
9         defines          => add("WIN32_LEAN_AND_MEAN", "OPENSSL_SYS_WIN32",
10                                 "L_ENDIAN", "DSO_WIN32", "_stricmp=stricmp",
11                                 "_strnicmp=strnicmp", "_malloca=malloc",
12                                 "_freea=free", "_setmode=setmode"),
13         cflags           => picker(default => add("-q -c",
14                                                   threads("-tM"),
15                                                   shared("-tR")),
16                                    debug   => "-Od -v -vi- -D_DEBUG",
17                                    release => "-O2"),
18         bin_cflags       => "-tWC",
19         lib_cflags       => shared("-tWD -D_WINDLL -D_DLL"),
20         coutflag         => "-o",
21         cpp_depend_flags => "-Hp",
22         LD               => "ilink32",
23         LDFLAGS          => picker(default => "-ap -x -Gn -q",
24                                    debug   => '-j"$(BDS)\lib\win32c\debug" ' .
25                                               '-L"$(BDS)\lib\win32c\debug" -v',
26                                    release => '-j"$(BDS)\lib\win32c\release" ' .
27                                               '-L"$(BDS)\lib\win32c\release"'),
28         bin_lflags       => "-Tpe c0x32.obj wildargs.obj",
29         ldoutflag        => ",",
30         ldpostoutflag    => ",,",
31         ld_resp_delim    => " +\n",
32         ex_libs          => add(sub {
33             my @ex_libs = ("import32.lib",
34                            ($disabled{shared}
35                             ? ($disabled{threads} ? "cw32.lib" : "cw32mt.lib")
36                             : ($disabled{threads} ? "cw32i.lib" : "cw32mti.lib")));
37             push @ex_libs, ("crypt32.lib", "ws2_32.lib") unless $disabled{sock};
38             return join(" ", @ex_libs);
39         }),
40         AR               => "tlib",
41         ARFLAGS          => "/P256 /N /u",
42         ar_resp_delim    => " &\n",
43         RC               => "brcc32",
44         RCFLAGS          => '-i"$(BDS)\include\windows\sdk"',
45         rcoutflag        => "-fo",
46         shared_target    => "win-shared",
47         shared_ldflag    => "-Tpd c0d32.obj",
48         dso_lflags       => "-Tpd c0d32.obj",
49         lddefflag        => ",",
50         ldresflag        => ",",
51         ld_implib_rule   => 'implib $< $**',
52         dso_scheme       => "win32",
53     }
54 );