19 lines
545 B
Makefile
19 lines
545 B
Makefile
# 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:
|
|
cd ./snap7-full-1.4.2/build/unix/ && make -f x86_64_linux.mk all
|
|
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
|