PageRenderTime 120ms CodeModel.GetById 41ms RepoModel.GetById 2ms app.codeStats 0ms

/freedos/source/tree/doc/compile.txt

https://github.com/vvnikitin/sdcboot
Plain Text | 57 lines | 50 code | 7 blank | 0 comment | 0 complexity | 724bd384ad8c07ec12bc5d5a01763864 MD5 | raw file
Possible License(s): GPL-2.0, 0BSD, LGPL-2.0
  1. Tree v3.7 for FreeDOS, compile instructions.
  2. Tree uses the findfile.h header file to provide a consistant interface
  3. to the necessary compiler dependant functions. findfile.h is Public
  4. Domain, and currently supports compiler independent methods for
  5. find first file, find next file, find close (needed for some but not
  6. all compilers), get volume label, get serial #, get current drive,
  7. get current working directory, and the necessary defines for file
  8. attributes and path component sizes. Refer to findfile.h for a full
  9. list of compilers it is written/tested to work with.
  10. To compile tree, setup your compiler environment properly, then
  11. compile specifying tree.c as the source file.
  12. Cats message support (Jim Hall's Cats) will not compile with
  13. Micro-C/PC nor with HiTech's Pacific C.
  14. If you are compiling with cats support:
  15. You must define USE_CATGETS (either on command line or in the source),
  16. and add the files catgets.c db.c get_line.c
  17. For any of the Borland compilers and Digital Mars compilers then
  18. Jim's Cats 3.9.4 or higher can be used. For Microsoft Visual C
  19. patch catgets.c to not use dir.h and add a few macros.
  20. [Note: The necessary files from Jim's LGPL Cats 3.9.4 with this patch
  21. are included in the SOURCE directory. ]
  22. #ifdef _MSC_VER /* dir.h not available for MS C */
  23. #define MAXPATH _MAX_PATH
  24. #define MAXDIR _MAX_DIR
  25. #define MAXEXT _MAX_EXT
  26. #define fnmerge _makepath
  27. #else
  28. #include <dir.h> /* fnmerge */
  29. #endif
  30. Jim Hall has added a Makefile, refer to it, future versions will
  31. no longer include cmplall.bat.
  32. CMPLALL.BAT can be used to compile tree with all tested compilers.
  33. You MUST edit it and correct the paths to match where the compilers
  34. are actually installed before running! If needed, this file can be
  35. looked at for working examples [on my machine] to compile tree.
  36. Other compilers:
  37. If the compiler is similar to one of the above, try compiling with
  38. similar arguments (eg Borland C/C++ 4.0 and 5.0 may work by simply
  39. compiling with the same arguments as BCC 3.1, 4.5, or 5.5). If your
  40. compiler is compatible but doesn't provide necessary defines you
  41. may need to define __TURBOC__, MICROC, _MSC_VER, etc when you compile.
  42. If your compiler is signicately different, then edit findfile.h
  43. and add in a section for your compiler refering to the other
  44. compilers for examples. If you have a compiler not listed and it
  45. works or you added the necessary logic to make it work, please
  46. consider sending them to jeremyd@computer.org and specifying that
  47. they are public domain so I can add them to my public domain
  48. findfile.h for all to use.
  49. June 15, 2001
  50. Jeremy Davis <jeremyd@computer.org> http://www.darklogic.org/