xref: /reactos/hal/halx86/pc98.cmake (revision 9393fc32)
1
2# Generic
3list(APPEND HAL_PC98_SOURCE
4    pc98/beep.c
5    pc98/clock.c
6    pc98/cmos.c
7    pc98/delay.c
8    pc98/pic.c
9    pc98/profil.c
10    pc98/reboot.c
11    generic/bios.c
12    generic/display.c
13    generic/dma.c
14    generic/drive.c
15    generic/halinit.c
16    generic/memory.c
17    generic/misc.c
18    generic/nmi.c
19    generic/portio.c
20    generic/sysinfo.c
21    generic/usage.c)
22
23list(APPEND HAL_PC98_ASM_SOURCE
24    generic/v86.S)
25
26# PIC
27list(APPEND HAL_PC98_SOURCE
28    pc98/irql.c
29    generic/timer.c
30    pic/halinit.c
31    pic/pic.c
32    pic/processor.c)
33
34list(APPEND HAL_PC98_ASM_SOURCE
35    generic/trap.S
36    pic/pic.S)
37
38# Legacy
39list(APPEND HAL_PC98_SOURCE
40    legacy/bus/bushndlr.c
41    legacy/bus/cmosbus.c
42    legacy/bus/isabus.c
43    legacy/bus/pcibus.c
44    ${CMAKE_CURRENT_BINARY_DIR}/pci_classes.c
45    ${CMAKE_CURRENT_BINARY_DIR}/pci_vendors.c
46    legacy/bus/sysbus.c
47    legacy/bussupp.c
48    legacy/halpnpdd.c
49    legacy/halpcat.c)
50
51add_asm_files(lib_hal_pc98_asm ${HAL_PC98_ASM_SOURCE})
52add_library(lib_hal_pc98 OBJECT ${HAL_PC98_SOURCE} ${lib_hal_pc98_asm})
53add_dependencies(lib_hal_pc98 bugcodes xdk asm)
54#add_pch(lib_hal_pc98 pc98/halpc98.h)
55
56target_compile_definitions(lib_hal_pc98 PRIVATE SARCH_PC98)
57