X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3d11a79a94c042921837cbd75e075ea18f87207d..0d90d6ea7a007332aa75779f90b30ed39872e494:/src/png/scripts/makefile.sggcc diff --git a/src/png/scripts/makefile.sggcc b/src/png/scripts/makefile.sggcc index 9886476fde..0902697848 100644 --- a/src/png/scripts/makefile.sggcc +++ b/src/png/scripts/makefile.sggcc @@ -18,7 +18,7 @@ ZLIBINC=../zlib LIBNAME=libpng12 PNGMAJ = 0 -PNGMIN = 1.2.6 +PNGMIN = 1.2.7 PNGVER = $(PNGMAJ).$(PNGMIN) CC=gcc @@ -169,14 +169,26 @@ 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 -# 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) -I$(DI) -I$(ZLIBINC) \ + `$(BINPATH)/libpng12-config --cflags` pngtest.c \ + -L$(DL) -L$(ZLIBLIB) \ + -rpath $(ZLIBLIB):$(DL)\ + -o pngtestd `$(BINPATH)/libpng12-config --ldflags` + ./pngtestd pngtest.png test-installed: echo echo Testing installed dynamic shared library. $(CC) -I$(ZLIBINC) \ `$(BINPATH)/libpng12-config --cflags` pngtest.c \ - -L$(ZLIBLIB) -rpath $(ZLIBLIB):`$(BINPATH)/libpng12-config --libdir` \ + -L$(ZLIBLIB) \ + -rpath $(ZLIBLIB):`$(BINPATH)/libpng12-config --libdir` \ -o pngtesti `$(BINPATH)/libpng12-config --ldflags` ./pngtesti pngtest.png