Commit 529dae54f7acf75752ec85b7c953643abad48767

Authored by Perry Werneck
1 parent 5fa65443

Updating build instructions.

Showing 1 changed file with 42 additions and 21 deletions   Show diff stats
README.md
... ... @@ -19,7 +19,9 @@ Building for Linux
19 19  
20 20 1. Get lib3270 sources from git
21 21  
22   - * git clone http://softwarepublico.gov.br/gitlab/pw3270/lib3270.git ./lib3270
  22 + ```shell
  23 + git clone http://softwarepublico.gov.br/gitlab/pw3270/lib3270.git ./lib3270
  24 + ```
23 25  
24 26 2. Install the required libraries
25 27  
... ... @@ -39,9 +41,11 @@ Building for Linux
39 41  
40 42 3. Configure and build
41 43  
42   - * ./autogen.sh
43   - * make clean
44   - * make Debug
  44 + ```shell
  45 + ./autogen.sh
  46 + make clean
  47 + make all
  48 + ```
45 49  
46 50  
47 51 Cross-compiling for Windows
... ... @@ -52,29 +56,37 @@ Cross-compiling on SuSE Linux (Native or WSL)
52 56  
53 57 1. First add the MinGW Repositories for your SuSE version from:
54 58  
55   - * 32 bits: https://build.opensuse.org/project/show/windows:mingw:win32
56   - * 64 bits: https://build.opensuse.org/project/show/windows:mingw:win64
  59 + ```shell
  60 + sudo zypper ar obs://windows:mingw:win32 mingw32
  61 + sudo zypper ar obs://windows:mingw:win64 mingw64
  62 + sudo zypper ref
  63 + ```
57 64  
58 65 2. Get lib3270 sources from git
59 66  
60   - * git clone https://github.com/PerryWerneck/lib3270.git ./lib3270
  67 + ```shell
  68 + git clone https://github.com/PerryWerneck/lib3270.git ./lib3270
  69 + ```
61 70  
62 71 3. Install cross compilers
63 72  
64   - * ./lib3270/win/install-cross.sh --32 (for 32 bits)
65   - * ./lib3270/win/install-cross.sh --64 (for 64 bits)
66   - * ./lib3270/win/install-cross.sh --all (for 32 and 64 bits)
  73 + ```shell
  74 + ./lib3270/win/install-cross.sh --all (for 32 and 64 bits)
  75 + ```
67 76  
68 77 3. Configure build
69 78  
70   - * ./lib3270/win/win-configure.sh --32 (for 32 bits)
71   - * ./lib3270/win/win-configure.sh --64 (for 64 bits)
  79 + ```shell
  80 + ./lib3270/win/win-configure.sh --64 (for 64 bits)
  81 + ```
72 82  
73 83 4. Build
74 84  
75   - * cd lib3270
76   - * make clean
77   - * make all
  85 + ```shell
  86 + cd lib3270
  87 + make clean
  88 + make all
  89 + ```
78 90  
79 91 Compiling for Windows (With MSYS2)
80 92 ----------------------------------
... ... @@ -87,21 +99,29 @@ Compiling for Windows (With MSYS2)
87 99  
88 100 2. Install devel packages
89 101  
90   - * pacman -S --needed mingw-w64-x86_64-gcc automake autoconf make git openssl pkg-config
  102 + ```shell
  103 + pacman -S --needed mingw-w64-x86_64-gcc automake autoconf make git openssl pkg-config
  104 + ```
91 105  
92 106 3. Get lib3270 sources from git using the mingw shell
93 107  
94   - * git clone https://github.com/PerryWerneck/lib3270.git ./lib3270
  108 + ```shell
  109 + git clone https://github.com/PerryWerneck/lib3270.git ./lib3270
  110 + ```
95 111  
96 112 4. Build library using the mingw shell
97 113  
98   - * cd lib3270
99   - * ./autogen.sh
100   - * make all
  114 + ```shell
  115 + cd lib3270
  116 + ./autogen.sh
  117 + make all
  118 + ```
101 119  
102 120 5. Install
103 121  
104   - * make install
  122 + ```shell
  123 + make install
  124 + ```
105 125  
106 126  
107 127 Building for macOS (using homebrew)
... ... @@ -120,6 +140,7 @@ Building for macOS (using homebrew)
120 140 ```shell
121 141 $ open-keg curl openldap openssl
122 142 ```
  143 +
123 144 4. Configure, build and install (inside the [open-keg](https://gist.github.com/andrebreves/5f36e78575e20162ed0a62bd27c4bcea) shell opened above)
124 145  
125 146 ```shell
... ...