2022-12-23 12:09:21 +00:00
|
|
|
function(luna_app SOURCE_FILE APP_NAME)
|
|
|
|
add_executable(${APP_NAME} ${SOURCE_FILE})
|
2023-01-10 17:13:21 +00:00
|
|
|
target_compile_options(${APP_NAME} PRIVATE -Os -Wall -Wextra -pedantic -Werror)
|
2023-01-06 12:31:14 +00:00
|
|
|
add_dependencies(${APP_NAME} libc)
|
2023-01-06 23:21:08 +00:00
|
|
|
target_include_directories(${APP_NAME} PRIVATE ${LUNA_BASE}/usr/include)
|
2023-01-06 12:31:14 +00:00
|
|
|
install(TARGETS ${APP_NAME} DESTINATION ${LUNA_ROOT}/initrd/bin)
|
2022-12-23 12:09:21 +00:00
|
|
|
endfunction()
|
|
|
|
|
2023-03-18 18:23:18 +00:00
|
|
|
luna_app(init.c init)
|
2023-03-23 23:52:26 +00:00
|
|
|
luna_app(cat.c cat)
|
|
|
|
luna_app(edit.c edit)
|
2023-03-23 21:19:54 +00:00
|
|
|
luna_app(sh.c sh)
|