1-------------------------------------------------------------------------- 2-- Copyright (c) 2007-2009, 2011, 2013, ETH Zurich. 3-- All rights reserved. 4-- 5-- This file is distributed under the terms in the attached LICENSE file. 6-- If you do not find this file, copies can be found by writing to: 7-- ETH Zurich D-INFK, CAB F.78, Universitaetstr. 6, CH-8092 Zurich, 8-- Attn: Systems Group. 9-- 10-- Hakefile for lib/lwip 11-- 12-------------------------------------------------------------------------- 13 14 15let 16 subdirs = [ "src/core", "src/core/ipv4", "src/netif", "src/api" ] 17 18 srcs = concat [ find cInDir sd | sd <- subdirs ] 19 ++ ["src/sys_arch.c", "src/barrelfish/pbuf_barrelfish.c" ] 20 -- ++ [ "src/netif/bfeth.c", "src/netif/etharp.c", "src/sys_arch.c" ] 21 srcs2 = filter (\x -> not (Data.List.isInfixOf "pbuf.c" x)) srcs 22in 23 [ build library { 24 target = "lwip2", 25 cFiles = srcs2, 26 -- omitCFlags = [ "-Werror" ], 27 -- addCFlags = [ "-Wno-redundant-decls", "-DBF_LWIP_CHAN_SUPPORT" ], 28 flounderBindings = [ "net_queue_manager", "net_ports", "net_ARP" ], 29 addIncludes = [ "src/include", "/include/lwip2" ] 30 } 31 ] 32