Files
btop/Makefile
Steffen Winter 6f12e3555d Properly invoke CMake to build ROCm
* Build an optimized library by default
* Only build the library target
* ROCm is build with debug symbols when `make DEBUG=true`
* Enable LTO
* Use the more generic CMake build command instead of calling make
  directly, this always uses all cores by default and makes it easier to
  switch to another generator e.g. Ninja
* Use a variable to store the ROCm source directory. The directory can
  be changed with `make ROCM_DIR=<dir>`
* The static library is now directly linked by CMake and not created off
  of the object files from a shared library build
* The C++ compiler used to compile btop is now used to compile ROCm to
  avoid name mangling when `CXX` from the environment and `make CXX=`
  differ
* CMake is invoked from btop's root directory
2023-11-27 12:19:21 +01:00

17 KiB