diff options
author | ZoRo <dos21h@gmail.com> | 2019-12-14 16:09:01 +0000 |
---|---|---|
committer | ZoRo <dos21h@gmail.com> | 2019-12-14 16:09:01 +0000 |
commit | d6f8cc908e4dea99ffb97afcb3af74a5638585e0 (patch) | |
tree | bec65dcf151eafe7242e8707f54bcea8bccbbcc5 /python/Makefile | |
download | compilation-snippets-d6f8cc908e4dea99ffb97afcb3af74a5638585e0.tar.gz compilation-snippets-d6f8cc908e4dea99ffb97afcb3af74a5638585e0.zip |
Initial commit with working py2 and py3 setup
Diffstat (limited to 'python/Makefile')
-rw-r--r-- | python/Makefile | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/python/Makefile b/python/Makefile new file mode 100644 index 0000000..273a865 --- /dev/null +++ b/python/Makefile @@ -0,0 +1,75 @@ + +VERSION=2.7.17 +VERSION3=3.8.0 +INSTALL_PATH=/home/fam/downloads/source/python/static_python/output +INSTALL_PATH3=/home/fam/downloads/source/python/static_python/output3 + +make: download + echo "Create static python" + +download: Python-$(VERSION).tgz + echo "Download" + wget -c https://www.python.org/ftp/python/$(VERSION)/Python-$(VERSION).tgz + tar -xvf Python-$(VERSION).tgz + +download3: Python-$(VERSION).tgz + echo "Download" + wget -c https://www.python.org/ftp/python/$(VERSION3)/Python-$(VERSION3).tgz + tar -xvf Python-$(VERSION3).tgz + +configure: + echo "Configure" + pushd `pwd` + #dynamic + #cd ./Python-$(VERSION); ./configure --enable-shared --prefix=$(INSTALL_PATH) + #static + #cd ./Python-$(VERSION); ./configure CFLAGS="-fPIC" LDFLAGS="-static" --disable-shared --prefix=$(INSTALL_PATH) + cd ./Python-$(VERSION); ./configure LDFLAGS="-static -static-libgcc" CPPFLAGS="-fPIC -static" --disable-shared --prefix=$(INSTALL_PATH) + +configure3: + echo "Configure" + pushd `pwd` + #dynamic + #cd ./Python-$(VERSION); ./configure --enable-shared --prefix=$(INSTALL_PATH) + #static + #cd ./Python-$(VERSION); ./configure CFLAGS="-fPIC" LDFLAGS="-static" --disable-shared --prefix=$(INSTALL_PATH) + #cd ./Python-$(VERSION3); ./configure LDFLAGS="-static -static-libgcc" CPPFLAGS="-fPIC -static" --disable-shared --prefix=$(INSTALL_PATH3) + cd ./Python-$(VERSION3); ./configure --prefix=$(INSTALL_PATH3) + +compile: + echo "Compile" + #pushd `pwd` + #cd ./Python-$(VERSION);make LDFLAGS="-static" LINKFORSHARED=" " + #cd ./Python-$(VERSION);make -j4 CFLAGS="-fPIC" LDFLAGS="-static" LINKFORSHARED=" " + cd ./Python-$(VERSION);make -j4 + +compile3: + echo "Compile" + #pushd `pwd` + #cd ./Python-$(VERSION);make LDFLAGS="-static" LINKFORSHARED=" " + cd ./Python-$(VERSION3);make -j4 CFLAGS="-fPIC" LDFLAGS="-static" LINKFORSHARED=" " + #cd ./Python-$(VERSION3);make -j4 + +install: + echo "Install" + #ushd `pwd` + mkdir -p $(INSTALL_PATH) + #export PYTHONHOME=$(INSTALL_PATH) + #cd ./Python-$(VERSION);make install make LDFLAGS="-static" LINKFORSHARED=" " + cd ./Python-$(VERSION);make install + +install3: + echo "Install" + #ushd `pwd` + mkdir -p $(INSTALL_PATH3) + #export PYTHONHOME=$(INSTALL_PATH) + #cd ./Python-$(VERSION);make install make LDFLAGS="-static" LINKFORSHARED=" " + cd ./Python-$(VERSION3);make install + +clean: + echo "Clean" + cd ./Python-$(VERSION);make clean + +clean3: + echo "Clean" + cd ./Python-$(VERSION3);make clean
\ No newline at end of file |