--- Makefile.orig 2002-10-03 06:32:34.000000000 -0500 +++ Makefile 2003-01-07 14:08:41.000000000 -0600 @@ -13,13 +13,13 @@ # where "make install" puts libpng12.a, libpng12.so*, # libpng12/png.h and libpng12/pngconf.h # Prefix must be a full pathname. -prefix=/usr/local +prefix=/usr # Where the zlib library and include files are located. #ZLIBLIB=/usr/local/lib #ZLIBINC=/usr/local/include -ZLIBLIB=../zlib -ZLIBINC=../zlib +ZLIBLIB=/usr/lib +ZLIBINC=/usr/include ALIGN= # for i386: @@ -31,8 +31,8 @@ # for pgcc version 2.95.1, -O3 is buggy; don't use it. -CFLAGS=-I$(ZLIBINC) -Wall -O3 -funroll-loops \ - $(ALIGN) # $(WARNMORE) -g -DPNG_DEBUG=5 +#CFLAGS=-I$(ZLIBINC) -Wall -O3 -funroll-loops \ +# $(ALIGN) # $(WARNMORE) -g -DPNG_DEBUG=5 LDFLAGS=-L. -Wl,-rpath,. -L$(ZLIBLIB) -Wl,-rpath,$(ZLIBLIB) -lpng12 -lz -lm LDFLAGS_A=-L$(ZLIBLIB) -Wl,-rpath,$(ZLIBLIB) libpng.a -lz -lm @@ -42,7 +42,7 @@ INCPATH=$(prefix)/include LIBPATH=$(prefix)/lib -MANPATH=$(prefix)/man +MANPATH=$(prefix)/share/man BINPATH=$(prefix)/bin # override DESTDIR= on the make install command line to easily support @@ -64,7 +64,7 @@ pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o \ pngwtran.o pngmem.o pngerror.o pngpread.o -OBJSDLL = $(OBJS:.o=.pic.o) +OBJSDLL = -lz -lm $(OBJS:.o=.pic.o) .SUFFIXES: .c .o .pic.o