2023-07-21 18:44:01 +00:00
|
|
|
set(SOURCES
|
|
|
|
main.cpp
|
|
|
|
sh.h
|
|
|
|
builtin/cd.cpp
|
2023-07-21 19:06:10 +00:00
|
|
|
builtin/exit.cpp
|
|
|
|
builtin/set.cpp
|
|
|
|
builtin/unset.cpp
|
2023-07-21 18:44:01 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
add_executable(sh ${SOURCES})
|
|
|
|
target_compile_options(sh PRIVATE -Os ${COMMON_FLAGS} -Wno-write-strings)
|
|
|
|
add_dependencies(sh libc)
|
|
|
|
target_include_directories(sh PRIVATE ${LUNA_BASE}/usr/include ${CMAKE_CURRENT_LIST_DIR})
|
|
|
|
target_link_libraries(sh PRIVATE os)
|
|
|
|
install(TARGETS sh DESTINATION ${LUNA_BASE}/usr/bin)
|