2021-05-12 14:28:10 +02:00
|
|
|
|
2022-03-05 17:30:40 +01:00
|
|
|
all: likwid
|
2021-03-27 12:44:11 +01:00
|
|
|
|
|
|
|
|
2022-03-05 17:30:40 +01:00
|
|
|
# LIKWID version
|
|
|
|
LIKWID_VERSION = 5.2.1
|
2021-11-25 15:11:39 +01:00
|
|
|
|
2022-03-05 17:30:40 +01:00
|
|
|
.ONESHELL:
|
|
|
|
.PHONY: likwid
|
|
|
|
likwid:
|
|
|
|
INSTALL_FOLDER="$${PWD}/likwid"
|
|
|
|
BUILD_FOLDER="$${PWD}/likwidbuild"
|
|
|
|
if [ -d $${INSTALL_FOLDER} ]; then rm -r $${INSTALL_FOLDER}; fi
|
|
|
|
mkdir --parents --verbose $${INSTALL_FOLDER} $${BUILD_FOLDER}
|
|
|
|
wget -P "$${BUILD_FOLDER}" ftp://ftp.rrze.uni-erlangen.de/mirrors/likwid/likwid-$(LIKWID_VERSION).tar.gz
|
|
|
|
tar -C $${BUILD_FOLDER} -xf $${BUILD_FOLDER}/likwid-$(LIKWID_VERSION).tar.gz
|
|
|
|
install -Dpm 0644 $${BUILD_FOLDER}/likwid-$(LIKWID_VERSION)/src/includes/likwid*.h $${INSTALL_FOLDER}/
|
|
|
|
install -Dpm 0644 $${BUILD_FOLDER}/likwid-$(LIKWID_VERSION)/src/includes/bstrlib.h $${INSTALL_FOLDER}/
|
|
|
|
rm -r $${BUILD_FOLDER}
|
|
|
|
|
|
|
|
|
|
|
|
clean:
|
2021-11-25 15:11:39 +01:00
|
|
|
rm -rf likwid
|
|
|
|
|
|
|
|
.PHONY: clean
|