github.com/pyroscope-io/pyroscope@v0.37.3-0.20230725203016-5f6947968bd0/third_party/bcc/Makefile (about)

     1  BCC_VERSION ?= b9554b585afe18540ba98dde5b667e5b4036f479
     2  
     3  .PHONY: build-bcc
     4  build-bcc:
     5  	test -d src || git clone https://github.com/korniltsev/bcc src
     6  	cd src && git checkout $(BCC_VERSION)
     7  	test -d src/build && rm -rf src/build || echo bcc src/build dir does not exits
     8  	mkdir src/build
     9  	cd src/build \
    10  		&& cmake ../build-syms  \
    11  			-DCMAKE_C_COMPILER=clang \
    12  			-DCMAKE_CXX_COMPILER=clang++ \
    13  			-DCMAKE_BUILD_TYPE=Release \
    14  			-DCMAKE_INSTALL_PREFIX=$(shell pwd)/lib \
    15          		&& make -j16 install
    16  
    17  .PHONY: clean
    18  clean:
    19  	rm -rf src lib