aos/lib/libc/sys/Hakefile
Daniel Schwyn 6d444bf552 Main handout
Signed-off-by: Daniel Schwyn <daniel.schwyn@inf.ethz.ch>
2022-03-03 14:57:51 +01:00

27 lines
1.1 KiB
Plaintext

--------------------------------------------------------------------------
-- Copyright (c) 2017, ETH Zurich.
-- All rights reserved.
--
-- This file is distributed under the terms in the attached LICENSE file.
-- If you do not find this file, copies can be found by writing to:
-- ETH Zurich D-INFK, Universitaetstrasse 6, CH-8092 Zurich. Attn: Systems Group.
--
-- Hakefile for libm
--
--------------------------------------------------------------------------
[
build library {
target = "libc_sys",
cFiles = [ "__error.c", "interposing_table.c", "barrelfish_syscalls.c" ],
addIncludes = [ "../include", "../locale" ] ++ (case arch of
"x86_64" -> [ "../amd64" ]
"k1om" -> [ "../amd64" ]
"armv7" -> [ "../arm" ]
"armv8" -> [ "../aarch64" ]),
omitCFlags = [ "-std=c99", "-Wmissing-prototypes", "-Wmissing-declarations", "-Wimplicit-function-declaration", "-Werror" ],
addCFlags = if Config.libc_mmap_nyi_flags then [ "-DCONFIG_PRINT_MMAP_NYI_FLAGS" ] else [],
architectures = [ arch ]
} | arch <- allArchitectures
]