1
2add_definitions(
3    -DNDIS_MINIPORT_DRIVER
4    -DNDIS51_MINIPORT=1)
5
6list(APPEND SOURCE
7    dc21x4.c
8    dc21x4.h
9    dc21x4hw.h
10    debug.h
11    eeprom.c
12    eeprom.h
13    eeprom_data.c
14    hardware.c
15    init.c
16    interrupt.c
17    media.c
18    media040.c
19    media041.c
20    media140.c
21    media143.c
22    phy.c
23    power.c
24    requests.c
25    send.c
26    util.h)
27
28if(DBG)
29    list(APPEND SOURCE debug.c)
30endif()
31
32add_library(dc21x4 MODULE ${SOURCE} dc21x4.rc)
33if(DBG)
34    target_link_libraries(dc21x4 memcmp)
35endif()
36add_pch(dc21x4 dc21x4.h SOURCE)
37set_module_type(dc21x4 kernelmodedriver)
38add_importlibs(dc21x4 ndis ntoskrnl hal)
39add_cd_file(TARGET dc21x4 DESTINATION reactos/system32/drivers FOR all)
40add_driver_inf(dc21x4 net21x4.inf)
41