xref: /freebsd/crypto/openssl/Configurations/50-haiku.conf (revision e0c4386e7e71d93b0edc0c8fa156263fc4a8b0b6)
1*e0c4386eSCy Schubertmy %targets = (
2*e0c4386eSCy Schubert    "haiku-common" => {
3*e0c4386eSCy Schubert        template         => 1,
4*e0c4386eSCy Schubert        CC               => "cc",
5*e0c4386eSCy Schubert        CFLAGS           => add_before(picker(default => "-Wall",
6*e0c4386eSCy Schubert                                              debug   => "-g -O0",
7*e0c4386eSCy Schubert                                              release => "-O2")),
8*e0c4386eSCy Schubert        cflags           => add_before("-DL_ENDIAN -include \$(SRCDIR)/os-dep/haiku.h",
9*e0c4386eSCy Schubert                                       threads("-D_REENTRANT")),
10*e0c4386eSCy Schubert        AR              => "ar",
11*e0c4386eSCy Schubert        ARFLAGS         => "qc",
12*e0c4386eSCy Schubert        HASHBANGPERL    => "/bin/env perl",
13*e0c4386eSCy Schubert        sys_id           => "HAIKU",
14*e0c4386eSCy Schubert        ex_libs          => "-lnetwork",
15*e0c4386eSCy Schubert        perlasm_scheme   => "elf",
16*e0c4386eSCy Schubert        thread_scheme    => "pthreads",
17*e0c4386eSCy Schubert        dso_scheme       => "dlfcn",
18*e0c4386eSCy Schubert        shared_target    => "gnu-shared",
19*e0c4386eSCy Schubert        shared_cflag     => "-fPIC",
20*e0c4386eSCy Schubert        shared_ldflag    => "-shared",
21*e0c4386eSCy Schubert        perl_platform    => 'Unix',
22*e0c4386eSCy Schubert    },
23*e0c4386eSCy Schubert    "haiku-x86" => {
24*e0c4386eSCy Schubert        inherit_from     => [ "haiku-common" ],
25*e0c4386eSCy Schubert        CFLAGS           => add(picker(release => "-fomit-frame-pointer")),
26*e0c4386eSCy Schubert        bn_ops           => "BN_LLONG",
27*e0c4386eSCy Schubert        asm_arch         => 'x86',
28*e0c4386eSCy Schubert        perlasm_scheme   => 'elf',
29*e0c4386eSCy Schubert    },
30*e0c4386eSCy Schubert    "haiku-x86_64" => {
31*e0c4386eSCy Schubert        inherit_from     => [ "haiku-common" ],
32*e0c4386eSCy Schubert        cflags           => add("-m64"),
33*e0c4386eSCy Schubert        bn_ops           => "SIXTY_FOUR_BIT_LONG",
34*e0c4386eSCy Schubert    },
35*e0c4386eSCy Schubert);
36