### Install dos2unix Source: https://github.com/p/dos2unix/dos2unix/blob/master/dos2unix/INSTALL.txt After building and testing, use the 'make install' command to install the program and its associated files to the system. ```makefile make install ``` -------------------------------- ### Build and Install dos2unix with Open Watcom (OS/2) Source: https://github.com/p/dos2unix/dos2unix/blob/master/dos2unix/INSTALL.txt Clean, build, and install dos2unix using Open Watcom for OS/2. ```shell wmake -f wccos2.mak clean wmake -f wccos2.mak wmake -f wccos2.mak install ``` -------------------------------- ### Install dos2unix with Custom Prefix Source: https://github.com/p/dos2unix/dos2unix/blob/master/dos2unix/INSTALL.txt To install dos2unix in a directory other than the default, specify a custom prefix using the 'prefix' variable. This example installs to the user's home directory. ```makefile make prefix=$HOME clean all make prefix=$HOME install ``` -------------------------------- ### Create PDF Manuals Source: https://github.com/p/dos2unix/dos2unix/blob/master/dos2unix/INSTALL.txt To create manuals in PDF format, run the pdf target. This requires GhostScript to be installed. ```makefile make pdf ``` -------------------------------- ### Build and Install dos2unix with EMX Source: https://github.com/p/dos2unix/dos2unix/blob/master/dos2unix/INSTALL.txt Clean, build, strip, and install dos2unix using the EMX environment on OS/2. ```shell make -f emx.mak clean make -f emx.mak make -f emx.mak strip make -f emx.mak install ``` -------------------------------- ### Build and Install dos2unix with Open Watcom (Windows) Source: https://github.com/p/dos2unix/dos2unix/blob/master/dos2unix/INSTALL.txt Clean, build, and install dos2unix using Open Watcom cross-compilation from Windows. ```shell wmake -f wccdos32.mak clean wmake -f wccdos32.mak wmake -f wccdos32.mak install ``` -------------------------------- ### Build and Install dos2unix with Open Watcom (16-bit DOS) Source: https://github.com/p/dos2unix/dos2unix/blob/master/dos2unix/INSTALL.txt Clean, build, and install dos2unix using Open Watcom for 16-bit DOS. ```shell wmake -f wccdos16.mak clean wmake -f wccdos16.mak wmake -f wccdos16.mak install ``` -------------------------------- ### Build dos2unix with Open Watcom on Windows Source: https://github.com/p/dos2unix/dos2unix/blob/master/dos2unix/INSTALL.txt Build process for Windows 32-bit using Open Watcom. Uses wmake with specific makefiles for cleaning, building, and installing. ```makefile wmake -f wccwin32.mak clean wmake -f wccwin32.mak wmake -f wccwin32.mak install ``` -------------------------------- ### Build and Install dos2unix with DJGPP Source: https://github.com/p/dos2unix/dos2unix/blob/master/dos2unix/INSTALL.txt Clean, build, and install dos2unix using the DJGPP compiler. Ensure you are running a DOS version that supports long file names or use DOSBox-X. ```shell make -f djgpp.mak clean make -f djgpp.mak make -f djgpp.mak strip make -f djgpp.mak install ``` -------------------------------- ### Run dos2unix Tests with Prove Options Source: https://github.com/p/dos2unix/dos2unix/blob/master/dos2unix/INSTALL.txt To run the self-tests and provide extra arguments to the 'prove' command, use the PROVE_OPT variable. This example enables color output for tests. ```makefile make test PROVE_OPT=--color ``` -------------------------------- ### Build dos2unix with MinGW(-w64) on Windows Source: https://github.com/p/dos2unix/dos2unix/blob/master/dos2unix/INSTALL.txt Standard build process for Windows 32-bit using MinGW(-w64) and MSYS2. Includes cleaning, building, stripping, and installing. ```makefile make clean make make strip make install ``` -------------------------------- ### Build dos2unix with Microsoft Visual C++ on Windows Source: https://github.com/p/dos2unix/dos2unix/blob/master/dos2unix/INSTALL.txt Build process for Windows 32-bit using Microsoft Visual C++. Uses nmake with specific makefiles for cleaning, building, and installing. ```makefile nmake /f vc.mak clean nmake /f vc.mak nmake /f vc.mak install ``` -------------------------------- ### Build dos2unix with DJGPP in Cygwin Source: https://github.com/p/dos2unix/dos2unix/blob/master/dos2unix/INSTALL.txt Build dos2unix using DJGPP cross-compilation within Cygwin. Requires djgpp-gcc-core to be installed. ```shell make -f djgpp.mak ``` -------------------------------- ### Compile wcstombs_test.c Source: https://github.com/p/dos2unix/dos2unix/blob/master/dos2unix/test/README.txt Compiles the C test file for wcstombs function. Ensure you have a C compiler like GCC or Clang installed. ```bash cc -Wall -Wextra wcstombs_test.c -o wcstombs_test ``` -------------------------------- ### Build dos2unix with GCC Source: https://github.com/p/dos2unix/dos2unix/blob/master/dos2unix/INSTALL.txt To build the program using GCC, navigate to the source directory and run the 'make' command. This is the basic build command. ```makefile make ``` -------------------------------- ### Build dos2unix with DJGPP on Linux (Cross-Compilation) Source: https://github.com/p/dos2unix/dos2unix/blob/master/dos2unix/INSTALL.txt Build dos2unix on Linux using DJGPP cross-compilation by setting the CROSS_COMP environment variable. ```shell make -f djgpp.mak CROSS_COMP=1 ``` -------------------------------- ### Run dos2unix Self-Tests Source: https://github.com/p/dos2unix/dos2unix/blob/master/dos2unix/INSTALL.txt To verify the build and ensure all components are working correctly, execute the 'make check' command. This runs the self-tests. ```makefile make check ``` -------------------------------- ### Rebuild Man Pages Source: https://github.com/p/dos2unix/dos2unix/blob/master/dos2unix/INSTALL.txt To rebuild the man pages from POD files, first clean the project and then run the man target. ```makefile make maintainer-clean make man ``` -------------------------------- ### Build dos2unix with Borland C Source: https://github.com/p/dos2unix/dos2unix/blob/master/dos2unix/INSTALL.txt Clean and build dos2unix using Borland C version 4.0 or higher. Command line tools can be run in DOSBox-X. ```shell make -f bcc.mak clean make -f bcc.mak ``` -------------------------------- ### Build dos2unix for DOS with DJGPP Source: https://github.com/p/dos2unix/dos2unix/blob/master/dos2unix/INSTALL.txt Build process for DOS using the DJGPP compiler and the djgpp.mak makefile. Note: DJGPP 2.03 gcc >= 4.6 may cause issues; use <= 4.5.3. ```makefile make -f djgpp.mak clean make -f djgpp.mak make -f djgpp.mak install ``` -------------------------------- ### Build dos2unix with Debugging Enabled Source: https://github.com/p/dos2unix/dos2unix/blob/master/dos2unix/INSTALL.txt To create a build with debugging symbols enabled, add DEBUG=1 to the make command. This allows for debugging the source code with tools like gdb. ```makefile make clean install DEBUG=1 ``` -------------------------------- ### Build dos2unix with Debug Messages Enabled Source: https://github.com/p/dos2unix/dos2unix/blob/master/dos2unix/INSTALL.txt To enable extra debug messages during runtime, add DEBUGMSG=1 to the make command. This provides more detailed information about file system access. ```makefile make clean install DEBUGMSG=1 ``` -------------------------------- ### Clean dos2unix Build Files Source: https://github.com/p/dos2unix/dos2unix/blob/master/dos2unix/INSTALL.txt To remove temporary build files and clean the source directory, run the 'make clean' command. This prepares for a fresh build. ```makefile make clean ``` -------------------------------- ### Test wcstombs() with GB18030 locale Source: https://github.com/p/dos2unix/dos2unix/blob/master/dos2unix/test/README.txt Executes the wcstombs test with the zh_CN.GB18030 locale to verify GB18030 character conversion. This test may fail on certain systems due to locale issues. ```bash LC_ALL=zh_CN.GB18030 ./wcstombs_test ``` -------------------------------- ### Test wcstombs() with UTF-8 locale Source: https://github.com/p/dos2unix/dos2unix/blob/master/dos2unix/test/README.txt Executes the wcstombs test with the en_US.UTF-8 locale to verify UTF-8 character conversion. This is the expected correct output. ```bash LC_ALL=en_US.UTF-8 ./wcstombs_test ``` -------------------------------- ### Strip dos2unix Executables Source: https://github.com/p/dos2unix/dos2unix/blob/master/dos2unix/INSTALL.txt To reduce the size of the compiled executables, use the 'make strip' command. This removes debugging symbols. ```makefile make strip ``` -------------------------------- ### Disable Native Language Support (NLS) Source: https://github.com/p/dos2unix/dos2unix/blob/master/dos2unix/INSTALL.txt To disable Native Language Support, set ENABLE_NLS= to an empty value. This removes NLS support from the build. ```makefile make clean install ENABLE_NLS= ``` -------------------------------- ### Disable Large File Support (LFS) Source: https://github.com/p/dos2unix/dos2unix/blob/master/dos2unix/INSTALL.txt To disable LFS, make the LFS variable empty. This is useful if the compiler does not support LFS. ```makefile make clean install LFS= ``` -------------------------------- ### Disable Unicode File Name Support on Windows Source: https://github.com/p/dos2unix/dos2unix/blob/master/dos2unix/INSTALL.txt To disable Unicode file name support on Windows, make the UNIFILE variable empty. This is enabled by default. ```makefile make UNIFILE= ``` -------------------------------- ### Disable Unicode Support Source: https://github.com/p/dos2unix/dos2unix/blob/master/dos2unix/INSTALL.txt To disable Unicode UTF-16 support, make the UCS variable empty. This is not supported by DOS and OS/2 versions. ```makefile make clean install UCS= ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.