diff --git a/README.md b/README.md index 135e6bc..5c5c5a1 100644 --- a/README.md +++ b/README.md @@ -28,64 +28,64 @@ For the supported distributions get the install repositories and instructions fr ## Building for windows -### Cross-compiling on SuSE Linux (Native or WSL) - The easier way! +### Cross-compiling on SuSE Linux (Native or WSL) 1. Add the MinGW Repositories ``` -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 libv3270 sources from git ``` -git clone https://github.com/PerryWerneck/libv3270.git ./v3270 +$ git clone https://github.com/PerryWerneck/libv3270.git ./v3270 ``` 3. Install 64 bits cross compilers ``` -./v3270/win/install-cross.sh --64 +$ ./v3270/win/install-cross.sh --64 ``` 3. Configure 64 bits build environment ``` -./v3270/win/win-configure.sh --64 +$ ./v3270/win/win-configure.sh --64 ``` 4. Build ``` -cd v3270 -make clean -make all +$ cd v3270 +$ make clean +$ make all ``` -### Compiling on Windows (With MSYS2) +### Windows native with MSYS2 1. Build and install [lib3270](../../../lib3270) 2. Install the required libraries ``` -pacman -S mingw-w64-x86_64-gtk3 +$ pacman -S mingw-w64-x86_64-gtk3 ``` 2. Get libv3270 sources from git ``` -git clone https://github.com/PerryWerneck/libv3270.git ./libv3270 +$ git clone https://github.com/PerryWerneck/libv3270.git ./libv3270 ``` 4. Build library using the mingw shell ``` -cd libv3270 -./autogen.sh -make all +$ cd libv3270 +$ ./autogen.sh +$ make all ``` ## Building for macOS (using homebrew) -- libgit2 0.21.2