1 diff -urN libpng-1.2.41/scripts/makefile.darwin libpng/scripts/makefile.darwin
2 --- libpng-1.2.41/scripts/makefile.darwin 2009-12-03 04:46:02 +0300
3 +++ libpng/scripts/makefile.darwin 2009-12-04 14:37:52 +0300
7 # where "make install" puts libpng.a, libpng12.dylib, png.h and pngconf.h
12 # Where the zlib library and include files are located
13 -#ZLIBLIB=/usr/local/lib
14 -#ZLIBINC=/usr/local/include
27 # CFLAGS=-I$(ZLIBINC) -W -Wall -O3 -funroll-loops -DPNG_NO_MMX_CODE
28 -CFLAGS=-DPNG_CONFIGURE_LIBPNG -I$(ZLIBINC) -W -Wall -O -funroll-loops
29 -LDFLAGS=-L. -L$(ZLIBLIB) -lpng12 -lz
30 +CFLAGS=-DPNG_CONFIGURE_LIBPNG ??EXTRA_CFLAGS?? -I$(ZLIBINC) -W -Wall -O -funroll-loops
31 +LDFLAGS=??EXTRA_LDFLAGS?? -L. -L$(ZLIBLIB) -lpng12 -lz
33 INCPATH=$(prefix)/include
34 LIBPATH=$(exec_prefix)/lib
37 $(CC) -c $(CFLAGS) -fno-common -o $@ $*.c
39 -all: libpng.a $(LIBSO) pngtest libpng.pc libpng-config
40 +all: libpng.a $(LIBSO) libpng.pc libpng-config
45 chmod 755 $(DB)/$(LIBNAME)-config
46 (cd $(DB); $(LN_SF) $(LIBNAME)-config libpng-config)
48 -install: install-static install-shared install-man install-config
49 +install: install-static install-man install-config
51 # If you installed in $(DESTDIR), test-installed won't work until you
52 # move the library to its final location. Use test-dd to test it