File snap7-arm-1.4.2.patch of Package snap7
diff -urN snap7-full-1.4.2/build/unix/aarch64_linux.mk snap7-full-1.4.2-patch/build/unix/aarch64_linux.mk --- snap7-full-1.4.2/build/unix/aarch64_linux.mk 1970-01-01 02:00:00.000000000 +0200 +++ snap7-full-1.4.2-patch/build/unix/aarch64_linux.mk 2020-04-02 09:02:25.780652648 +0300 @@ -0,0 +1,12 @@ +## +## Aarch64 Linux based (Debian/Ubuntu/Red Hat/Slackware etc.) Makefile +## Use make +## +TargetCPU := aarch64 +OS := linux +CXXFLAGS += -O3 -fPIC -pedantic + +# Standard part + +include common.mk + diff -urN snap7-full-1.4.2/build/unix/arm_linux.mk snap7-full-1.4.2-patch/build/unix/arm_linux.mk --- snap7-full-1.4.2/build/unix/arm_linux.mk 1970-01-01 02:00:00.000000000 +0200 +++ snap7-full-1.4.2-patch/build/unix/arm_linux.mk 2020-04-02 09:03:56.974998347 +0300 @@ -0,0 +1,12 @@ +## +## Armv7 Linux based (Debian/Ubuntu/Red Hat/Slackware etc.) Makefile +## Use make +## +TargetCPU := arm +OS := linux +CXXFLAGS += -O3 -fPIC -pedantic + +# Standard part + +include common.mk + diff -urN snap7-full-1.4.2/examples/cpp/aarch64-linux/makefile snap7-full-1.4.2-patch/examples/cpp/aarch64-linux/makefile --- snap7-full-1.4.2/examples/cpp/aarch64-linux/makefile 1970-01-01 02:00:00.000000000 +0200 +++ snap7-full-1.4.2-patch/examples/cpp/aarch64-linux/makefile 2020-04-02 09:33:22.682197990 +0300 @@ -0,0 +1,31 @@ +## +## LINUX barebone makefile for c++ examples : good for all platforms +## +## Simply run make or make clean +## +## Intend this makefile only as a "batch examples updater" after library modification. +## + +Libs := -lsnap7 -L. +Wrapper := snap7.cpp + +CXX := g++ +CC := gcc +CXXFLAGS += -O3 +CFLAGS := + +.PHONY: all clean + +all: + $(CXX) $(CXXFLAGS) -o client ../client.cpp ../$(Wrapper) $(Libs) + $(CXX) $(CXXFLAGS) -o server ../server.cpp ../$(Wrapper) $(Libs) + $(CXX) $(CXXFLAGS) -o srv_resourceless ../srv_resourceless.cpp ../$(Wrapper) $(Libs) + $(CXX) $(CXXFLAGS) -o apartner ../apartner.cpp ../$(Wrapper) $(Libs) + $(CXX) $(CXXFLAGS) -o ppartner ../ppartner.cpp ../$(Wrapper) $(Libs) + +clean: + $(RM) client + $(RM) server + $(RM) srv_resourceless + $(RM) apartner + $(RM) ppartner diff -urN snap7-full-1.4.2/examples/cpp/aarch64-linux/README.txt snap7-full-1.4.2-patch/examples/cpp/aarch64-linux/README.txt --- snap7-full-1.4.2/examples/cpp/aarch64-linux/README.txt 1970-01-01 02:00:00.000000000 +0200 +++ snap7-full-1.4.2-patch/examples/cpp/aarch64-linux/README.txt 2013-12-30 14:04:08.000000000 +0200 @@ -0,0 +1,2 @@ +In this folder there are no more binaries since they depends on the LIBCC version. +To build them open a terminal and just type make \ Ei rivinvaihtoa tiedoston lopussa diff -urN snap7-full-1.4.2/examples/cpp/arm-linux/makefile snap7-full-1.4.2-patch/examples/cpp/arm-linux/makefile --- snap7-full-1.4.2/examples/cpp/arm-linux/makefile 1970-01-01 02:00:00.000000000 +0200 +++ snap7-full-1.4.2-patch/examples/cpp/arm-linux/makefile 2020-04-02 09:33:22.000000000 +0300 @@ -0,0 +1,31 @@ +## +## LINUX barebone makefile for c++ examples : good for all platforms +## +## Simply run make or make clean +## +## Intend this makefile only as a "batch examples updater" after library modification. +## + +Libs := -lsnap7 -L. +Wrapper := snap7.cpp + +CXX := g++ +CC := gcc +CXXFLAGS += -O3 +CFLAGS := + +.PHONY: all clean + +all: + $(CXX) $(CXXFLAGS) -o client ../client.cpp ../$(Wrapper) $(Libs) + $(CXX) $(CXXFLAGS) -o server ../server.cpp ../$(Wrapper) $(Libs) + $(CXX) $(CXXFLAGS) -o srv_resourceless ../srv_resourceless.cpp ../$(Wrapper) $(Libs) + $(CXX) $(CXXFLAGS) -o apartner ../apartner.cpp ../$(Wrapper) $(Libs) + $(CXX) $(CXXFLAGS) -o ppartner ../ppartner.cpp ../$(Wrapper) $(Libs) + +clean: + $(RM) client + $(RM) server + $(RM) srv_resourceless + $(RM) apartner + $(RM) ppartner diff -urN snap7-full-1.4.2/examples/cpp/arm-linux/README.txt snap7-full-1.4.2-patch/examples/cpp/arm-linux/README.txt --- snap7-full-1.4.2/examples/cpp/arm-linux/README.txt 1970-01-01 02:00:00.000000000 +0200 +++ snap7-full-1.4.2-patch/examples/cpp/arm-linux/README.txt 2013-12-30 14:04:08.000000000 +0200 @@ -0,0 +1,2 @@ +In this folder there are no more binaries since they depends on the LIBCC version. +To build them open a terminal and just type make \ Ei rivinvaihtoa tiedoston lopussa diff -urN snap7-full-1.4.2/examples/plain-c/aarch64-linux/makefile snap7-full-1.4.2-patch/examples/plain-c/aarch64-linux/makefile --- snap7-full-1.4.2/examples/plain-c/aarch64-linux/makefile 1970-01-01 02:00:00.000000000 +0200 +++ snap7-full-1.4.2-patch/examples/plain-c/aarch64-linux/makefile 2020-04-02 09:34:40.550004324 +0300 @@ -0,0 +1,30 @@ +## +## LINUX barebone makefile for c examples : good for all platforms +## +## Simply run make or make clean +## +## Intend this makefile only as a "batch examples updater" after library modification. +## + +Libs := -lsnap7 -L. + +CXX := g++ +CC := gcc +CXXFLAGS += -O3 +CFLAGS := + +.PHONY: all clean + +all: + $(CC) $(CFLAGS) -o client ../client.c $(Libs) + $(CC) $(CFLAGS) -o server ../server.c $(Libs) + $(CC) $(CFLAGS) -o srv_resourceless ../serv_resourceless.c $(Libs) + $(CC) $(CFLAGS) -o apartner ../apartner.c $(Libs) + $(CC) $(CFLAGS) -o ppartner ../ppartner.c $(Libs) + +clean: + $(RM) client + $(RM) server + $(RM) srv_resourceless + $(RM) apartner + $(RM) ppartner diff -urN snap7-full-1.4.2/examples/plain-c/aarch64-linux/README.txt snap7-full-1.4.2-patch/examples/plain-c/aarch64-linux/README.txt --- snap7-full-1.4.2/examples/plain-c/aarch64-linux/README.txt 1970-01-01 02:00:00.000000000 +0200 +++ snap7-full-1.4.2-patch/examples/plain-c/aarch64-linux/README.txt 2013-12-30 14:04:08.000000000 +0200 @@ -0,0 +1,2 @@ +In this folder there are no more binaries since they depends on the LIBCC version. +To build them open a terminal and just type make \ Ei rivinvaihtoa tiedoston lopussa diff -urN snap7-full-1.4.2/examples/plain-c/arm-linux/makefile snap7-full-1.4.2-patch/examples/plain-c/arm-linux/makefile --- snap7-full-1.4.2/examples/plain-c/arm-linux/makefile 1970-01-01 02:00:00.000000000 +0200 +++ snap7-full-1.4.2-patch/examples/plain-c/arm-linux/makefile 2020-04-02 09:34:40.000000000 +0300 @@ -0,0 +1,30 @@ +## +## LINUX barebone makefile for c examples : good for all platforms +## +## Simply run make or make clean +## +## Intend this makefile only as a "batch examples updater" after library modification. +## + +Libs := -lsnap7 -L. + +CXX := g++ +CC := gcc +CXXFLAGS += -O3 +CFLAGS := + +.PHONY: all clean + +all: + $(CC) $(CFLAGS) -o client ../client.c $(Libs) + $(CC) $(CFLAGS) -o server ../server.c $(Libs) + $(CC) $(CFLAGS) -o srv_resourceless ../serv_resourceless.c $(Libs) + $(CC) $(CFLAGS) -o apartner ../apartner.c $(Libs) + $(CC) $(CFLAGS) -o ppartner ../ppartner.c $(Libs) + +clean: + $(RM) client + $(RM) server + $(RM) srv_resourceless + $(RM) apartner + $(RM) ppartner diff -urN snap7-full-1.4.2/examples/plain-c/arm-linux/README.txt snap7-full-1.4.2-patch/examples/plain-c/arm-linux/README.txt --- snap7-full-1.4.2/examples/plain-c/arm-linux/README.txt 1970-01-01 02:00:00.000000000 +0200 +++ snap7-full-1.4.2-patch/examples/plain-c/arm-linux/README.txt 2013-12-30 14:04:08.000000000 +0200 @@ -0,0 +1,2 @@ +In this folder there are no more binaries since they depends on the LIBCC version. +To build them open a terminal and just type make \ Ei rivinvaihtoa tiedoston lopussa