Sophie

Sophie

distrib > Mandriva > 8.2 > i586 > media > contrib > by-pkgid > 88b175ef5aa1587390c6b27167c54ac6 > files > 3

pngcrush-1.5.8-2mdk.i586.rpm


There are sample Makefile.gcc and Makefile.msc for pngcrush, which you can use
by typing, for example

    make -f Makefile.gcc

However, all you should need to do is enter the pngcrush-n.n.n
directory and type

    cc -O -o pngcrush *.c -lm
    cp pngcrush /usr/local/bin  # or wherever you want

You might want to create your own Makefile if you are planning to do
something more complicated, like loading with your system's shared
libraries for libpng and zlib.

Here's a command for compiling on SGI IRIX:

    cc -n32 -fullwarn -O2 -IPA:plimit=256 -OPT:Olimit=0 -o pngcrush *.c -lm
    cp pngcrush /usr/local/bin

On a PC with DJGCC, you can type

    gcc -O3 -Wall -funroll-loops -o pngcrush *.c
    copy /B pmodstub.exe + pngcrush pngcrush.exe

then put pngcrush.exe wherever you want.