diff options
author | Felix Erckenbrecht <eligs@eligs.de> | 2022-04-02 23:40:33 +0200 |
---|---|---|
committer | Felix Erckenbrecht <eligs@eligs.de> | 2022-04-02 23:40:33 +0200 |
commit | 33f5c6c1836833d262e837508c54b538aeda6bc7 (patch) | |
tree | d936aba94c1649321e6c8f7172bdc4a66c835b3f | |
parent | 93a5ee2b4e2cafc29a88421b6adeb1d3bc915761 (diff) | |
download | osmo-fl2k-33f5c6c1836833d262e837508c54b538aeda6bc7.tar.gz osmo-fl2k-33f5c6c1836833d262e837508c54b538aeda6bc7.tar.bz2 osmo-fl2k-33f5c6c1836833d262e837508c54b538aeda6bc7.zip |
Add debug symbols
-rw-r--r-- | CMakeLists.txt | 3 | ||||
-rw-r--r-- | src/CMakeLists.txt | 1 | ||||
-rw-r--r-- | src/fl2k_ampliphase.c | 1 |
3 files changed, 5 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 84bc55d..bb31183 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -152,6 +152,9 @@ IF(CMAKE_CROSSCOMPILING) UNSET(FL2K_PC_LIBS) ENDIF(CMAKE_CROSSCOMPILING) +set(CMAKE_BUILD_TYPE Debug) +set(CMAKE_CXX_FLAGS_DEBUG "-g") +set(CMAKE_C_FLAGS_DEBUG "-g") set(prefix ${CMAKE_INSTALL_PREFIX}) set(exec_prefix \${prefix}) set(libdir \${exec_prefix}/${LIB_INSTALL_DIR}) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index f4ec556..47fc40a 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -83,6 +83,7 @@ target_link_libraries(fl2k_ampliphase libosmo-fl2k_shared ${CMAKE_THREAD_LIBS_INIT} ) +set(CMAKE_BUILD_TYPE Debug) if(UNIX) target_link_libraries(fl2k_ampliphase m) diff --git a/src/fl2k_ampliphase.c b/src/fl2k_ampliphase.c index 5c50391..7167ba7 100644 --- a/src/fl2k_ampliphase.c +++ b/src/fl2k_ampliphase.c @@ -238,6 +238,7 @@ dds_t dds_init(float sample_freq, float freq, float phase, float amp, enum wavef } + static inline void dds_complex(dds_t *dds, int8_t * i, int8_t * q) { int phase_idx_i, phase_idx_q; |