1--------------------------------------------------------------------------
2-- Copyright (c) 2007-2012, 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, Universitaetstrasse 6, CH-8092 Zurich. Attn: Systems Group.
8--
9-- Hakefile for /lib/net
10--
11--------------------------------------------------------------------------
12
13[ build library {
14    target       = "net",
15    cFiles       = [ "net.c", "netbufs.c",  "netif.c", "pbuf.c", "dhcp.c",
16                     "net_filter.c", "arp.c", "net_queue.c"],
17    flounderBindings = [ "net_filter", "net_ARP"],
18    flounderDefs = [ "net_filter", "octopus", "net_ARP" ],
19    flounderExtraDefs = [ ("net_filter",["rpcclient"]) ],
20    addLibraries = libDeps [ "lwip2", "devif", "devif_backend_idc",
21                             "devif_backend_loopback",
22                             "debug_log", "net_sockets",
23                             "octopus", "octopus_parser" , "driverkit_iommu",
24                             "queue_service_client"],
25    architectures = ["armv7"]
26  },
27
28build library {
29    target       = "net",
30    cFiles       = [ "net.c", "netbufs.c",  "netif.c", "pbuf.c", "dhcp.c",
31                     "net_filter.c", "arp.c", "net_queue.c"],
32    flounderBindings = [ "net_filter", "net_ARP"],
33    flounderDefs = [ "net_filter", "octopus", "net_ARP" ],
34    flounderExtraDefs = [ ("net_filter",["rpcclient"]) ],
35    addLibraries = libDeps [ "lwip2", "devif", "devif_backend_idc",
36                             "devif_backend_solarflare", "devif_backend_e10k",
37                             "devif_backend_loopback",  "devif_backend_e1000",
38                             "devif_backend_mlx4", "debug_log", "net_sockets",
39                             "octopus", "octopus_parser" , "driverkit_iommu",
40                             "queue_service_client"],
41    architectures = [ "armv8", "x86_64" ]
42  },
43
44  build application {
45    target       = "net_udp_echo",
46    cFiles       = [ "test/udp_echo.c" ],
47    addLibraries = libDeps [ "net", "lwip2" ]
48  },
49
50  build application {
51    target       = "ping",
52    cFiles       = [ "test/ping.c" ],
53    addLibraries = libDeps [ "net", "lwip2" ]
54  },
55
56  build application {
57    target       = "udp_ping",
58    cFiles       = [ "test/udp_ping.c" ],
59    addLibraries = libDeps [ "net", "lwip2" ]
60  },
61  build application {
62    target       = "net_dhcp",
63    cFiles       = [ "test/dhcp.c" ],
64    addLibraries = libDeps [ "net", "lwip2" ]
65  },
66  build application {
67    target       = "net_arp",
68    cFiles       = [ "test/arp.c" ],
69    addLibraries = libDeps [ "net", "lwip2" ]
70  }
71]
72