mirror of
https://git.code.sf.net/p/libpng/code.git
synced 2025-07-10 18:04:09 +02:00
Imported from libpng-1.4.0beta4.tar
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
|
||||
# Modeled after libxml-config.
|
||||
|
||||
version=1.4.0beta3
|
||||
version=1.4.0beta4
|
||||
prefix=""
|
||||
libdir=""
|
||||
libs=""
|
||||
|
||||
@@ -5,6 +5,6 @@ includedir=@includedir@/libpng14
|
||||
|
||||
Name: libpng
|
||||
Description: Loads and saves PNG files
|
||||
Version: 1.4.0beta3
|
||||
Version: 1.4.0beta4
|
||||
Libs: -L${libdir} -lpng14
|
||||
Cflags: -I${includedir}
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
# Library name:
|
||||
LIBNAME=libpng14
|
||||
PNGMAJ = 0
|
||||
PNGMIN = 1.4.0beta3
|
||||
PNGMIN = 1.4.0beta4
|
||||
PNGVER = $(PNGMAJ).$(PNGMIN)
|
||||
|
||||
# Shared library names:
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
# Library name:
|
||||
LIBNAME=libpng14
|
||||
PNGMAJ = 0
|
||||
PNGMIN = 1.4.0beta3
|
||||
PNGMIN = 1.4.0beta4
|
||||
PNGVER = $(PNGMAJ).$(PNGMIN)
|
||||
|
||||
# Shared library names:
|
||||
|
||||
@@ -20,7 +20,7 @@ LN_SF = ln -f -s
|
||||
|
||||
LIBNAME=libpng14
|
||||
PNGMAJ = 0
|
||||
PNGMIN = 1.4.0beta3
|
||||
PNGMIN = 1.4.0beta4
|
||||
PNGVER = $(PNGMAJ).$(PNGMIN)
|
||||
|
||||
prefix=/usr/local
|
||||
@@ -56,7 +56,8 @@ E=
|
||||
# Variables
|
||||
OBJS = png$(O) pngerror$(O) pngget$(O) pngmem$(O) pngpread$(O) \
|
||||
pngread$(O) pngrio$(O) pngrtran$(O) pngrutil$(O) pngset$(O) \
|
||||
pngtrans$(O) pngwio$(O) pngwrite$(O) pngwtran$(O) pngwutil$(O)
|
||||
pngtrans$(O) pngwio$(O) pngwrite$(O) pngwtran$(O) pngwutil$(O) \
|
||||
pnggccrd$(O)
|
||||
|
||||
# Targets
|
||||
all: $(LIBNAME)$(A) pngtest$(E)
|
||||
@@ -96,6 +97,7 @@ clean:
|
||||
|
||||
png$(O): png.h pngconf.h pngintrn.h
|
||||
pngerror$(O): png.h pngconf.h pngintrn.h
|
||||
pnggccrd$(O): png.h pngconf.h pngintrn.h
|
||||
pngget$(O): png.h pngconf.h pngintrn.h
|
||||
pngmem$(O): png.h pngconf.h pngintrn.h
|
||||
pngpread$(O): png.h pngconf.h pngintrn.h
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
# Library name:
|
||||
LIBNAME=libpng14
|
||||
PNGMAJ = 0
|
||||
PNGMIN = 1.4.0beta3
|
||||
PNGMIN = 1.4.0beta4
|
||||
PNGVER = $(PNGMAJ).$(PNGMIN)
|
||||
|
||||
# Shared library names:
|
||||
|
||||
@@ -31,10 +31,6 @@ endif
|
||||
|
||||
DESTDIR=
|
||||
|
||||
# To enable assembler optimizations, add '-DPNG_USE_PNGGCCRD' to
|
||||
# $CFLAGS, and include pnggccrd.o in $OBJS, below, and in the dependency
|
||||
# list at the bottom of this makefile.
|
||||
|
||||
CC=gcc
|
||||
ifdef MINGW
|
||||
MINGW_CCFLAGS=-mno-cygwin -I/usr/include/mingw
|
||||
@@ -62,17 +58,6 @@ WARNMORE=-Wwrite-strings -Wpointer-arith -Wshadow \
|
||||
-Wmissing-declarations -Wtraditional -Wcast-align \
|
||||
-Wstrict-prototypes -Wmissing-prototypes #-Wconversion
|
||||
|
||||
### if you use the asm, add pnggccrd.o to the OBJS list
|
||||
###
|
||||
### if you don't need thread safety, but want the asm accel
|
||||
#CFLAGS= $(strip $(MINGW_CCFLAGS) -DPNG_THREAD_UNSAFE_OK -DPNG_USE_PNGGCCRD \
|
||||
# $(addprefix -I,$(ZLIBINC)) -Wall -O3 $(ALIGN) -funroll-loops \
|
||||
# -fomit-frame-pointer) # $(WARNMORE) -g -DPNG_DEBUG=5
|
||||
### if you need thread safety and want (minimal) asm accel
|
||||
#CFLAGS= $(strip $(MINGW_CCFLAGS) -DPNG_USE_PNGGCCRD $(addprefix -I,$(ZLIBINC)) \
|
||||
# -Wall -O3 $(ALIGN) -funroll-loops \
|
||||
# -fomit-frame-pointer) # $(WARNMORE) -g -DPNG_DEBUG=5
|
||||
### Normal (non-asm) compilation
|
||||
CFLAGS= $(strip $(MINGW_CCFLAGS) $(addprefix -I,$(ZLIBINC)) \
|
||||
-Wall -O3 $(ALIGN) -funroll-loops \
|
||||
-fomit-frame-pointer) # $(WARNMORE) -g -DPNG_DEBUG=5
|
||||
@@ -80,7 +65,7 @@ CFLAGS= $(strip $(MINGW_CCFLAGS) $(addprefix -I,$(ZLIBINC)) \
|
||||
LIBNAME = libpng14
|
||||
PNGMAJ = 0
|
||||
CYGDLL = 14
|
||||
PNGMIN = 1.4.0beta3
|
||||
PNGMIN = 1.4.0beta4
|
||||
PNGVER = $(PNGMAJ).$(PNGMIN)
|
||||
|
||||
SHAREDLIB=cygpng$(CYGDLL).dll
|
||||
@@ -129,6 +114,20 @@ OBJSDLL = $(OBJS:.o=.pic.o)
|
||||
|
||||
all: all-static all-shared libpng.pc libpng-config libpng.pc libpng-config
|
||||
|
||||
pngconf.h.in:
|
||||
cat pngconf.h > pngconf.h.in
|
||||
|
||||
pngconf.h: pngconf.h.in
|
||||
sed "/Makefile-supplied defines go here:/q" pngconf.h.in > pngconf.h
|
||||
|
||||
/* if you don't want to use the intel MMX code, uncomment this */
|
||||
# echo "#define PNG_NO_MMX_CODE" >> pngconf.h
|
||||
|
||||
/* if you don't need thread safety you can uncomment this */
|
||||
# echo "#define PNG_THREAD_UNSAFE_OK" >> pngconf.h
|
||||
|
||||
sed "1,/Makefile-supplied defines go here:/d" pngconf.h.in >> pngconf.h
|
||||
|
||||
# Make this to verify that "make [...] install" will do what you want.
|
||||
buildsetup-tell:
|
||||
@echo VPATH is set to: \"$(VPATH)\"
|
||||
@@ -299,6 +298,7 @@ pngrio.o pngrio.pic.o: png.h pngconf.h pngintrn.h pngrio.c
|
||||
pngwio.o pngwio.pic.o: png.h pngconf.h pngintrn.h pngwio.c
|
||||
pngmem.o pngmem.pic.o: png.h pngconf.h pngintrn.h pngmem.c
|
||||
pngset.o pngset.pic.o: png.h pngconf.h pngintrn.h pngset.c
|
||||
pnggccrd.o pnggccrd.pic.o: png.h pngconf.h pngintrn.h pngget.c
|
||||
pngget.o pngget.pic.o: png.h pngconf.h pngintrn.h pngget.c
|
||||
pngread.o pngread.pic.o: png.h pngconf.h pngintrn.h pngread.c
|
||||
pngrtran.o pngrtran.pic.o: png.h pngconf.h pngintrn.h pngrtran.c
|
||||
|
||||
@@ -19,7 +19,7 @@ ZLIBINC=../zlib
|
||||
# Library name:
|
||||
LIBNAME = libpng14
|
||||
PNGMAJ = 0
|
||||
PNGMIN = 1.4.0beta3
|
||||
PNGMIN = 1.4.0beta4
|
||||
PNGVER = $(PNGMAJ).$(PNGMIN)
|
||||
|
||||
# Shared library names:
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
# Library name:
|
||||
PNGMAJ = 0
|
||||
PNGMIN = 1.4.0beta3
|
||||
PNGMIN = 1.4.0beta4
|
||||
PNGVER = $(PNGMAJ).$(PNGMIN)
|
||||
LIBNAME = libpng14
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
# DJGPP (DOS gcc) makefile for libpng
|
||||
# Copyright (C) 2006 Glenn Randers-Pehrson
|
||||
# Copyright (C) 2002 Glenn Randers-Pehrson
|
||||
# Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc.
|
||||
# For conditions of distribution and use, see copyright notice in png.h
|
||||
@@ -42,6 +43,7 @@ pngrio.o: png.h pngconf.h pngintrn.h
|
||||
pngwio.o: png.h pngconf.h pngintrn.h
|
||||
pngmem.o: png.h pngconf.h pngintrn.h
|
||||
pngset.o: png.h pngconf.h pngintrn.h
|
||||
pnggccrd.o: png.h pngconf.h pngintrn.h
|
||||
pngget.o: png.h pngconf.h pngintrn.h
|
||||
pngread.o: png.h pngconf.h pngintrn.h
|
||||
pngpread.o: png.h pngconf.h pngintrn.h
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
# Library name:
|
||||
LIBNAME = libpng14
|
||||
PNGMAJ = 0
|
||||
PNGMIN = 1.4.0beta3
|
||||
PNGMIN = 1.4.0beta4
|
||||
PNGVER = $(PNGMAJ).$(PNGMIN)
|
||||
|
||||
# Shared library names:
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# makefile for libpng under FreeBSD
|
||||
# Copyright (C) 2002 Glenn Randers-Pehrson and Andrey A. Chernov
|
||||
# Copyright (C) 2002, 2006 Glenn Randers-Pehrson and Andrey A. Chernov
|
||||
# For conditions of distribution and use, see copyright notice in png.h
|
||||
|
||||
PREFIX?= /usr/local
|
||||
@@ -24,10 +24,19 @@ SYMLINKS= libpng/png.h ${INCSDIR}/../png.h \
|
||||
LDADD+= -lm -lz
|
||||
DPADD+= ${LIBM} ${LIBZ}
|
||||
|
||||
CFLAGS+= -I. -DPNG_USE_PNGGCCRD
|
||||
pngconf.h.in:
|
||||
cat pngconf.h > pngconf.h.in
|
||||
|
||||
pngconf.h: pngconf.h.in
|
||||
sed "/Makefile-supplied defines go here:/q" pngconf.h.in > pngconf.h
|
||||
.if (${MACHINE_ARCH} != "i386")
|
||||
CFLAGS+= -DPNG_NO_MMX_CODE
|
||||
/* uncoment this if you don't need thread safety */
|
||||
# echo "#define PNG_THREAD_UNSAFE_OK" >> pngconf.h
|
||||
.else
|
||||
echo "#define PNG_NO_MMX_CODE" >> pngconf.h
|
||||
.endif
|
||||
sed "1,/Makefile-supplied defines go here:/d" pngconf.h.in >> pngconf.h
|
||||
|
||||
|
||||
SRCS= png.c pngset.c pngget.c pngrutil.c pngtrans.c pngwutil.c \
|
||||
pngread.c pngrio.c pngwio.c pngwrite.c pngrtran.c \
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
# makefile for libpng using gcc (generic, static library)
|
||||
# Copyright (C) 2006 Glenn Randers-Pehrson
|
||||
# Copyright (C) 2000 Cosmin Truta
|
||||
# Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc.
|
||||
# For conditions of distribution and use, see copyright notice in png.h
|
||||
@@ -49,6 +50,7 @@ clean:
|
||||
|
||||
png$(O): png.h pngconf.h pngintrn.h
|
||||
pngerror$(O): png.h pngconf.h pngintrn.h
|
||||
pnggccrd$(O): png.h pngconf.h pngintrn.h
|
||||
pngget$(O): png.h pngconf.h pngintrn.h
|
||||
pngmem$(O): png.h pngconf.h pngintrn.h
|
||||
pngpread$(O): png.h pngconf.h pngintrn.h
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
# Library name:
|
||||
LIBNAME = libpng14
|
||||
PNGMAJ = 0
|
||||
PNGMIN = 1.4.0beta3
|
||||
PNGMIN = 1.4.0beta4
|
||||
PNGVER = $(PNGMAJ).$(PNGMIN)
|
||||
|
||||
# Shared library names:
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# makefile for libpng, HPUX (10.20 and 11.00) using the ANSI/C product.
|
||||
# Copyright (C) 1999-2002 Glenn Randers-Pehrson
|
||||
# Copyright (C) 1999-2002, 2006 Glenn Randers-Pehrson
|
||||
# Copyright (C) 1995 Guy Eric Schalnat, Group 42
|
||||
# contributed by Jim Rice and updated by Chris Schleicher, Hewlett Packard
|
||||
# For conditions of distribution and use, see copyright notice in png.h
|
||||
@@ -18,7 +18,7 @@ ZLIBINC=/opt/zlib/include
|
||||
# Library name:
|
||||
LIBNAME = libpng14
|
||||
PNGMAJ = 0
|
||||
PNGMIN = 1.4.0beta3
|
||||
PNGMIN = 1.4.0beta4
|
||||
PNGVER = $(PNGMAJ).$(PNGMIN)
|
||||
|
||||
# Shared library names:
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
# Library name:
|
||||
LIBNAME = libpng14
|
||||
PNGMAJ = 0
|
||||
PNGMIN = 1.4.0beta3
|
||||
PNGMIN = 1.4.0beta4
|
||||
PNGVER = $(PNGMAJ).$(PNGMIN)
|
||||
|
||||
# Shared library names:
|
||||
|
||||
@@ -18,7 +18,7 @@ ZLIBINC=/opt/zlib/include
|
||||
# Library name:
|
||||
LIBNAME = libpng14
|
||||
PNGMAJ = 0
|
||||
PNGMIN = 1.4.0beta3
|
||||
PNGMIN = 1.4.0beta4
|
||||
PNGVER = $(PNGMAJ).$(PNGMIN)
|
||||
|
||||
# Shared library names:
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
# Makefile for libpng (static)
|
||||
# IBM C version 3.x for Win32 and OS/2
|
||||
# Copyright (C) 2006 Glenn Randers-Pehrson
|
||||
# Copyright (C) 2000 Cosmin Truta
|
||||
# For conditions of distribution and use, see copyright notice in png.h
|
||||
# Notes:
|
||||
@@ -55,6 +56,7 @@ clean:
|
||||
|
||||
png$(O): png.h pngconf.h pngintrn.h
|
||||
pngerror$(O): png.h pngconf.h pngintrn.h
|
||||
pnggccrd$(O): png.h pngconf.h pngintrn.h
|
||||
pngget$(O): png.h pngconf.h pngintrn.h
|
||||
pngmem$(O): png.h pngconf.h pngintrn.h
|
||||
pngpread$(O): png.h pngconf.h pngintrn.h
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
# Makefile for libpng
|
||||
# Microsoft Visual C++ with Intel C/C++ Compiler 4.0 and later
|
||||
|
||||
# Copyright (C) 2006 Glenn Randers-Pehrson
|
||||
# Copyright (C) 2000, Pawel Mrochen, based on makefile.msc which is
|
||||
# copyright 1995 Guy Eric Schalnat, Group 42, Inc.
|
||||
# For conditions of distribution and use, see copyright notice in png.h
|
||||
@@ -13,8 +14,6 @@
|
||||
# Caution: the assembler code was introduced at libpng version 1.0.4 and has
|
||||
# not yet been thoroughly tested.
|
||||
|
||||
# Use assembler code
|
||||
ASMCODE=-DPNG_USE_PNGVCRD
|
||||
|
||||
# Where the zlib library and include files are located
|
||||
ZLIBLIB=..\zlib
|
||||
@@ -36,7 +35,7 @@ CALLING=r # __fastcall
|
||||
|
||||
|
||||
CC=icl -c
|
||||
CFLAGS=-O2 -G$(CPU)$(CALLING) -Qip -Qunroll4 -I$(ZLIBINC) $(ASMCODE) -nologo
|
||||
CFLAGS=-O2 -G$(CPU)$(CALLING) -Qip -Qunroll4 -I$(ZLIBINC) -nologo
|
||||
LD=link
|
||||
LDFLAGS=/SUBSYSTEM:CONSOLE /NOLOGO
|
||||
|
||||
@@ -49,6 +48,16 @@ pngrtran$(O) pngwtran$(O) pngrio$(O) pngwio$(O) pngvcrd$(O)
|
||||
|
||||
all: test
|
||||
|
||||
pngconf.h.in:
|
||||
cat pngconf.h > pngconf.h.in
|
||||
|
||||
# Remove the line with #define PNG_THREAD_UNSAFE_OK if you need thread safety
|
||||
### for generic gcc:
|
||||
pngconf.h: pngconf.h.in
|
||||
sed "/Makefile-supplied defines go here:/q" pngconf.h.in > pngconf.h
|
||||
echo "#define PNG_USE_PNGVCRD" >> pngconf.h
|
||||
sed "1,/Makefile-supplied defines go here:/d" pngconf.h.in >> pngconf.h
|
||||
|
||||
png$(O): png.h pngconf.h pngintrn.h
|
||||
$(CC) $(CFLAGS) $*.c $(ERRFILE)
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# makefile for libpng
|
||||
# Copyright (C) 2002 Glenn Randers-Pehrson
|
||||
# Copyright (C) 2002, 2006 Glenn Randers-Pehrson
|
||||
# Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc.
|
||||
# For conditions of distribution and use, see copyright notice in png.h
|
||||
|
||||
@@ -87,6 +87,7 @@ pngrio.o: png.h pngconf.h pntintrn.h
|
||||
pngwio.o: png.h pngconf.h pntintrn.h
|
||||
pngmem.o: png.h pngconf.h pntintrn.h
|
||||
pngset.o: png.h pngconf.h pntintrn.h
|
||||
pnggccrd.o: png.h pngconf.h pntintrn.h
|
||||
pngget.o: png.h pngconf.h pntintrn.h
|
||||
pngread.o: png.h pngconf.h pntintrn.h
|
||||
pngpread.o: png.h pngconf.h pntintrn.h
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
# Library name:
|
||||
LIBNAME = libpng14
|
||||
PNGMAJ = 0
|
||||
PNGMIN = 1.4.0beta3
|
||||
PNGMIN = 1.4.0beta4
|
||||
PNGVER = $(PNGMAJ).$(PNGMIN)
|
||||
|
||||
# Shared library names:
|
||||
|
||||
@@ -58,17 +58,7 @@ WARNMORE=-Wwrite-strings -Wpointer-arith -Wshadow \
|
||||
-Wmissing-declarations -Wtraditional -Wcast-align \
|
||||
-Wstrict-prototypes -Wmissing-prototypes #-Wconversion
|
||||
|
||||
### if you use the asm, add pnggccrd.o to the OBJS list
|
||||
###
|
||||
### if you don't need thread safety, but want the asm accel
|
||||
#CFLAGS= $(strip $(MINGW_CCFLAGS) -DPNG_THREAD_UNSAFE_OK -DPNG_USE_PNGGCCRD \
|
||||
# $(addprefix -I,$(ZLIBINC)) -Wall -O3 $(ALIGN) -funroll-loops \
|
||||
# -fomit-frame-pointer) # $(WARNMORE) -g -DPNG_DEBUG=5
|
||||
### if you need thread safety and want (minimal) asm accel
|
||||
#CFLAGS= $(strip $(MINGW_CCFLAGS) -DPNG_USE_PNGGCCRD $(addprefix -I,$(ZLIBINC)) \
|
||||
# -Wall -O3 $(ALIGN) -funroll-loops \
|
||||
# -fomit-frame-pointer) # $(WARNMORE) -g -DPNG_DEBUG=5
|
||||
### Normal (non-asm) compilation
|
||||
### Normal compilation
|
||||
CFLAGS= $(strip $(MINGW_CCFLAGS) $(addprefix -I,$(ZLIBINC)) \
|
||||
-Wall -O3 $(ALIGN) -funroll-loops \
|
||||
-fomit-frame-pointer) # $(WARNMORE) -g -DPNG_DEBUG=5
|
||||
@@ -76,7 +66,7 @@ CFLAGS= $(strip $(MINGW_CCFLAGS) $(addprefix -I,$(ZLIBINC)) \
|
||||
LIBNAME = libpng14
|
||||
PNGMAJ = 0
|
||||
MINGDLL = 14
|
||||
PNGMIN = 1.4.0beta3
|
||||
PNGMIN = 1.4.0beta4
|
||||
PNGVER = $(PNGMAJ).$(PNGMIN)
|
||||
|
||||
SHAREDLIB=libpng$(MINGDLL).dll
|
||||
@@ -111,7 +101,7 @@ DL =$(D)$(LIBPATH)
|
||||
|
||||
OBJS = png.o pngset.o pngget.o pngrutil.o pngtrans.o pngwutil.o \
|
||||
pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o \
|
||||
pngwtran.o pngmem.o pngerror.o pngpread.o # pnggccrd.o
|
||||
pngwtran.o pngmem.o pngerror.o pngpread.o pnggccrd.o
|
||||
|
||||
OBJSDLL = $(OBJS:.o=.pic.o)
|
||||
|
||||
@@ -125,6 +115,20 @@ OBJSDLL = $(OBJS:.o=.pic.o)
|
||||
|
||||
all: all-static all-shared libpng.pc libpng-config libpng.pc libpng-config
|
||||
|
||||
pngconf.h.in:
|
||||
cat pngconf.h > pngconf.h.in
|
||||
|
||||
pngconf.h: pngconf.h.in
|
||||
sed "/Makefile-supplied defines go here:/q" pngconf.h.in > pngconf.h
|
||||
|
||||
/* if you don't want to use the intel MMX code, uncomment this */
|
||||
# echo "#define PNG_NO_MMX_CODE" >> pngconf.h
|
||||
|
||||
/* if you don't need thread safety you can uncomment this */
|
||||
# echo "#define PNG_THREAD_UNSAFE_OK" >> pngconf.h
|
||||
|
||||
sed "1,/Makefile-supplied defines go here:/d" pngconf.h.in >> pngconf.h
|
||||
|
||||
# Make this to verify that "make [...] install" will do what you want.
|
||||
buildsetup-tell:
|
||||
@echo VPATH is set to: \"$(VPATH)\"
|
||||
@@ -295,6 +299,7 @@ pngrio.o pngrio.pic.o: png.h pngconf.h pngintrn.h pngrio.c
|
||||
pngwio.o pngwio.pic.o: png.h pngconf.h pngintrn.h pngwio.c
|
||||
pngmem.o pngmem.pic.o: png.h pngconf.h pngintrn.h pngmem.c
|
||||
pngset.o pngset.pic.o: png.h pngconf.h pngintrn.h pngset.c
|
||||
pnggcrd.o pnggcrd.pic.o: png.h pngconf.h pngintrn.h pngget.c
|
||||
pngget.o pngget.pic.o: png.h pngconf.h pngintrn.h pngget.c
|
||||
pngread.o pngread.pic.o: png.h pngconf.h pngintrn.h pngread.c
|
||||
pngrtran.o pngrtran.pic.o: png.h pngconf.h pngintrn.h pngrtran.c
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
# makefile for libpng
|
||||
# Copyright (C) 2006 Glenn Randers-Pehrson
|
||||
# Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc.
|
||||
# For conditions of distribution and use, see copyright notice in png.h
|
||||
# Assumes that zlib.lib, zconf.h, and zlib.h have been copied to ..\zlib
|
||||
@@ -28,6 +29,9 @@ png$(O): png.h pngconf.h pngintrn.h
|
||||
pngset$(O): png.h pngconf.h pngintrn.h
|
||||
$(CC) -c $(CFLAGS) $*.c $(ERRFILE)
|
||||
|
||||
pnggccrd$(O): png.h pngconf.h pngintrn.h
|
||||
$(CC) -c $(CFLAGS) $*.c $(ERRFILE)
|
||||
|
||||
pngget$(O): png.h pngconf.h pngintrn.h
|
||||
$(CC) -c $(CFLAGS) $*.c $(ERRFILE)
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
# makefile for libpng for NetBSD for the standard
|
||||
# make obj && make depend && make && make test
|
||||
# make includes && make install
|
||||
# Copyright (C) 2006 Glenn Randers-Pehrson
|
||||
# Copyright (C) 2002 Patrick R.L. Welche
|
||||
# For conditions of distribution and use, see copyright notice in png.h
|
||||
|
||||
@@ -13,25 +14,41 @@ INCSDIR=${LOCALBASE}/include/libpng14
|
||||
|
||||
LIB= png12
|
||||
SHLIB_MAJOR= 0
|
||||
SHLIB_MINOR= 1.4.0beta3
|
||||
SHLIB_MINOR= 1.4.0beta4
|
||||
SRCS= pnggccrd.c png.c pngset.c pngget.c pngrutil.c pngtrans.c pngwutil.c \
|
||||
pngread.c pngrio.c pngwio.c pngwrite.c pngrtran.c \
|
||||
pngwtran.c pngmem.c pngerror.c pngpread.c
|
||||
INCS= png.h pngconf.h
|
||||
MAN= libpng.3 libpngpf.3 png.5
|
||||
|
||||
CPPFLAGS+=-I${.CURDIR} -DPNG_USE_PNGGCCRD
|
||||
|
||||
# something like this for mmx assembler, but it core dumps for me at the moment
|
||||
# .if ${MACHINE_ARCH} == "i386"
|
||||
# CPPFLAGS+=-DPNG_THREAD_UNSAFE_OK
|
||||
# MKLINT= no
|
||||
# .else
|
||||
CPPFLAGS+=-DPNG_NO_MMX_CODE
|
||||
# .endif
|
||||
CPPFLAGS+=-I${.CURDIR}
|
||||
|
||||
CLEANFILES+=pngtest.o pngtest
|
||||
|
||||
pngconf.h.in:
|
||||
cat pngconf.h > pngconf.h.in
|
||||
|
||||
pngconf.h: pngconf.h.in
|
||||
sed "/Makefile-supplied defines go here:/q" pngconf.h.in > pngconf.h
|
||||
|
||||
/* if you don't want to use the intel MMX code, uncomment this */
|
||||
# echo "#define PNG_NO_MMX_CODE" >> pngconf.h
|
||||
|
||||
/* if you don't need thread safety you can uncomment this */
|
||||
# echo "#define PNG_THREAD_UNSAFE_OK" >> pngconf.h
|
||||
|
||||
# We should be able to do something like this instead of the manual
|
||||
# uncommenting, but it core dumps for me at the moment:
|
||||
# .if ${MACHINE_ARCH} == "i386"
|
||||
# echo "#define PNG_THREAD_UNSAFE_OK" >> pngconf.h
|
||||
# MKLINT= no
|
||||
# .else
|
||||
# echo "#define PNG_NO_MMX_CODE" >> pngconf.h
|
||||
# .endif
|
||||
|
||||
sed "1,/Makefile-supplied defines go here:/d" pngconf.h.in >> pngconf.h
|
||||
|
||||
|
||||
pngtest.o: pngtest.c
|
||||
${CC} -c ${CPPFLAGS} ${CFLAGS} ${.ALLSRC} -o ${.TARGET}
|
||||
|
||||
|
||||
@@ -13,25 +13,40 @@ INCSDIR=${LOCALBASE}/include/libpng
|
||||
|
||||
LIB= png
|
||||
SHLIB_MAJOR= 3
|
||||
SHLIB_MINOR= 1.4.0beta3
|
||||
SHLIB_MINOR= 1.4.0beta4
|
||||
SRCS= pnggccrd.c png.c pngset.c pngget.c pngrutil.c pngtrans.c pngwutil.c \
|
||||
pngread.c pngrio.c pngwio.c pngwrite.c pngrtran.c \
|
||||
pngwtran.c pngmem.c pngerror.c pngpread.c
|
||||
INCS= png.h pngconf.h
|
||||
MAN= libpng.3 libpngpf.3 png.5
|
||||
|
||||
CPPFLAGS+=-I${.CURDIR} -DPNG_USE_PNGGCCRD
|
||||
|
||||
# something like this for mmx assembler, but it core dumps for me at the moment
|
||||
# .if ${MACHINE_ARCH} == "i386"
|
||||
# CPPFLAGS+=-DPNG_THREAD_UNSAFE_OK
|
||||
# MKLINT= no
|
||||
# .else
|
||||
CPPFLAGS+=-DPNG_NO_MMX_CODE
|
||||
# .endif
|
||||
CPPFLAGS+=-I${.CURDIR}
|
||||
|
||||
CLEANFILES+=pngtest.o pngtest
|
||||
|
||||
pngconf.h.in:
|
||||
cat pngconf.h > pngconf.h.in
|
||||
|
||||
pngconf.h: pngconf.h.in
|
||||
sed "/Makefile-supplied defines go here:/q" pngconf.h.in > pngconf.h
|
||||
|
||||
/* if you don't want to use the intel MMX code, uncomment this */
|
||||
# echo "#define PNG_NO_MMX_CODE" >> pngconf.h
|
||||
|
||||
/* if you don't need thread safety you can uncomment this */
|
||||
# echo "#define PNG_THREAD_UNSAFE_OK" >> pngconf.h
|
||||
|
||||
# We should be able to do something like this instead of the manual
|
||||
# uncommenting, but it core dumps for me at the moment:
|
||||
# .if ${MACHINE_ARCH} == "i386"
|
||||
# echo "#define PNG_THREAD_UNSAFE_OK" >> pngconf.h
|
||||
# MKLINT= no
|
||||
# .else
|
||||
# echo "#define PNG_NO_MMX_CODE" >> pngconf.h
|
||||
# .endif
|
||||
|
||||
sed "1,/Makefile-supplied defines go here:/d" pngconf.h.in >> pngconf.h
|
||||
|
||||
pngtest.o: pngtest.c
|
||||
${CC} -c ${CPPFLAGS} ${CFLAGS} ${.ALLSRC} -o ${.TARGET}
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
# makefile for libpng
|
||||
# Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc.
|
||||
# Copyright (C) 2006 Glenn Randers-Pehrson
|
||||
# For conditions of distribution and use, see copyright notice in png.h
|
||||
|
||||
PREFIX?= /usr/local
|
||||
@@ -7,7 +8,7 @@ LIBDIR= ${PREFIX}/lib
|
||||
MANDIR= ${PREFIX}/man/cat
|
||||
|
||||
SHLIB_MAJOR= 0
|
||||
SHLIB_MINOR= 1.4.0beta3
|
||||
SHLIB_MINOR= 1.4.0beta4
|
||||
|
||||
LIB= png
|
||||
SRCS= png.c pngerror.c pnggccrd.c pngget.c pngmem.c pngpread.c \
|
||||
@@ -17,7 +18,23 @@ SRCS= png.c pngerror.c pnggccrd.c pngget.c pngmem.c pngpread.c \
|
||||
HDRS= png.h pngconf.h
|
||||
|
||||
CFLAGS+= -Wall
|
||||
CPPFLAGS+= -I${.CURDIR} -DPNG_NO_MMX_CODE -DPNG_USE_PNGGCCRD
|
||||
CPPFLAGS+= -I${.CURDIR}
|
||||
|
||||
pngconf.h.in:
|
||||
cat pngconf.h > pngconf.h.in
|
||||
|
||||
pngconf.h: pngconf.h.in
|
||||
sed "/Makefile-supplied defines go here:/q" pngconf.h.in > pngconf.h
|
||||
|
||||
/* if you want to use the intel assembler code, remove this */
|
||||
echo "#define PNG_NO_MMX_CODE" >> pngconf.h
|
||||
/* if you want to use the intel MMX code, also remove this */
|
||||
echo "#define PNG_NO_ASSEMBLER_CODE" >> pngconf.h
|
||||
|
||||
/* if you don't need thread safety you can uncomment this */
|
||||
# echo "#define PNG_THREAD_UNSAFE_OK" >> pngconf.h
|
||||
|
||||
sed "1,/Makefile-supplied defines go here:/d" pngconf.h.in >> pngconf.h
|
||||
|
||||
NOPROFILE= Yes
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
# Library name:
|
||||
LIBNAME = libpng14
|
||||
PNGMAJ = 0
|
||||
PNGMIN = 1.4.0beta3
|
||||
PNGMIN = 1.4.0beta4
|
||||
PNGVER = $(PNGMAJ).$(PNGMIN)
|
||||
|
||||
# Shared library names:
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
# Library name:
|
||||
LIBNAME=libpng14
|
||||
PNGMAJ = 0
|
||||
PNGMIN = 1.4.0beta3
|
||||
PNGMIN = 1.4.0beta4
|
||||
PNGVER = $(PNGMAJ).$(PNGMIN)
|
||||
|
||||
# Shared library names:
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
# Library name:
|
||||
LIBNAME=libpng14
|
||||
PNGMAJ = 0
|
||||
PNGMIN = 1.4.0beta3
|
||||
PNGMIN = 1.4.0beta4
|
||||
PNGVER = $(PNGMAJ).$(PNGMIN)
|
||||
|
||||
# Shared library names:
|
||||
@@ -43,9 +43,8 @@ ABI=
|
||||
|
||||
WARNMORE=-fullwarn
|
||||
# Note: -KPIC is the default anyhow
|
||||
#CFLAGS= $(ABI) -I$(ZLIBINC) -O $(WARNMORE) -KPIC -DPNG_USE_PNGGCCRD # -g -DPNG_DEBUG=5
|
||||
CFLAGS=$(ABI) -I$(ZLIBINC) -O $(WARNMORE) -DPNG_USE_PNGGCCRD \
|
||||
-DPNG_NO_MMX_CODE
|
||||
#CFLAGS= $(ABI) -I$(ZLIBINC) -O $(WARNMORE) -KPIC # -g -DPNG_DEBUG=5
|
||||
CFLAGS=$(ABI) -I$(ZLIBINC) -O $(WARNMORE)
|
||||
LDFLAGS_A=$(ABI) -L. -L$(ZLIBLIB) -lpng14 -lz -lm
|
||||
LDFLAGS=$(ABI) -L. -L$(ZLIBLIB) -lpng -lz -lm
|
||||
LDSHARED=cc $(ABI) -shared -soname $(LIBSOMAJ) \
|
||||
@@ -79,6 +78,20 @@ OBJS = pnggccrd.o png.o pngset.o pngget.o pngrutil.o pngtrans.o pngwutil.o \
|
||||
|
||||
all: libpng.a pngtest shared libpng.pc libpng-config
|
||||
|
||||
pngconf.h.in:
|
||||
cat pngconf.h > pngconf.h.in
|
||||
|
||||
pngconf.h: pngconf.h.in
|
||||
sed "/Makefile-supplied defines go here:/q" pngconf.h.in > pngconf.h
|
||||
|
||||
/* if you don't want to use the intel MMX code, uncomment this */
|
||||
# echo "#define PNG_NO_MMX_CODE" >> pngconf.h
|
||||
|
||||
/* if you don't need thread safety you can uncomment this */
|
||||
# echo "#define PNG_THREAD_UNSAFE_OK" >> pngconf.h
|
||||
|
||||
sed "1,/Makefile-supplied defines go here:/d" pngconf.h.in >> pngconf.h
|
||||
|
||||
libpng.a: $(OBJS)
|
||||
$(AR_RC) $@ $(OBJS)
|
||||
$(RANLIB) $@
|
||||
@@ -215,6 +228,7 @@ pngwio.o: png.h pngconf.h pngintrn.h
|
||||
pngmem.o: png.h pngconf.h pngintrn.h
|
||||
pngset.o: png.h pngconf.h pngintrn.h
|
||||
pngget.o: png.h pngconf.h pngintrn.h
|
||||
pnggccrd.o: png.h pngconf.h pngintrn.h
|
||||
pngread.o: png.h pngconf.h pngintrn.h
|
||||
pngrtran.o: png.h pngconf.h pngintrn.h
|
||||
pngrutil.o: png.h pngconf.h pngintrn.h
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
# Library name:
|
||||
PNGMAJ = 0
|
||||
PNGMIN = 1.4.0beta3
|
||||
PNGMIN = 1.4.0beta4
|
||||
PNGVER = $(PNGMAJ).$(PNGMIN)
|
||||
LIBNAME = libpng14
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
# Library name:
|
||||
LIBNAME = libpng14
|
||||
PNGMAJ = 0
|
||||
PNGMIN = 1.4.0beta3
|
||||
PNGMIN = 1.4.0beta4
|
||||
PNGVER = $(PNGMAJ).$(PNGMIN)
|
||||
|
||||
# Shared library names:
|
||||
@@ -78,6 +78,14 @@ OBJSDLL = $(OBJS:.o=.pic.o)
|
||||
|
||||
all: libpng.a $(LIBSO) pngtest libpng.pc libpng-config
|
||||
|
||||
pngconf.h.in:
|
||||
cat pngconf.h > pngconf.h.in
|
||||
|
||||
pngconf.h: pngconf.h.in
|
||||
sed "/Makefile-supplied defines go here:/q" pngconf.h.in > pngconf.h
|
||||
echo "#define PNG_NO_MMX_CODE" >> pngconf.h
|
||||
sed "1,/Makefile-supplied defines go here:/d" pngconf.h.in >> pngconf.h
|
||||
|
||||
libpng.a: $(OBJS)
|
||||
$(AR_RC) $@ $(OBJS)
|
||||
$(RANLIB) $@
|
||||
@@ -89,7 +97,7 @@ libpng-config:
|
||||
( cat scripts/libpng-config-head.in; \
|
||||
echo prefix=\"$(prefix)\"; \
|
||||
echo I_opts=\"-I$(INCPATH)/$(LIBNAME)\"; \
|
||||
echo cppflags=\"-DPNG_USE_PNGGCCRD -DPNG_NO_MMX_CODE\"; \
|
||||
echo cppflags=\"\"; \
|
||||
echo L_opts=\"-L$(LIBPATH)\"; \
|
||||
echo R_opts=\"-R$(LIBPATH)\"; \
|
||||
echo libs=\"-lpng14 -lz -lm\"; \
|
||||
@@ -218,7 +226,9 @@ pngrio.o pngrio.pic.o: png.h pngconf.h pngintrn.h
|
||||
pngwio.o pngwio.pic.o: png.h pngconf.h pngintrn.h
|
||||
pngmem.o pngmem.pic.o: png.h pngconf.h pngintrn.h
|
||||
pngset.o pngset.pic.o: png.h pngconf.h pngintrn.h
|
||||
pnggccrd.o pnggccrd.pic.o: png.h pngconf.h pngintrn.h
|
||||
pngget.o pngget.pic.o: png.h pngconf.h pngintrn.h
|
||||
pnggccrd.o pngget.pic.o: png.h pngconf.h pngintrn.h
|
||||
pngread.o pngread.pic.o: png.h pngconf.h pngintrn.h
|
||||
pngrtran.o pngrtran.pic.o: png.h pngconf.h pngintrn.h
|
||||
pngrutil.o pngrutil.pic.o: png.h pngconf.h pngintrn.h
|
||||
|
||||
@@ -41,7 +41,7 @@ LDFLAGS=-L. -L$(ZLIBLIB) -lpng -lz -lm
|
||||
|
||||
OBJS = png.o pngset.o pngget.o pngrutil.o pngtrans.o pngwutil.o \
|
||||
pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o \
|
||||
pngwtran.o pngmem.o pngerror.o pngpread.o
|
||||
pngwtran.o pngmem.o pngerror.o pngpread.o pnggccrd.o
|
||||
|
||||
all: libpng.a pngtest
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
# makefile for libpng
|
||||
# Copyright (C) 1998 Tim Wegner
|
||||
# Copyright (C) 2006 Glenn Randers-Pehrson
|
||||
# For conditions of distribution and use, see copyright notice in png.h
|
||||
# Assumes that zlib.lib, zconf.h, and zlib.h have been copied to ..\zlib
|
||||
# To use, do "nmake /f scripts\makefile.vcawin32"
|
||||
@@ -11,7 +12,7 @@
|
||||
CC = cl
|
||||
LD = link
|
||||
AR = lib
|
||||
CFLAGS = -DPNG_USE_PNGVCRD -nologo -MD -O2 -W3 -I..\zlib
|
||||
CFLAGS = -nologo -MD -O2 -W3 -I..\zlib
|
||||
LDFLAGS = -nologo
|
||||
ARFLAGS = -nologo
|
||||
RM = del
|
||||
@@ -32,6 +33,14 @@ OBJS = $(OBJS1) $(OBJS2) $(OBJS3) $(OBJS4)
|
||||
# Targets
|
||||
all: libpng.lib
|
||||
|
||||
pngconf.h.in:
|
||||
cat pngconf.h > pngconf.h.in
|
||||
|
||||
pngconf.h: pngconf.h.in
|
||||
sed "/Makefile-supplied defines go here:/q" pngconf.h.in > pngconf.h
|
||||
echo "#define PNG_USE_PNGVCRD" >> pngconf.h
|
||||
sed "1,/Makefile-supplied defines go here:/d" pngconf.h.in >> pngconf.h
|
||||
|
||||
png$(O): png.h pngconf.h pngintrn.h
|
||||
$(CC) -c $(CFLAGS) $*.c $(ERRFILE)
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
# makefile for libpng
|
||||
# Copyright (C) 1998 Tim Wegner
|
||||
# Copyright (C) 2006 Glenn Randers-Pehrson
|
||||
# For conditions of distribution and use, see copyright notice in png.h
|
||||
# Assumes that zlib.lib, zconf.h, and zlib.h have been copied to ..\zlib
|
||||
# To use, do "nmake /f scripts\makefile.vcwin32"
|
||||
@@ -31,12 +32,23 @@ OBJS = $(OBJS1) $(OBJS2) $(OBJS3)
|
||||
# Targets
|
||||
all: libpng.lib
|
||||
|
||||
pngconf.h.in:
|
||||
cat pngconf.h > pngconf.h.in
|
||||
|
||||
pngconf.h: pngconf.h.in
|
||||
sed "/Makefile-supplied defines go here:/q" pngconf.h.in > pngconf.h
|
||||
echo "#define PNG_NO_MMX_CODE" >> pngconf.h
|
||||
sed "1,/Makefile-supplied defines go here:/d" pngconf.h.in >> pngconf.h
|
||||
|
||||
png$(O): png.h pngconf.h pngintrn.h
|
||||
$(CC) -c $(CFLAGS) $*.c $(ERRFILE)
|
||||
|
||||
pngset$(O): png.h pngconf.h pngintrn.h
|
||||
$(CC) -c $(CFLAGS) $*.c $(ERRFILE)
|
||||
|
||||
pnggccrd$(O): png.h pngconf.h pngintrn.h
|
||||
$(CC) -c $(CFLAGS) $*.c $(ERRFILE)
|
||||
|
||||
pngget$(O): png.h pngconf.h pngintrn.h
|
||||
$(CC) -c $(CFLAGS) $*.c $(ERRFILE)
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
; PNG.LIB module definition file for OS/2
|
||||
;----------------------------------------
|
||||
|
||||
; Version 1.4.0beta3
|
||||
; Version 1.4.0beta4
|
||||
|
||||
LIBRARY PNG
|
||||
DESCRIPTION "PNG image compression library for OS/2"
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
LIBRARY
|
||||
|
||||
EXPORTS
|
||||
;Version 1.4.0beta3
|
||||
;Version 1.4.0beta4
|
||||
png_build_grayscale_palette @1
|
||||
png_chunk_error @3
|
||||
png_chunk_warning @4
|
||||
|
||||
Reference in New Issue
Block a user