summaryrefslogtreecommitdiff
path: root/scripts/makefile.hpgcc
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/makefile.hpgcc')
-rw-r--r--scripts/makefile.hpgcc23
1 files changed, 12 insertions, 11 deletions
diff --git a/scripts/makefile.hpgcc b/scripts/makefile.hpgcc
index af892e549..7c496ef6f 100644
--- a/scripts/makefile.hpgcc
+++ b/scripts/makefile.hpgcc
@@ -41,7 +41,7 @@ RANLIB=ranlib
#RANLIB=echo
PNGMAJ = 0
-PNGMIN = 1.0.15
+PNGMIN = 1.0.16
PNGVER = $(PNGMAJ).$(PNGMIN)
LIBNAME = libpng10
@@ -103,9 +103,9 @@ $(LIBNAME).sl.$(PNGVER): $(OBJSDLL)
$(LD) -b +s \
+h $(LIBNAME).sl.$(PNGMAJ) -o $(LIBNAME).sl.$(PNGVER) $(OBJSDLL)
-libpng.sl.2.$(PNGMIN): $(OBJSDLL)
+libpng.sl.3.$(PNGMIN): $(OBJSDLL)
$(LD) -b +s \
- +h libpng.sl.2 -o libpng.sl.2.$(PNGMIN) $(OBJSDLL)
+ +h libpng.sl.3 -o libpng.sl.3.$(PNGMIN) $(OBJSDLL)
pngtest: pngtest.o $(LIBNAME).sl
$(CC) -o pngtest $(CFLAGS) pngtest.o $(LDFLAGS)
@@ -131,19 +131,20 @@ install-static: install-headers libpng.a
(cd $(DL); ln -sf $(LIBNAME).a libpng.a)
install-shared: install-headers $(LIBNAME).sl.$(PNGVER) libpng.pc \
- libpng.sl.2.$(PNGMIN)
+ libpng.sl.3.$(PNGMIN)
-@if [ ! -d $(DL) ]; then mkdir $(DL); fi
-@/bin/rm -f $(DL)/$(LIBNAME).sl.$(PNGVER)* $(DL)/$(LIBNAME).sl
+ -@/bin/rm -f $(DL)/$(LIBNAME).sl.$(PNGMAJ)
-@/bin/rm -f $(DL)/libpng.sl
- -@/bin/rm -f $(DL)/libpng.sl.2
- -@/bin/rm -f $(DL)/libpng.sl.2.$(PNGMIN)*
+ -@/bin/rm -f $(DL)/libpng.sl.3
+ -@/bin/rm -f $(DL)/libpng.sl.3.$(PNGMIN)*
cp $(LIBNAME).sl.$(PNGVER) $(DL)
- cp libpng.sl.2.$(PNGMIN) $(DL)
+ cp libpng.sl.3.$(PNGMIN) $(DL)
chmod 755 $(DL)/$(LIBNAME).sl.$(PNGVER)
- chmod 755 $(DL)/libpng.sl.2.$(PNGMIN)
+ chmod 755 $(DL)/libpng.sl.3.$(PNGMIN)
(cd $(DL); \
- ln -sf libpng.sl.2.$(PNGMIN) libpng.sl.2; \
- ln -sf libpng.sl.2 libpng.sl; \
+ ln -sf libpng.sl.3.$(PNGMIN) libpng.sl.3; \
+ ln -sf libpng.sl.3 libpng.sl; \
ln -sf $(LIBNAME).sl.$(PNGVER) $(LIBNAME).sl.$(PNGMAJ); \
ln -sf $(LIBNAME).sl.$(PNGMAJ) $(LIBNAME).sl)
-@if [ ! -d $(DL)/pkgconfig ]; then mkdir $(DL)/pkgconfig; fi
@@ -189,7 +190,7 @@ test-installed:
clean:
/bin/rm -f *.o libpng.a pngtest pngtesti pngout.png \
libpng-config $(LIBNAME).sl $(LIBNAME).sl.$(PNGMAJ)* \
- libpng.sl.2.$(PNGMIN) \
+ libpng.sl.3.$(PNGMIN) \
libpng.pc
DOCS = ANNOUNCE CHANGES INSTALL KNOWNBUG LICENSE README TODO Y2KINFO