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/kdpci.c 17 generic/memory.c 18 generic/misc.c 19 generic/nmi.c 20 generic/portio.c 21 generic/sysinfo.c 22 generic/usage.c 23 generic/x86bios.c) 24 25list(APPEND HAL_PC98_ASM_SOURCE 26 generic/v86.S) 27 28# PIC 29list(APPEND HAL_PC98_SOURCE 30 pc98/irql.c 31 generic/timer.c 32 pic/halinit.c 33 pic/pic.c 34 pic/processor.c) 35 36list(APPEND HAL_PC98_ASM_SOURCE 37 generic/trap.S 38 pic/pic.S) 39 40# Legacy 41list(APPEND HAL_PC98_SOURCE 42 legacy/bus/bushndlr.c 43 legacy/bus/cmosbus.c 44 legacy/bus/isabus.c 45 legacy/bus/pcibus.c 46 ${CMAKE_CURRENT_BINARY_DIR}/pci_classes.c 47 ${CMAKE_CURRENT_BINARY_DIR}/pci_vendors.c 48 legacy/bus/sysbus.c 49 legacy/bussupp.c 50 legacy/halpnpdd.c 51 legacy/halpcat.c) 52 53add_asm_files(lib_hal_pc98_asm ${HAL_PC98_ASM_SOURCE}) 54add_library(lib_hal_pc98 OBJECT ${HAL_PC98_SOURCE} ${lib_hal_pc98_asm}) 55add_dependencies(lib_hal_pc98 bugcodes xdk asm) 56#add_pch(lib_hal_pc98 pc98/halpc98.h) 57 58target_compile_definitions(lib_hal_pc98 PRIVATE SARCH_PC98) 59