]>
Commit | Line | Data |
---|---|---|
3b6c4b07 | 1 | my %targets = ( |
6c4be50a AP |
2 | "haiku-common" => { |
3 | template => 1, | |
abe256e7 RL |
4 | CC => "cc", |
5 | CFLAGS => add_before(picker(default => "-Wall", | |
6c4be50a | 6 | debug => "-g -O0", |
abe256e7 RL |
7 | release => "-O2")), |
8 | cflags => add_before("-DL_ENDIAN -include \$(SRCDIR)/os-dep/haiku.h", | |
6c4be50a AP |
9 | threads("-D_REENTRANT")), |
10 | sys_id => "HAIKU", | |
11 | ex_libs => "-lnetwork", | |
12 | perlasm_scheme => "elf", | |
13 | thread_scheme => "pthreads", | |
14 | dso_scheme => "dlfcn", | |
15 | shared_target => "gnu-shared", | |
16 | shared_cflag => "-fPIC", | |
17 | shared_ldflag => "-shared", | |
d4453024 | 18 | shared_extension => ".so.\$(SHLIB_VERSION_NUMBER)", |
6c4be50a AP |
19 | }, |
20 | "haiku-x86" => { | |
21 | inherit_from => [ "haiku-common", asm("x86_elf_asm") ], | |
abe256e7 | 22 | CFLAGS => add(picker(release => "-fomit-frame-pointer")), |
6c4be50a AP |
23 | bn_ops => "BN_LLONG", |
24 | }, | |
25 | "haiku-x86_64" => { | |
26 | inherit_from => [ "haiku-common" ], | |
27 | cflags => add("-m64"), | |
28 | bn_ops => "SIXTY_FOUR_BIT_LONG", | |
29 | }, | |
30 | ); |