1
2include_directories(
3    BEFORE include
4    ${REACTOS_SOURCE_DIR}/sdk/lib/drivers/lwip/src/include
5    ${REACTOS_SOURCE_DIR}/sdk/lib/drivers/lwip/src/include/ipv4)
6
7add_definitions(
8    -DNDIS40
9    -D_NTDRIVER_)
10
11spec2def(tcpip.sys tcpip.spec)
12
13list(APPEND SOURCE
14    datalink/lan.c
15    tcpip/ainfo.c
16    tcpip/buffer.c
17    tcpip/cinfo.c
18    tcpip/dispatch.c
19    tcpip/fileobjs.c
20    tcpip/icmp.c
21    tcpip/iinfo.c
22    tcpip/info.c
23    tcpip/lock.c
24    tcpip/main.c
25    tcpip/ninfo.c
26    tcpip/proto.c
27    tcpip/tinfo.c
28    tcpip/wait.c
29    include/precomp.h)
30
31add_library(tcpip MODULE
32    ${SOURCE}
33    tcpip.rc
34    ${CMAKE_CURRENT_BINARY_DIR}/tcpip.def)
35
36target_link_libraries(tcpip ip lwip ${PSEH_LIB} chew)
37set_module_type(tcpip kernelmodedriver)
38add_importlibs(tcpip ndis ntoskrnl hal)
39add_pch(tcpip include/precomp.h SOURCE)
40add_cd_file(TARGET tcpip DESTINATION reactos/system32/drivers FOR all)
41