]> git.saurik.com Git - wxWidgets.git/blobdiff - src/png/scripts/makefile.32sunu
compile fix for Mac
[wxWidgets.git] / src / png / scripts / makefile.32sunu
index bda63ad7f19e7879084a064c4ec90b9c32881fe0..2ace57fb44ba56be7b5dc8c16c92f7fcd8e3ad3b 100644 (file)
@@ -33,7 +33,7 @@ RANLIB=echo
 
 LIBNAME=libpng12
 PNGMAJ = 0
 
 LIBNAME=libpng12
 PNGMAJ = 0
-PNGMIN = 1.2.6
+PNGMIN = 1.2.7
 PNGVER = $(PNGMAJ).$(PNGMIN)
 
 INCPATH=$(prefix)/include
 PNGVER = $(PNGMAJ).$(PNGMIN)
 
 INCPATH=$(prefix)/include
@@ -183,7 +183,17 @@ install-config: libpng-config
 install: install-static install-shared install-man install-config
 
 # If you installed in $(DESTDIR), test-installed won't work until you
 install: install-static install-shared install-man install-config
 
 # If you installed in $(DESTDIR), test-installed won't work until you
-# move the library to its final location.
+# move the library to its final location.  Use test-dd to test it
+# before then.
+
+test-dd:
+       echo
+       echo Testing installed dynamic shared library in $(DL).
+       $(CC) $(SUN_CC_FLAGS) -I$(DI) -I$(ZLIBINC) \
+          `$(BINPATH)/libpng12-config --cflags` pngtest.c \
+          -o pngtestd -L$(DL) -R$(DL) `$(BINPATH)/libpng12-config --ldflags` \
+          $(SUN_LD_FLAGS) -L$(ZLIBLIB) -R$(ZLIBLIB)
+       ./pngtestd pngtest.png
 
 test-installed:
        echo
 
 test-installed:
        echo