Imported from libpng-1.2.6beta1.tar

This commit is contained in:
Glenn Randers-Pehrson
2002-10-22 08:28:43 -05:00
parent 0cc2f95a9d
commit c33ab4e8df
61 changed files with 170 additions and 143 deletions

View File

@@ -18,7 +18,7 @@ RM = rm -f
LIBNAME=libpng12
PNGMAJ = 0
PNGMIN = 1.2.5
PNGMIN = 1.2.6beta1
PNGVER = $(PNGMAJ).$(PNGMIN)
prefix=/usr/local
@@ -35,8 +35,8 @@ LIBPATH=$(prefix)/lib
# you execute make install.
DESTDIR=
DI=$(DESTDIR)/$(INCPATH)
DL=$(DESTDIR)/$(LIBPATH)
DI=$(DESTDIR)$(INCPATH)
DL=$(DESTDIR)$(LIBPATH)
CDEBUG = -g -DPNG_DEBUG=5
LDDEBUG =
@@ -44,7 +44,7 @@ CRELEASE = -O2
LDRELEASE = -s
WARNMORE=-Wall
CFLAGS = -I$(ZLIBINC) $(WARNMORE) $(CRELEASE)
LDFLAGS = -L. -L$(ZLIBLIB) -lpng -lz -lm $(LDRELEASE)
LDFLAGS = -L. -L$(ZLIBLIB) -lpng12 -lz -lm $(LDRELEASE)
# File extensions
O=.o
@@ -57,7 +57,7 @@ OBJS = png$(O) pngerror$(O) pngget$(O) pngmem$(O) pngpread$(O) \
pngtrans$(O) pngwio$(O) pngwrite$(O) pngwtran$(O) pngwutil$(O)
# Targets
all: libpng$(A) pngtest$(E)
all: $(LIBNAME)$(A) pngtest$(E)
$(LIBNAME)$(A): $(OBJS)
$(AR) $@ $(OBJS)
@@ -71,15 +71,22 @@ pngtest$(E): pngtest$(O) $(LIBNAME)$(A)
install: $(LIBNAME)$(A)
-@if [ ! -d $(DI) ]; then mkdir $(DI); fi
-@if [ ! -d $(DI)/libpng ]; then mkdir $(DI)/libpng; fi
-@if [ ! -d $(DI)/$(LIBNAME) ]; then mkdir $(DI)/$(LIBNAME); fi
-@if [ ! -d $(DL) ]; then mkdir $(DL); fi
-@rm $(DI)/png.h
-@rm $(DI)/pngconf.h
cp png.h pngconf.h $(DI)/libpng
chmod 644 $(DI)/libpng/png.h \
cp $(LIBNAME)$(A) $(DL)
-@rm -f $(DI)/$(LIBNAME)/png.h
-@rm -f $(DI)/$(LIBNAME)/pngconf.h
-@rm -f $(DI)/png.h
-@rm -f $(DI)/pngconf.h
cp png.h pngconf.h $(DI)/$(LIBNAME)
chmod 644 $(DI)/$(LIBNAME)/png.h \
$(DI)/$(LIBNAME)/pngconf.h
-@rm -rf $(DI)/libpng
(cd $(DI); ln -f -s $(LIBNAME) libpng; ln -f -s $(LIBNAME)/* .)
-@rm -f $(DL)/$(LIBNAME)$(A)
-@rm -f $(DL)/libpng$(A)
cp $(LIBNAME)$(A) $(DL)/$(LIBNAME)$(A)
chmod 644 $(DL)/$(LIBNAME)$(A)
(cd $(DL); ln -f -s $(LIBNAME)$(A) libpng$(A))
$(DI)/libpng/pngconf.h
(cd $(DI); ln -f -s libpng/* .;)
clean: