2023-11-02 09:17:47 +01:00
|
|
|
# Makefile to enable snap7 functionality
|
|
|
|
all: download unzip compile #delete
|
|
|
|
|
|
|
|
download:
|
|
|
|
# cp -r ../../../../snap7-full-1.4.2 ./
|
|
|
|
wget -O snap7-full-1.4.2.7z https://sourceforge.net/projects/snap7/files/1.4.2/snap7-full-1.4.2.7z/download
|
|
|
|
|
|
|
|
|
|
|
|
unzip:
|
|
|
|
7z -y x snap7-full-1.4.2.7z snap7-full-1.4.2
|
|
|
|
|
|
|
|
compile:
|
2024-03-22 12:57:56 +01:00
|
|
|
# cd ./snap7-full-1.4.2/build/unix/ && make -f arm_v6_linux.mk all
|
2023-11-02 09:17:47 +01:00
|
|
|
cd ./snap7-full-1.4.2/build/unix/ && make -f x86_64_linux.mk all
|
2024-03-22 12:57:56 +01:00
|
|
|
# echo "$(shell pwd )/snap7-full-1.4.2/build/bin/arm_v6-linux/" > /etc/ld.so.conf.d/snap7.conf && ldconfig
|
2023-11-02 09:17:47 +01:00
|
|
|
echo "$(shell pwd )/snap7-full-1.4.2/build/bin/x86_64-linux/" > /etc/ld.so.conf.d/snap7.conf && ldconfig
|
|
|
|
chown 1000:1001 snap7-full-1.4.2* -R
|
|
|
|
|
|
|
|
delete:
|
|
|
|
rm snap7-full-1.4.2.7z
|