Imported from libpng-1.4.0beta4.tar

This commit is contained in:
Glenn Randers-Pehrson
2006-05-11 09:43:09 -05:00
parent 86dc981475
commit b3870ab5f9
56 changed files with 355 additions and 1110 deletions

View File

@@ -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