11734f297SVictor Perevertkin
21734f297SVictor Perevertkinif(ARCH STREQUAL "i386")
31734f297SVictor Perevertkin    add_asm_files(ip_asm network/i386/checksum.S)
41734f297SVictor Perevertkinendif()
51734f297SVictor Perevertkin
61734f297SVictor Perevertkinlist(APPEND SOURCE
7a0a19c60SVictor Perevertkin    lwip_glue/ip.c
8a0a19c60SVictor Perevertkin    lwip_glue/memory.c
9a0a19c60SVictor Perevertkin    lwip_glue/sys_arch.c
10a0a19c60SVictor Perevertkin    lwip_glue/tcp.c
111734f297SVictor Perevertkin    network/address.c
121734f297SVictor Perevertkin    network/arp.c
131734f297SVictor Perevertkin    network/checksum.c
141734f297SVictor Perevertkin    network/icmp.c
151734f297SVictor Perevertkin    network/interface.c
161734f297SVictor Perevertkin    network/ip.c
171734f297SVictor Perevertkin    network/loopback.c
181734f297SVictor Perevertkin    network/neighbor.c
191734f297SVictor Perevertkin    network/ports.c
201734f297SVictor Perevertkin    network/receive.c
211734f297SVictor Perevertkin    network/router.c
221734f297SVictor Perevertkin    network/routines.c
231734f297SVictor Perevertkin    network/transmit.c
241734f297SVictor Perevertkin    transport/datagram/datagram.c
251734f297SVictor Perevertkin    transport/rawip/rawip.c
261734f297SVictor Perevertkin    transport/tcp/accept.c
271734f297SVictor Perevertkin    transport/tcp/event.c
281734f297SVictor Perevertkin    transport/tcp/if.c
291734f297SVictor Perevertkin    transport/tcp/tcp.c
301734f297SVictor Perevertkin    transport/udp/udp.c)
311734f297SVictor Perevertkin
32a0a19c60SVictor Perevertkinadd_library(ip OBJECT ${SOURCE} ${ip_asm})
33a0a19c60SVictor Perevertkin
349cfd8dd9Shpoussintarget_link_libraries(ip lwipcore)
35*d6eebaa4SHervé Poussineauadd_importlibs(lwipcore ntoskrnl)
361734f297SVictor Perevertkin
371734f297SVictor Perevertkintarget_include_directories(ip BEFORE
389cfd8dd9Shpoussin    PRIVATE ${LWIP_INCLUDE_DIRS}
39a0a19c60SVictor Perevertkin    PRIVATE ${REACTOS_SOURCE_DIR}/drivers/network/tcpip/include)
401734f297SVictor Perevertkin
411734f297SVictor Perevertkinadd_pch(ip precomp.h SOURCE)
42