From d1e8c8694dfc6a3e1ae6cbdc1982cc3f646bb7b3 Mon Sep 17 00:00:00 2001 From: Glenn Randers-Pehrson Date: Thu, 20 Jun 2002 06:54:34 -0500 Subject: Imported from libpng-1.2.4beta2.tar --- scripts/makefile.linux | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) (limited to 'scripts/makefile.linux') diff --git a/scripts/makefile.linux b/scripts/makefile.linux index d1015833e..8e242212e 100644 --- a/scripts/makefile.linux +++ b/scripts/makefile.linux @@ -5,16 +5,17 @@ LIBNAME = libpng12 PNGMAJ = 0 -PNGMIN = 1.2.4beta1 +PNGMIN = 1.2.4beta2 PNGVER = $(PNGMAJ).$(PNGMIN) CC=gcc -# where "make install" puts libpng12.a, libpng12/libpng12.so*, +# where "make install" puts libpng12.a, libpng12.so*, # libpng12/png.h and libpng12/pngconf.h +# Prefix must be a full pathname. prefix=/usr/local -# Where the zlib library and include files are located +# Where the zlib library and include files are located. #ZLIBLIB=/usr/local/lib #ZLIBINC=/usr/local/include ZLIBLIB=../zlib @@ -70,7 +71,7 @@ OBJSDLL = $(OBJS:.o=.pic.o) .c.pic.o: $(CC) -c $(CFLAGS) -fPIC -o $@ $*.c -all: libpng.a $(LIBNAME).so pngtest libpng.pc libpng-config +all: libpng.a $(LIBNAME).so pngtest pngtest-static libpng.pc libpng-config libpng.a: $(OBJS) ar rc $@ $(OBJS) @@ -108,7 +109,7 @@ pngtest-static: pngtest.o libpng.a test: pngtest pngtest-static @echo "" - @echo " Running pngtest dynamically linked with libpng12.so:" + @echo " Running pngtest dynamically linked with $(LIBNAME).so:" @echo "" ./pngtest @echo "" @@ -174,9 +175,16 @@ install-config: libpng-config install: install-static install-shared install-man install-config +test-installed: + $(CC) -I$(ZLIBINC) \ + `$(BINPATH)/libpng12-config --cppflags --cflags` pngtest.c \ + -o pngtesti `$(BINPATH)/libpng12-config --ldflags --libs` \ + -L$(ZLIBLIB) -Wl,-rpath,$(ZLIBLIB) + pngtesti pngtest.png + clean: - /bin/rm -f *.o libpng.a $(LIBNAME).so $(LIBNAME).so.$(PNMAJ)* \ - pngtest pngout.png + /bin/rm -f *.o libpng.a pngtest pngout.png libpng.pc libpng-config \ + $(LIBNAME).so $(LIBNAME).so.$(PNGMAJ)* pngtest-static pngtesti DOCS = ANNOUNCE CHANGES INSTALL KNOWNBUG LICENSE README TODO Y2KINFO writelock: -- cgit v1.2.1