--- /dev/null	2018-06-22 10:23:33.533000000 +0200
+++ git/Makefile	2018-07-26 16:20:25.816518936 +0200
@@ -0,0 +1,26 @@
+APP = libsnap7.so
+
+CPU ?= ARM7
+SNAP7DIR = "snap7/1.4.2/build/"
+
+all: build
+
+build: $(APP)
+
+$(APP): $(wildcard snap7/1.4.2/src/**/*)
+ifeq ($(CPU), ARM7)
+	cd $(SNAP7DIR)unix/ && $(MAKE) -e -f arm_v7_linux.mk CXXFLAGS+='-O3 -g -fPIC -mword-relocations -pedantic'
+	cp ./$(SNAP7DIR)bin/arm_v7-linux/libsnap7.so ./
+else 	
+	cd $(SNAP7DIR)unix/ && $(MAKE) -e -f x86_64_linux.mk CXXFLAGS+='-O3 -fPIC -pedantic'
+	cp ./$(SNAP7DIR)bin/x86_64-linux/libsnap7.so ./ 
+endif
+
+clean:
+	-rm -f $(APP)
+ifeq ($(CPU), ARM7)
+	cd $(SNAP7DIR)unix/ && $(MAKE) -e -f arm_v7_linux.mk clean
+else 	
+	cd $(SNAP7DIR)unix/ && $(MAKE) -e -f x86_64_linux.mk clean
+endif
+
