2022-12-23 12:09:21 +00:00
|
|
|
function(luna_app SOURCE_FILE APP_NAME)
|
|
|
|
add_executable(${APP_NAME} ${SOURCE_FILE})
|
2023-04-07 10:02:49 +00:00
|
|
|
target_compile_options(${APP_NAME} PRIVATE -Os ${COMMON_FLAGS} -Wno-write-strings)
|
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-29 15:56:56 +00:00
|
|
|
luna_app(init.cpp init)
|
2023-04-07 13:03:38 +00:00
|
|
|
luna_app(env.cpp env)
|
2023-03-29 19:46:07 +00:00
|
|
|
|
2023-04-08 10:09:43 +00:00
|
|
|
luna_app(sh.cpp sh)
|
|
|
|
target_link_libraries(sh PRIVATE os)
|
|
|
|
|
2023-03-29 20:10:51 +00:00
|
|
|
luna_app(cat.cpp cat)
|
|
|
|
target_link_libraries(cat PRIVATE os)
|
|
|
|
|
2023-03-29 15:56:56 +00:00
|
|
|
luna_app(date.cpp date)
|
2023-03-29 19:46:07 +00:00
|
|
|
target_link_libraries(date PRIVATE os)
|
2023-03-29 16:27:02 +00:00
|
|
|
|
|
|
|
luna_app(edit.cpp edit)
|
|
|
|
target_link_libraries(edit PRIVATE os)
|
|
|
|
|
2023-03-29 15:56:56 +00:00
|
|
|
luna_app(ls.cpp ls)
|
2023-03-29 16:27:02 +00:00
|
|
|
target_link_libraries(ls PRIVATE os)
|