-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
26 lines (24 loc) · 1.02 KB
/
Makefile
File metadata and controls
26 lines (24 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# This is a Legacy Makefile for CI setup. It is not intended for local development.
# Note: this is not use for anything important in the current CI setup or build system
CLANG_FLAGS := -DCMAKE_C_COMPILER=/usr/bin/clang -DCMAKE_CXX_COMPILER=/usr/bin/clang++
GCC_FLAGS := -DCMAKE_C_COMPILER=/usr/bin/gcc -DCMAKE_CXX_COMPILER=/usr/bin/g++
all: clang
clang: build
cd build && cmake ../ -DCMAKE_BUILD_TYPE=RelWithDebInfo $(CLANG_FLAGS) && make -j4
gcc: build
cd build && cmake ../ -DCMAKE_BUILD_TYPE=RelWithDebInfo $(GCC_FLAGS) && make -j4
build:
mkdir build
/opt/pip: configure-pip
configure-pip: configure-pip3
configure-pip3:
sudo mkdir -p /opt/pip
sudo wget https://bootstrap.pypa.io/get-pip.py -P /opt/pip
python3 -V
sudo python3 /opt/pip/get-pip.py
/opt/cmake: configure-cmake
configure-cmake:
sudo mkdir -p /opt/cmake
sudo wget https://cmake.org/files/v3.30/cmake-3.30.9-linux-x86_64.sh -P /opt/cmake
sudo sh /opt/cmake/cmake-3.30.9-linux-x86_64.sh --prefix=/opt/cmake --skip-license
sudo ln -sf /opt/cmake/bin/cmake /usr/bin/cmake