Commit 08edb9ed1ac375ec2cce2b5df634f72a919444bc
Committed by
GitHub
1 parent
3feee959
Exists in
master
and in
3 other branches
Update README.md
Showing
1 changed file
with
19 additions
and
20 deletions
Show diff stats
README.md
| ... | ... | @@ -20,7 +20,7 @@ Building for Linux |
| 20 | 20 | 1. Get lib3270 sources from git |
| 21 | 21 | |
| 22 | 22 | ```shell |
| 23 | - git clone http://softwarepublico.gov.br/gitlab/pw3270/lib3270.git ./lib3270 | |
| 23 | + $ git clone http://softwarepublico.gov.br/gitlab/pw3270/lib3270.git ./lib3270 | |
| 24 | 24 | ``` |
| 25 | 25 | |
| 26 | 26 | 2. Install the required libraries |
| ... | ... | @@ -42,12 +42,11 @@ Building for Linux |
| 42 | 42 | 3. Configure and build |
| 43 | 43 | |
| 44 | 44 | ```shell |
| 45 | - ./autogen.sh | |
| 46 | - make clean | |
| 47 | - make all | |
| 45 | + $ ./autogen.sh | |
| 46 | + $ make clean | |
| 47 | + $ make all | |
| 48 | 48 | ``` |
| 49 | 49 | |
| 50 | - | |
| 51 | 50 | Cross-compiling for Windows |
| 52 | 51 | =========================== |
| 53 | 52 | |
| ... | ... | @@ -57,35 +56,35 @@ Cross-compiling on SuSE Linux (Native or WSL) |
| 57 | 56 | 1. First add the MinGW Repositories for your SuSE version from: |
| 58 | 57 | |
| 59 | 58 | ```shell |
| 60 | - sudo zypper ar obs://windows:mingw:win32 mingw32 | |
| 61 | - sudo zypper ar obs://windows:mingw:win64 mingw64 | |
| 62 | - sudo zypper ref | |
| 59 | + $ sudo zypper ar obs://windows:mingw:win32 mingw32 | |
| 60 | + $ sudo zypper ar obs://windows:mingw:win64 mingw64 | |
| 61 | + $ sudo zypper ref | |
| 63 | 62 | ``` |
| 64 | 63 | |
| 65 | 64 | 2. Get lib3270 sources from git |
| 66 | 65 | |
| 67 | 66 | ```shell |
| 68 | - git clone https://github.com/PerryWerneck/lib3270.git ./lib3270 | |
| 67 | + $ git clone https://github.com/PerryWerneck/lib3270.git ./lib3270 | |
| 69 | 68 | ``` |
| 70 | 69 | |
| 71 | 70 | 3. Install cross compilers |
| 72 | 71 | |
| 73 | 72 | ```shell |
| 74 | - ./lib3270/win/install-cross.sh --all (for 32 and 64 bits) | |
| 73 | + $ ./lib3270/win/install-cross.sh --all (for 32 and 64 bits) | |
| 75 | 74 | ``` |
| 76 | 75 | |
| 77 | 76 | 3. Configure build |
| 78 | 77 | |
| 79 | 78 | ```shell |
| 80 | - ./lib3270/win/win-configure.sh --64 (for 64 bits) | |
| 79 | + $ ./lib3270/win/win-configure.sh --64 (for 64 bits) | |
| 81 | 80 | ``` |
| 82 | 81 | |
| 83 | 82 | 4. Build |
| 84 | 83 | |
| 85 | 84 | ```shell |
| 86 | - cd lib3270 | |
| 87 | - make clean | |
| 88 | - make all | |
| 85 | + $ cd lib3270 | |
| 86 | + $ make clean | |
| 87 | + $ make all | |
| 89 | 88 | ``` |
| 90 | 89 | |
| 91 | 90 | Compiling for Windows (With MSYS2) |
| ... | ... | @@ -100,27 +99,27 @@ Compiling for Windows (With MSYS2) |
| 100 | 99 | 2. Install devel packages |
| 101 | 100 | |
| 102 | 101 | ```shell |
| 103 | - pacman -S --needed mingw-w64-x86_64-gcc automake autoconf make git openssl pkg-config | |
| 102 | + $ pacman -S --needed mingw-w64-x86_64-gcc automake autoconf make git openssl pkg-config | |
| 104 | 103 | ``` |
| 105 | 104 | |
| 106 | 105 | 3. Get lib3270 sources from git using the mingw shell |
| 107 | 106 | |
| 108 | 107 | ```shell |
| 109 | - git clone https://github.com/PerryWerneck/lib3270.git ./lib3270 | |
| 108 | + $ git clone https://github.com/PerryWerneck/lib3270.git ./lib3270 | |
| 110 | 109 | ``` |
| 111 | 110 | |
| 112 | 111 | 4. Build library using the mingw shell |
| 113 | 112 | |
| 114 | 113 | ```shell |
| 115 | - cd lib3270 | |
| 116 | - ./autogen.sh | |
| 117 | - make all | |
| 114 | + $ cd lib3270 | |
| 115 | + $ ./autogen.sh | |
| 116 | + $ make all | |
| 118 | 117 | ``` |
| 119 | 118 | |
| 120 | 119 | 5. Install |
| 121 | 120 | |
| 122 | 121 | ```shell |
| 123 | - make install | |
| 122 | + $ make install | |
| 124 | 123 | ``` |
| 125 | 124 | |
| 126 | 125 | ... | ... |