diff options
| author | taitep <taitep@taitep.se> | 2026-01-04 18:51:23 +0100 |
|---|---|---|
| committer | taitep <taitep@taitep.se> | 2026-01-04 18:51:23 +0100 |
| commit | 25bec21f20208a9369656a337cf5325e7b3a5a8d (patch) | |
| tree | 10b66b7837bd547ea08c5838a0c30b2c850618f5 /CMakeLists.txt | |
Initial commit
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..f00d15f --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,19 @@ +cmake_minimum_required(VERSION 3.10) + +project(libtrv LANGUAGES C ASM) + +set(CMAKE_SYSTEM_PROCESSOR riscv64) + +set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mcmodel=medany -march=rv64im -mabi=lp64") + +set(SRC_FILES + src/syscalls.c + src/crt0.S +) + +include_directories(include) + +add_library(trv STATIC ${SRC_FILES}) + +install(TARGETS trv DESTINATION lib) +install(DIRECTORY include/ DESTINATION include/trv) |
