function(luna_app SOURCE_FILE APP_NAME) add_executable(${APP_NAME} ${SOURCE_FILE}) target_compile_options(${APP_NAME} PRIVATE -Os ${COMMON_FLAGS} -Wno-write-strings) add_dependencies(${APP_NAME} libc) target_include_directories(${APP_NAME} PRIVATE ${LUNA_BASE}/usr/include) install(TARGETS ${APP_NAME} DESTINATION ${LUNA_ROOT}/initrd/bin) endfunction() luna_app(init.cpp init) luna_app(sh.cpp sh) luna_app(cat.cpp cat) target_link_libraries(cat PRIVATE os) luna_app(date.cpp date) target_link_libraries(date PRIVATE os) luna_app(edit.cpp edit) target_link_libraries(edit PRIVATE os) luna_app(ls.cpp ls) target_link_libraries(ls PRIVATE os)