1 | # $Id: Makefile.kmk$
|
---|
2 | ## @file
|
---|
3 | # Adds sources list and defines required to LWIP pre-1.5.0 compilation
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2006-2012 Oracle Corporation
|
---|
8 | #
|
---|
9 | # This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
10 | # available from http://www.virtualbox.org. This file is free software;
|
---|
11 | # you can redistribute it and/or modify it under the terms of the GNU
|
---|
12 | # General Public License (GPL) as published by the Free Software
|
---|
13 | # Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
14 | # VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
15 | # hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
16 | #
|
---|
17 |
|
---|
18 | #
|
---|
19 | # Recommended kmk flags:
|
---|
20 | #
|
---|
21 | # VBOX_WITH_NAT_SERVICE=1
|
---|
22 | # VBOX_WITH_LWIP_NAT=1
|
---|
23 | #
|
---|
24 |
|
---|
25 | LWIP_INCS += Network/lwip-new/src/include \
|
---|
26 | Network/lwip-new/src/include/ipv4 \
|
---|
27 | Network/lwip-new/src/include/ipv6 \
|
---|
28 | Network/lwip-new/vbox/include
|
---|
29 |
|
---|
30 | LWIP_SOURCES += Network/lwip-new/src/api/api_lib.c \
|
---|
31 | Network/lwip-new/src/api/api_msg.c \
|
---|
32 | Network/lwip-new/src/api/err.c \
|
---|
33 | Network/lwip-new/src/api/netbuf.c \
|
---|
34 | Network/lwip-new/src/api/netdb.c \
|
---|
35 | Network/lwip-new/src/api/netifapi.c \
|
---|
36 | Network/lwip-new/src/api/sockets.c \
|
---|
37 | Network/lwip-new/src/api/tcpip.c \
|
---|
38 | Network/lwip-new/src/core/def.c \
|
---|
39 | Network/lwip-new/src/core/dhcp.c \
|
---|
40 | Network/lwip-new/src/core/dns.c \
|
---|
41 | Network/lwip-new/src/core/inet_chksum.c \
|
---|
42 | Network/lwip-new/src/core/init.c \
|
---|
43 | Network/lwip-new/src/core/ipv4/autoip.c \
|
---|
44 | Network/lwip-new/src/core/ipv4/icmp.c \
|
---|
45 | Network/lwip-new/src/core/ipv4/igmp.c \
|
---|
46 | Network/lwip-new/src/core/ipv4/ip4.c \
|
---|
47 | Network/lwip-new/src/core/ipv4/ip4_addr.c \
|
---|
48 | Network/lwip-new/src/core/ipv4/ip_frag.c \
|
---|
49 | Network/lwip-new/src/core/ipv6/dhcp6.c \
|
---|
50 | Network/lwip-new/src/core/ipv6/ethip6.c \
|
---|
51 | Network/lwip-new/src/core/ipv6/icmp6.c \
|
---|
52 | Network/lwip-new/src/core/ipv6/inet6.c \
|
---|
53 | Network/lwip-new/src/core/ipv6/ip6.c \
|
---|
54 | Network/lwip-new/src/core/ipv6/ip6_addr.c \
|
---|
55 | Network/lwip-new/src/core/ipv6/ip6_frag.c \
|
---|
56 | Network/lwip-new/src/core/ipv6/mld6.c \
|
---|
57 | Network/lwip-new/src/core/ipv6/nd6.c \
|
---|
58 | Network/lwip-new/src/core/mem.c \
|
---|
59 | Network/lwip-new/src/core/memp.c \
|
---|
60 | Network/lwip-new/src/core/netif.c \
|
---|
61 | Network/lwip-new/src/core/pbuf.c \
|
---|
62 | Network/lwip-new/src/core/raw.c \
|
---|
63 | Network/lwip-new/src/core/snmp/asn1_dec.c \
|
---|
64 | Network/lwip-new/src/core/snmp/asn1_enc.c \
|
---|
65 | Network/lwip-new/src/core/snmp/mib2.c \
|
---|
66 | Network/lwip-new/src/core/snmp/mib_structs.c \
|
---|
67 | Network/lwip-new/src/core/snmp/msg_in.c \
|
---|
68 | Network/lwip-new/src/core/snmp/msg_out.c \
|
---|
69 | Network/lwip-new/src/core/stats.c \
|
---|
70 | Network/lwip-new/src/core/sys.c \
|
---|
71 | Network/lwip-new/src/core/tcp.c \
|
---|
72 | Network/lwip-new/src/core/tcp_in.c \
|
---|
73 | Network/lwip-new/src/core/tcp_out.c \
|
---|
74 | Network/lwip-new/src/core/timers.c \
|
---|
75 | Network/lwip-new/src/core/udp.c \
|
---|
76 | Network/lwip-new/src/netif/etharp.c \
|
---|
77 | Network/lwip-new/src/netif/ethernetif.c \
|
---|
78 | Network/lwip-new/src/netif/ppp/auth.c \
|
---|
79 | Network/lwip-new/src/netif/ppp/chap.c \
|
---|
80 | Network/lwip-new/src/netif/ppp/chpms.c \
|
---|
81 | Network/lwip-new/src/netif/ppp/fsm.c \
|
---|
82 | Network/lwip-new/src/netif/ppp/ipcp.c \
|
---|
83 | Network/lwip-new/src/netif/ppp/lcp.c \
|
---|
84 | Network/lwip-new/src/netif/ppp/magic.c \
|
---|
85 | Network/lwip-new/src/netif/ppp/md5.c \
|
---|
86 | Network/lwip-new/src/netif/ppp/pap.c \
|
---|
87 | Network/lwip-new/src/netif/ppp/ppp.c \
|
---|
88 | Network/lwip-new/src/netif/ppp/ppp_oe.c \
|
---|
89 | Network/lwip-new/src/netif/ppp/randm.c \
|
---|
90 | Network/lwip-new/src/netif/ppp/vj.c \
|
---|
91 | Network/lwip-new/src/netif/slipif.c \
|
---|
92 | Network/lwip-new/vbox/sys_arch.c \
|
---|
93 | Network/VBoxLwipCore.cpp
|
---|
94 |
|
---|
95 | ifeq ($(USERNAME), vvl)
|
---|
96 | $(foreach lwip_file, $(LWIP_SOURCES), $(eval $(lwip_file)_DEFS=RTMEM_WRAP_TO_EF_APIS))
|
---|
97 |
|
---|
98 | LWIPTEST_SOURCES= Network/lwip-new/test/unit/core/test_mem.c \
|
---|
99 | Network/lwip-new/test/unit/etharp/test_etharp.c \
|
---|
100 | Network/lwip-new/test/unit/lwip_unittests.c \
|
---|
101 | Network/lwip-new/test/unit/tcp/tcp_helper.c \
|
---|
102 | Network/lwip-new/test/unit/tcp/test_tcp.c \
|
---|
103 | Network/lwip-new/test/unit/tcp/test_tcp_oos.c \
|
---|
104 | Network/lwip-new/test/unit/udp/test_udp.c
|
---|
105 | endif
|
---|
106 |
|
---|
107 | ifdef VBOX_WITH_INIP
|
---|
108 | Network/DevINIP.cpp_DEFS += VBOX_WITH_NEW_LWIP
|
---|
109 | endif
|
---|
110 |
|
---|
111 | ifdef VBOX_WITH_ISCSI
|
---|
112 | Storage/DrvVD.cpp_DEFS += VBOX_WITH_NEW_LWIP
|
---|
113 | endif
|
---|