home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 13 / AACD13.ISO / AACD / Sound / LAME / src / README.DJGPP < prev    next >
Text File  |  2000-07-21  |  3KB  |  70 lines

  1.  
  2.                Compiling LAME with DJGPP
  3.  
  4. by S.T.L. and Christopher Wise <cwise@ses.swin.edu.au>
  5.  
  6. (LAME's homepage is http://www.sulaco.org/mp3, and LAME is distributed
  7. under the LGPL. More information is in the README file)
  8.  
  9. ============================================================================
  10. Also, check out:
  11.  
  12. http://www.chat.ru/~lame_djgpp/lame_djgpp.htm
  13. ============================================================================
  14.  
  15. (Note: S.T.L. doesn't know C programming (...yet) but he has learned
  16. how to compile things with DJGPP. He's not providing his E-mail address
  17. here because he wouldn't know how to answer any questions even if you
  18. asked him!)
  19.  
  20. Compiling LAME with DJGPP is actually somewhat easy, though not as easy
  21. as you might expect at first glance. Here are step-by-step instructions
  22. on how to compile LAME with the latest version of DJGPP. S.T.L. runs a
  23. Pentium III 600Mhz system using Windows 98 SE. These instructions should
  24. work on any Windows 9x system and probably Windows 2000 as well, and for
  25. all true Intel Pentium III, Pentium II, Celeron, or Pentium Pro processors.
  26. The instructions can be made to work (with less optimization) on other
  27. processors including Pentium (MMX or not), 486, 386, and K6. Also this
  28. might work under DOS, but I haven't tried it. S.T.L. takes no responsibility
  29. for what you do with these instructions. Now, let's get compiling!
  30.  
  31. 1) Find and install DJGPP.  It's at www.delorie.com. They have a Zip Picker
  32. there that makes the process easy and painless.  Make sure you also
  33. get the utilities "MAKE.EXE" and "AR.EXE".  
  34.  
  35.  
  36. 2) Download the LAME sourcecode, preferably the latest version. Extract it
  37. to a directory using WinZip or another decompressor set to preserve the
  38. directory structure. Hopefully you already have done this, as you're reading
  39. this file!
  40.  
  41. 3) Open an MSDOS window and cd into the directory with the LAME source
  42. code (the directory with all the .c and .h files, README, INSTALL,
  43. etc)
  44.  
  45. 4) From the dos prompt, run:  
  46.  
  47.    make -f Makefile.DJGPP.  
  48.  
  49. 5) To compile a faster version of LAME.EXE, edit "Makefile.DJGPP"
  50.    and experiment with some of the other settings given for
  51.    CC_OPTS.  
  52.  
  53. 6) Have fun!
  54.  
  55. Notes on optimization: 
  56.  
  57. Using some of the settings for CC_OPTS won't work for non-P6-core processors.
  58. The key is the -march=i686
  59. option. If you are running a Pentium (MMX or not), use -march=i586. For
  60. the 386 and 486, the option should now be self-explanatory! For a K6
  61. processor, use -march=k6 . For any other type of processor, you'll just
  62. have to not use the -march option at all, which will cost you some
  63. optimization. If you'd like to create an executable that runs fast on
  64. [modern computer X], say a Pentium III, but you still want it to be
  65. able to run on any i386 or later computer, use the -mcpu=[CPU TYPE
  66. HERE], using the same cpu types as -march= accepts.  The
  67. mcpu option gives less optimization, though.
  68.  
  69.  
  70.