home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / fchek284.zip / os2port.notes < prev    next >
Text File  |  1996-03-30  |  3KB  |  72 lines

  1. * Sources, as fetched from ftp://ftp.dsm.fordham.edu/pub/ on 29-Mar-96
  2. * applied the patch to bring it up to version 2.8.4 to the sources.
  3. * Changed makefile.
  4. * Added two new symbolic targets, OS2emx and OS2noemx.
  5.   OS2emx generates an executable which relies on the emx.dll runtime
  6.   library to be somewhere in the LIBPATH; OS2noemx generates a
  7.   standalone executable using the IBM linker link386.exe. It is a bit
  8.   bigger. I couldn't play with other C compilers as I don't have any.
  9.   So, both use gcc / emx.
  10.  
  11. * Added things like symbols for obvious extensions:
  12.   OBJ
  13.   EXE
  14.  
  15.   which either need to be out in by hand in the header of the makefile
  16.   or all the other Symbolic targets for real UNIX should get additional
  17.   options like
  18.  
  19.   'OBJ = .o'\
  20.   'EXE = '\
  21.  
  22.   to restore the defaults typical for UNIX.  This is up to you, since
  23.   either will change the distribution.
  24.  
  25. * added a new implicit rule for compilation to allow any object file
  26.   name and not just the UNIX standard *.o. With these changes, the makefile
  27.   should be easily adapted to VMS and the like.
  28.  
  29.  
  30.  
  31. * This 'exe' magic can by the way be avoided
  32.   for the OS2emx target by adding the following lines to the target (they
  33.   are commented out right now):
  34.  
  35. #     echo $(FTNCHEK) created.  Building now $(FTNCHEK).exe:
  36. #     emxbind -bs -w $(FTNCHEK)
  37. #     rm $(FTNCHEK)
  38. #     echo $(FTNCHEK).exe created.
  39.  
  40. This then takes the a.out style output file of gcc and makes it into
  41. an *.exe file. However, I don't know how to do the same for link386,
  42. and it seems cleaner this way, anyway, since it also allows VMS and
  43. other targets to be added, or to use other compilers than gcc under
  44. OS/2, like Borland C++/2 or IBM C-Set++ and so on.
  45.  
  46. On OS/2, the environment variable SHELL may need to be commented out,
  47. depending on the combination of shells (I run tcsh and sh / ksh ports)
  48. and make utilities. On my system gcc is otherwise not found ...
  49.  
  50. To build this, at least mv.exe should be there, and of course, 
  51. gcc / emx should be installed.
  52.  
  53. The ftnchek.def file has been modified again, the line
  54. ; STACKSIZE      0x8000
  55. is commented out and the stack size given on the gcc command line
  56. with -Zstack 64. Otherwise I get a stack overflow.
  57. This may be only neccessary for large environments (my config.sys
  58. is about 18 kB large, and my .tcshrc isn't small either), but anyway.
  59.  
  60. The execuatables are compiled with gcc 2.7.2 / emx09b  + emxfix03
  61. applied, and require emx.dll (version 09b or later) in the LIBPATH.
  62. The other execuatable is standalone.
  63.  
  64. All tested under OS/2 (v. 3.0 or 2.3) Warp only. Runs fine.
  65.  
  66.  
  67. Stefan A. Deutscher, sad@utk.edu
  68.  
  69. PS: Maybe updating the man page (to display version 2.8.4) and the
  70.     version information of ftnchek, as it starts (2.8.4 instead of
  71.     2.8) would be nice.
  72.