home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: Graphics / Graphics.zip / pngcr134.zip / pngcrush / doc / INSTALL.txt next >
Text File  |  2000-01-19  |  927b  |  33 lines

  1.  
  2. There's a sample Makefile.gcc for pngcrush, which you can use
  3. by typing
  4.  
  5.     make -f Makefile.gcc
  6.  
  7. However, all you should need to do is enter the pngcrush-n.n.n
  8. directory and type
  9.  
  10.     cc -O -o pngcrush *.c -lm
  11.     cp pngcrush /usr/local/bin    # or wherever you want
  12.  
  13. You might want to create your own Makefile if you are planning to do
  14. something more complicated, like loading with your system's shared
  15. libraries for libpng and zlib.
  16.  
  17. Here's a command for compiling on SGI IRIX:
  18.  
  19.     cc -n32 -fullwarn -O2 -IPA:plimit=256 -OPT:Olimit=0 -o pngcrush *.c -lm
  20.     cp pngcrush /usr/local/bin
  21.  
  22. On a PC with DJGCC, you can type
  23.  
  24.     gcc -O3 -Wall -funroll-loops -o pngcrush *.c
  25.     copy /B pmodstub.exe + pngcrush pngcrush.exe
  26.  
  27. then put pngcrush.exe wherever you want.
  28.  
  29. On OS/2 with emx:
  30.     gcc -Zomf -O2 -Wall -c *.c
  31.     gcc -Zomf -Zcrtdll -s -o pngcrush.exe *.obj
  32.     then put pngcrush.exe wherever you want.
  33.