-If you want to use IBM's compiler, you will probably not find the lib\r
-as easily as the whole flex package has so far only been ported for \r
-emx/gcc. However you can compile the lib with IBM's compiler, too. To\r
-do this, you will have to get the flex sources from one of the usual \r
-ftp sites and compile at least the library. \r
-\r
-To compile the flex library using IBM's VisualAge C++ compiler, you \r
-only need to perform the following steps:\r
-\r
-- enter the flex source directory.\r
-- enter "icc -c -Q -O libmain.c" and "icc -c -Q -O libyywrap.c"\r
-- enter "ilib fl.lib" from the command line (the library must not \r
- exist) and "y", "+libmain.obj+libyywrap.obj" and "<enter>" from the \r
- ilib prompt.\r
-- copy fl.lib somewhere where it gets found, I suggest "ibmcpp\lib".\r
-\r
-When using emx/gcc you can either produce code using the OMF object format\r
-or use a.out. The latter has the consequence of needing emx.dll to run the \r
-binary and under certain circumstances being able to run it under DOS using \r
-emx.exe or rsx.exe as DOS extender (you may want to replace the "-g" switch\r
-by "-O3" in the compiler settings for optimization rather than debug code)\r
-in such a case. \r
-\r
-To create such a binary override the default settings in the makefile by \r
-invoking the following little batch (the default settings for using the \r
-a.out format defined in Makefile.os2 do *not* produce an executable that \r
-runs under DOS):\r
-\r
- @echo off\r
- if exist bin\splint del bin\splint\r
- make all -f makefile.os2 "COMPILER=gcc-emx" "CC=gcc -O3" "E="\r
- if errorlevel 1 goto end\r
- cd bin\r
- echo on\r
- emxbind splint -p\r
- @echo off\r
- cd ..\r
- :end\r
-\r
-Please be aware that for debugging purposes the a.out format is the best \r
-choice. I did not succeed in debugging any single step of splint using \r
-ipmd as it crashed each time I tried to load the splint executable.\r
-\r