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