1 diff -ruN libpng-1.2.5/scripts/makefile.macosx libpng/scripts/makefile.macosx
2 --- libpng-1.2.5/scripts/makefile.macosx 2002-10-03 13:32:34.000000000 +0200
3 +++ libpng/scripts/makefile.macosx 2006-02-22 22:05:47.000000000 +0100
5 # For conditions of distribution and use, see copyright notice in png.h
7 # where make install puts libpng.a and png.h
11 # Where the zlib library and include files are located
12 #ZLIBLIB=/usr/local/lib
15 PNGVER = $(PNGMAJ).$(PNGMIN)
17 -CFLAGS=-fno-common -I$(ZLIBINC) -O # -g -DPNG_DEBUG=5
18 -LDFLAGS=-L. -L$(ZLIBLIB) -lpng -lz -current_version $(PNGVER)
19 +CFLAGS=??EXTRA_CFLAGS?? -fno-common -I$(ZLIBINC) -O # -g -DPNG_DEBUG=5
20 +LDFLAGS=??EXTRA_LDFLAGS?? -L. -L$(ZLIBLIB) -lpng -lz
23 SHAREDLIB_POSTFIX=dylib
25 pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o \
26 pngwtran.o pngmem.o pngerror.o pngpread.o
28 -all: libpng.a pngtest shared libpng.pc libpng-config
29 +all: libpng.a pngtest libpng.pc libpng-config
31 shared: $(LIBNAME).$(PNGVER).$(SHAREDLIB_POSTFIX)
34 chmod 755 $(DB)/$(LIBNAME)-config
35 (cd $(DB); ln -sf $(LIBNAME)-config libpng-config)
37 -install: install-static install-shared install-man install-config
38 +install: install-static install-man install-config
40 # If you installed in $(DESTDIR), test-installed won't work until you
41 # move the library to its final location.