From 08edb9ed1ac375ec2cce2b5df634f72a919444bc Mon Sep 17 00:00:00 2001 From: Perry Werneck Date: Thu, 9 Jul 2020 16:31:19 -0300 Subject: [PATCH] Update README.md --- README.md | 39 +++++++++++++++++++-------------------- 1 file changed, 19 insertions(+), 20 deletions(-) diff --git a/README.md b/README.md index 24cbbb4..3301fca 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ Building for Linux 1. Get lib3270 sources from git ```shell - git clone http://softwarepublico.gov.br/gitlab/pw3270/lib3270.git ./lib3270 + $ git clone http://softwarepublico.gov.br/gitlab/pw3270/lib3270.git ./lib3270 ``` 2. Install the required libraries @@ -42,12 +42,11 @@ Building for Linux 3. Configure and build ```shell - ./autogen.sh - make clean - make all + $ ./autogen.sh + $ make clean + $ make all ``` - Cross-compiling for Windows =========================== @@ -57,35 +56,35 @@ Cross-compiling on SuSE Linux (Native or WSL) 1. First add the MinGW Repositories for your SuSE version from: ```shell - sudo zypper ar obs://windows:mingw:win32 mingw32 - sudo zypper ar obs://windows:mingw:win64 mingw64 - sudo zypper ref + $ sudo zypper ar obs://windows:mingw:win32 mingw32 + $ sudo zypper ar obs://windows:mingw:win64 mingw64 + $ sudo zypper ref ``` 2. Get lib3270 sources from git ```shell - git clone https://github.com/PerryWerneck/lib3270.git ./lib3270 + $ git clone https://github.com/PerryWerneck/lib3270.git ./lib3270 ``` 3. Install cross compilers ```shell - ./lib3270/win/install-cross.sh --all (for 32 and 64 bits) + $ ./lib3270/win/install-cross.sh --all (for 32 and 64 bits) ``` 3. Configure build ```shell - ./lib3270/win/win-configure.sh --64 (for 64 bits) + $ ./lib3270/win/win-configure.sh --64 (for 64 bits) ``` 4. Build ```shell - cd lib3270 - make clean - make all + $ cd lib3270 + $ make clean + $ make all ``` Compiling for Windows (With MSYS2) @@ -100,27 +99,27 @@ Compiling for Windows (With MSYS2) 2. Install devel packages ```shell - pacman -S --needed mingw-w64-x86_64-gcc automake autoconf make git openssl pkg-config + $ pacman -S --needed mingw-w64-x86_64-gcc automake autoconf make git openssl pkg-config ``` 3. Get lib3270 sources from git using the mingw shell ```shell - git clone https://github.com/PerryWerneck/lib3270.git ./lib3270 + $ git clone https://github.com/PerryWerneck/lib3270.git ./lib3270 ``` 4. Build library using the mingw shell ```shell - cd lib3270 - ./autogen.sh - make all + $ cd lib3270 + $ ./autogen.sh + $ make all ``` 5. Install ```shell - make install + $ make install ``` -- libgit2 0.21.2