set(ARCHDEP_INCLUDES
    ${ARCH_INCLUDES}
    ${CMAKE_SOURCE_DIR}/src
    ${CMAKE_SOURCE_DIR}/src/rs232drv
    )

set(ARCHDEP_SOURCES
    archdep_atexit.c
    archdep_boot_path.c
    archdep_cbmfont.c
    archdep_create_user_config_dir.c
    archdep_default_autostart_disk_image_file_name.c
    archdep_default_fliplist_file_name.c
    archdep_default_hotkey_file_name.c
    archdep_default_joymap_file_name.c
    archdep_default_logger.c
    archdep_default_resource_file_name.c
    archdep_default_rtc_file_name.c
    archdep_default_sysfile_pathlist.c
    archdep_expand_path.c
    archdep_extra_title_text.c
    archdep_file_is_blockdev.c
    archdep_file_is_chardev.c
    archdep_filename_parameter.c
    archdep_fix_permissions.c
    archdep_get_current_drive.c
    archdep_get_vice_datadir.c
    archdep_get_vice_docsdir.c
    archdep_home_path.c
    archdep_is_haiku.c
    archdep_is_windows_nt.c
    archdep_join_paths.c
    archdep_kbd_get_host_mapping.c
    archdep_list_drives.c
    archdep_make_backup_filename.c
    archdep_mkdir.c
    archdep_mkstemp_fd.c
    archdep_open_default_log_file.c
    archdep_path_is_relative.c
    archdep_pref_path.c
    archdep_program_name.c
    archdep_program_path.c
    archdep_quote_parameter.c
    archdep_rename.c
    archdep_require_vkbd.c
    archdep_rmdir.c
    archdep_rtc_get_centisecond.c
    archdep_sanitize_filename.c
    archdep_set_current_drive.c
    archdep_signals.c
    archdep_spawn.c
    archdep_startup_log_error.c
    archdep_stat.c
    archdep_tmpnam.c
    archdep_user_config_path.c
    archdep_usleep.c
    archdep_xdg.c
    console.c
    coproc.c
    dynlib.c
    rawnetarch.c
    rs232dev.c
    signals.c
    )

add_library(archdep STATIC ${ARCHDEP_SOURCES})
target_include_directories(archdep PRIVATE ${ARCHDEP_INCLUDES})

