[llvm-commits] [parallel] CVS: llvm/runtime/libpng/scripts/SCOPTIONS.ppc descrip.mms libpng-config-body.in libpng-config-head.in libpng.icc libpng.pc.in makefile.32sunu makefile.64sunu makefile.acorn makefile.aix makefile.amiga makefile.atari makefile.bc32 makefile.bd32 makefile.beos makefile.bor makefile.cygwin makefile.darwin makefile.dec makefile.dj2 makefile.freebsd makefile.gcc makefile.gcmmx makefile.hpgcc makefile.hpux makefile.ibmc makefile.intel makefile.knr makefile.linux makefile.macosx makefile.mips makefile.msc makefile.ne12bsd makefile.netbsd makefile.openbsd makefile.os2 makefile.sco makefile.sggcc makefile.sgi makefile.so9 makefile.solaris makefile.std makefile.sunos makefile.tc3 makefile.vcawin32 makefile.vcwin32 makefile.watcom makevms.com pngdef.pas pngos2.def smakefile.ppc
Misha Brukman
brukman at cs.uiuc.edu
Mon Mar 1 18:27:07 PST 2004
Changes in directory llvm/runtime/libpng/scripts:
SCOPTIONS.ppc added (r1.1.2.1)
descrip.mms added (r1.1.2.1)
libpng-config-body.in added (r1.1.2.1)
libpng-config-head.in added (r1.1.2.1)
libpng.icc added (r1.1.2.1)
libpng.pc.in added (r1.1.2.1)
makefile.32sunu added (r1.1.2.1)
makefile.64sunu added (r1.1.2.1)
makefile.acorn added (r1.1.2.1)
makefile.aix added (r1.1.2.1)
makefile.amiga added (r1.1.2.1)
makefile.atari added (r1.1.2.1)
makefile.bc32 added (r1.1.2.1)
makefile.bd32 added (r1.1.2.1)
makefile.beos added (r1.1.2.1)
makefile.bor added (r1.1.2.1)
makefile.cygwin added (r1.1.2.1)
makefile.darwin added (r1.1.2.1)
makefile.dec added (r1.1.2.1)
makefile.dj2 added (r1.1.2.1)
makefile.freebsd added (r1.1.2.1)
makefile.gcc added (r1.1.2.1)
makefile.gcmmx added (r1.1.2.1)
makefile.hpgcc added (r1.1.2.1)
makefile.hpux added (r1.1.2.1)
makefile.ibmc added (r1.1.2.1)
makefile.intel added (r1.1.2.1)
makefile.knr added (r1.1.2.1)
makefile.linux added (r1.1.2.1)
makefile.macosx added (r1.1.2.1)
makefile.mips added (r1.1.2.1)
makefile.msc added (r1.1.2.1)
makefile.ne12bsd added (r1.1.2.1)
makefile.netbsd added (r1.1.2.1)
makefile.openbsd added (r1.1.2.1)
makefile.os2 added (r1.1.2.1)
makefile.sco added (r1.1.2.1)
makefile.sggcc added (r1.1.2.1)
makefile.sgi added (r1.1.2.1)
makefile.so9 added (r1.1.2.1)
makefile.solaris added (r1.1.2.1)
makefile.std added (r1.1.2.1)
makefile.sunos added (r1.1.2.1)
makefile.tc3 added (r1.1.2.1)
makefile.vcawin32 added (r1.1.2.1)
makefile.vcwin32 added (r1.1.2.1)
makefile.watcom added (r1.1.2.1)
makevms.com added (r1.1.2.1)
pngdef.pas added (r1.1.2.1)
pngos2.def added (r1.1.2.1)
smakefile.ppc added (r1.1.2.1)
---
Log message:
Merge from trunk
---
Diffs of the changes: (+6998 -0)
Index: llvm/runtime/libpng/scripts/SCOPTIONS.ppc
diff -c /dev/null llvm/runtime/libpng/scripts/SCOPTIONS.ppc:1.1.2.1
*** /dev/null Mon Mar 1 17:58:57 2004
--- llvm/runtime/libpng/scripts/SCOPTIONS.ppc Mon Mar 1 17:58:46 2004
***************
*** 0 ****
--- 1,7 ----
+ OPTIMIZE
+ OPTPEEP
+ OPTTIME
+ OPTSCHED
+ AUTOREGISTER
+ PARMS=REGISTERS
+ INCLUDEDIR=hlp:ppc/include
Index: llvm/runtime/libpng/scripts/descrip.mms
diff -c /dev/null llvm/runtime/libpng/scripts/descrip.mms:1.1.2.1
*** /dev/null Mon Mar 1 17:58:57 2004
--- llvm/runtime/libpng/scripts/descrip.mms Mon Mar 1 17:58:47 2004
***************
*** 0 ****
--- 1,52 ----
+
+ cc_defs = /inc=$(ZLIBSRC)
+ c_deb =
+
+ .ifdef __DECC__
+ pref = /prefix=all
+ .endif
+
+
+
+ OBJS = png.obj, pngset.obj, pngget.obj, pngrutil.obj, pngtrans.obj,\
+ pngwutil.obj, pngread.obj, pngmem.obj, pngwrite.obj, pngrtran.obj,\
+ pngwtran.obj, pngrio.obj, pngwio.obj, pngerror.obj, pngpread.obj
+
+
+ CFLAGS= $(C_DEB) $(CC_DEFS) $(PREF)
+
+ all : pngtest.exe libpng.olb
+ @ write sys$output " pngtest available"
+
+ libpng.olb : libpng.olb($(OBJS))
+ @ write sys$output " Libpng available"
+
+
+ pngtest.exe : pngtest.obj libpng.olb
+ link pngtest,libpng.olb/lib,$(ZLIBSRC)libz.olb/lib
+
+ test : pngtest.exe
+ run pngtest
+
+ clean :
+ delete *.obj;*,*.exe;*
+
+
+ # Other dependencies.
+ png.obj : png.h, pngconf.h
+ pngpread.obj : png.h, pngconf.h
+ pngset.obj : png.h, pngconf.h
+ pngget.obj : png.h, pngconf.h
+ pngread.obj : png.h, pngconf.h
+ pngrtran.obj : png.h, pngconf.h
+ pngrutil.obj : png.h, pngconf.h
+ pngerror.obj : png.h, pngconf.h
+ pngmem.obj : png.h, pngconf.h
+ pngrio.obj : png.h, pngconf.h
+ pngwio.obj : png.h, pngconf.h
+ pngtest.obj : png.h, pngconf.h
+ pngtrans.obj : png.h, pngconf.h
+ pngwrite.obj : png.h, pngconf.h
+ pngwtran.obj : png.h, pngconf.h
+ pngwutil.obj : png.h, pngconf.h
+
Index: llvm/runtime/libpng/scripts/libpng-config-body.in
diff -c /dev/null llvm/runtime/libpng/scripts/libpng-config-body.in:1.1.2.1
*** /dev/null Mon Mar 1 17:58:57 2004
--- llvm/runtime/libpng/scripts/libpng-config-body.in Mon Mar 1 17:58:47 2004
***************
*** 0 ****
--- 1,96 ----
+
+ usage()
+ {
+ cat <<EOF
+ Usage: libpng-config [OPTION] ...
+
+ Known values for OPTION are:
+
+ --prefix print libpng prefix
+ --libdir print path to directory containing library
+ --libs print library linking information
+ --ccopts print compiler options
+ --cppflags print pre-processor flags
+ --cflags print preprocessor flags, I_opts, and compiler options
+ --I_opts print "-I" include options
+ --L_opts print linker "-L" flags for dynamic linking
+ --R_opts print dynamic linker "-R" or "-rpath" flags
+ --ldopts print linker options
+ --ldflags print linker flags (ldopts, L_opts, R_opts, and libs)
+ --static revise subsequent outputs for static linking
+ --help print this help and exit
+ --version print version information
+ EOF
+
+ exit $1
+ }
+
+ if test $# -eq 0; then
+ usage 1
+ fi
+
+ while test $# -gt 0; do
+ case "$1" in
+
+ --prefix)
+ echo ${prefix}
+ ;;
+
+ --version)
+ echo ${version}
+ exit 0
+ ;;
+
+ --help)
+ usage 0
+ ;;
+
+ --ccopts)
+ echo ${ccopts}
+ ;;
+
+ --cppflags)
+ echo ${cppflags}
+ ;;
+
+ --cflags)
+ echo ${I_opts} ${cppflags} ${ccopts}
+ ;;
+
+ --libdir)
+ echo ${libdir}
+ ;;
+
+ --libs)
+ echo ${libs}
+ ;;
+
+ --I_opts)
+ echo ${I_opts}
+ ;;
+
+ --L_opts)
+ echo ${L_opts}
+ ;;
+
+ --R_opts)
+ echo ${R_opts}
+ ;;
+
+ --ldflags)
+ echo ${ldflags} ${L_opts} ${R_opts} ${libs}
+ ;;
+
+ --static)
+ R_opts=""
+ ;;
+
+ *)
+ usage
+ exit 1
+ ;;
+ esac
+ shift
+ done
+
+ exit 0
Index: llvm/runtime/libpng/scripts/libpng-config-head.in
diff -c /dev/null llvm/runtime/libpng/scripts/libpng-config-head.in:1.1.2.1
*** /dev/null Mon Mar 1 17:58:57 2004
--- llvm/runtime/libpng/scripts/libpng-config-head.in Mon Mar 1 17:58:47 2004
***************
*** 0 ****
--- 1,21 ----
+ #! /bin/sh
+
+ # libpng-config
+ # provides configuration info for libpng.
+
+ # Copyright (C) 2002 Glenn Randers-Pehrson
+ # For conditions of distribution and use, see copyright notice in png.h
+
+ # Modeled after libxml-config.
+
+ version=1.2.5
+ prefix=""
+ libdir=""
+ libs=""
+ I_opts=""
+ L_opts=""
+ R_opts=""
+ cppflags=""
+ ccopts=""
+ ldopts=""
+
Index: llvm/runtime/libpng/scripts/libpng.icc
diff -c /dev/null llvm/runtime/libpng/scripts/libpng.icc:1.1.2.1
*** /dev/null Mon Mar 1 17:58:57 2004
--- llvm/runtime/libpng/scripts/libpng.icc Mon Mar 1 17:58:47 2004
***************
*** 0 ****
--- 1,44 ----
+ // Project file for libpng (static)
+ // IBM VisualAge/C++ version 4.0 or later
+ // Copyright (C) 2000 Cosmin Truta
+ // For conditions of distribution and use, see copyright notice in png.h
+ // Notes:
+ // All modules are compiled in C mode
+ // Tested with IBM VAC++ 4.0 under Win32
+ // Expected to work with IBM VAC++ 4.0 or later under OS/2 and Win32
+ // Can be easily adapted for IBM VAC++ 4.0 or later under AIX
+ // For conditions of distribution and use, see copyright notice in png.h
+
+ option incl(searchpath, "../zlib"), opt(level, "2"),
+ link(libsearchpath, "../zlib")
+ {
+ target type(lib) "libpng.lib"
+ {
+ source type(c) "png.c"
+ source type(c) "pngerror.c"
+ source type(c) "pngget.c"
+ source type(c) "pngmem.c"
+ source type(c) "pngpread.c"
+ source type(c) "pngread.c"
+ source type(c) "pngrio.c"
+ source type(c) "pngrtran.c"
+ source type(c) "pngrutil.c"
+ source type(c) "pngset.c"
+ source type(c) "pngtrans.c"
+ source type(c) "pngwio.c"
+ source type(c) "pngwrite.c"
+ source type(c) "pngwtran.c"
+ source type(c) "pngwutil.c"
+ }
+ }
+
+ option incl(searchpath, "../zlib"), opt(level, "2"),
+ link(libsearchpath, "../zlib")
+ {
+ target type(exe) "pngtest.exe"
+ {
+ source type(c) "pngtest.c"
+ source type(lib) "libpng.lib"
+ source type(lib) "zlib.lib"
+ }
+ }
Index: llvm/runtime/libpng/scripts/libpng.pc.in
diff -c /dev/null llvm/runtime/libpng/scripts/libpng.pc.in:1.1.2.1
*** /dev/null Mon Mar 1 17:58:57 2004
--- llvm/runtime/libpng/scripts/libpng.pc.in Mon Mar 1 17:58:47 2004
***************
*** 0 ****
--- 1,11 ----
+
+ prefix=@PREFIX@
+ exec_prefix=${prefix}
+ libdir=${exec_prefix}/lib
+ includedir=${exec_prefix}/include
+
+ Name: libpng12
+ Description: Loads and saves PNG files
+ Version: 1.2.5
+ Libs: -L${libdir} -lpng12 -lz -lm
+ Cflags: -I${includedir}/libpng12
Index: llvm/runtime/libpng/scripts/makefile.32sunu
diff -c /dev/null llvm/runtime/libpng/scripts/makefile.32sunu:1.1.2.1
*** /dev/null Mon Mar 1 17:58:57 2004
--- llvm/runtime/libpng/scripts/makefile.32sunu Mon Mar 1 17:58:47 2004
***************
*** 0 ****
--- 1,224 ----
+ # makefile for libpng on Solaris 2.x with cc
+ # Contributed by William L. Sebok, based on makefile.linux
+ # Copyright (C) 2002 Glenn Randers-Pehrson
+ # Copyright (C) 1998 Greg Roelofs
+ # Copyright (C) 1996, 1997 Andreas Dilger
+ # For conditions of distribution and use, see copyright notice in png.h
+
+ CC=cc
+ SUN_CC_FLAGS=-fast -xtarget=ultra
+ SUN_LD_FLAGS=-fast -xtarget=ultra
+
+ # where make install puts libpng.a, libpng12.so and libpng12/png.h
+ prefix=/a
+
+ # Where the zlib library and include files are located
+ # Changing these to ../zlib poses a security risk. If you want
+ # to have zlib in an adjacent directory, specify the full path instead of "..".
+ #ZLIBLIB=../zlib
+ #ZLIBINC=../zlib
+
+ ZLIBLIB=/usr/lib
+ ZLIBINC=/usr/include
+
+ WARNMORE=-Wwrite-strings -Wpointer-arith -Wshadow \
+ -Wmissing-declarations -Wtraditional -Wcast-align \
+ -Wstrict-prototypes -Wmissing-prototypes #-Wconversion
+ CFLAGS=-I$(ZLIBINC) $(SUN_CC_FLAGS) \
+ # $(WARNMORE) -g -DPNG_DEBUG=5
+ LDFLAGS=-L. -R. $(SUN_LD_FLAGS) -L$(ZLIBLIB) -R$(ZLIBLIB) -lpng12 -lz -lm
+
+ #RANLIB=ranlib
+ RANLIB=echo
+
+ LIBNAME=libpng12
+ PNGMAJ = 0
+ PNGMIN = 1.2.5
+ PNGVER = $(PNGMAJ).$(PNGMIN)
+
+ INCPATH=$(prefix)/include
+ LIBPATH=$(prefix)/lib
+ MANPATH=$(prefix)/man
+ BINPATH=$(prefix)/bin
+
+ # override DESTDIR= on the make install command line to easily support
+ # installing into a temporary location. Example:
+ #
+ # make install DESTDIR=/tmp/build/libpng
+ #
+ # If you're going to install into a temporary location
+ # via DESTDIR, $(DESTDIR)$(prefix) must already exist before
+ # you execute make install.
+ DESTDIR=
+
+ DB=$(DESTDIR)$(BINPATH)
+ DI=$(DESTDIR)$(INCPATH)
+ DL=$(DESTDIR)$(LIBPATH)
+ DM=$(DESTDIR)$(MANPATH)
+
+ 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
+
+ OBJSDLL = $(OBJS:.o=.pic.o)
+
+ .SUFFIXES: .c .o .pic.o
+
+ .c.pic.o:
+ $(CC) -c $(CFLAGS) -KPIC -o $@ $*.c
+
+ all: libpng.a $(LIBNAME).so pngtest libpng.pc libpng-config
+
+ libpng.a: $(OBJS)
+ ar rc $@ $(OBJS)
+ $(RANLIB) $@
+
+ libpng.pc:
+ cat scripts/libpng.pc.in | sed -e s\!@PREFIX@!$(prefix)! > libpng.pc
+
+ libpng-config:
+ ( cat scripts/libpng-config-head.in; \
+ echo prefix=\"$(prefix)\"; \
+ echo libdir=\"$(LIBPATH)\"; \
+ echo I_opts=\"-I$(INCPATH)/$(LIBNAME)\"; \
+ echo L_opts=\"-L$(LIBPATH)\"; \
+ echo R_opts=\"-R$(LIBPATH)\"; \
+ echo ccopts=\"-xtarget=ultra\"; \
+ echo ldopts=\"-xtarget=ultra\"; \
+ echo libs=\"-lpng12 -lz -lm\"; \
+ cat scripts/libpng-config-body.in ) > libpng-config
+ chmod +x libpng-config
+
+ $(LIBNAME).so: $(LIBNAME).so.$(PNGMAJ)
+ ln -f -s $(LIBNAME).so.$(PNGMAJ) $(LIBNAME).so
+
+ $(LIBNAME).so.$(PNGMAJ): $(LIBNAME).so.$(PNGVER)
+ ln -f -s $(LIBNAME).so.$(PNGVER) $(LIBNAME).so.$(PNGMAJ)
+
+ $(LIBNAME).so.$(PNGVER): $(OBJSDLL)
+ @case "`type ld`" in *ucb*) \
+ echo; \
+ echo '## WARNING:'; \
+ echo '## The commands "CC" and "LD" must NOT refer to /usr/ucb/cc'; \
+ echo '## and /usr/ucb/ld. If they do, you need to adjust your PATH'; \
+ echo '## environment variable to put /usr/ccs/bin ahead of /usr/ucb.'; \
+ echo '## The environment variable LD_LIBRARY_PATH should not be set'; \
+ echo '## at all. If it is, things are likely to break because of'; \
+ echo '## the libucb dependency that is created.'; \
+ echo; \
+ ;; \
+ esac
+ $(LD) -G -L$(ZLIBLIB) -R$(ZLIBLIB) -h $(LIBNAME).so.$(PNGMAJ) \
+ -o $(LIBNAME).so.$(PNGVER) $(OBJSDLL)
+
+ libpng.so.3.$(PNGMIN): $(OBJS)
+ $(LD) -G -L$(ZLIBLIB) -R$(ZLIBLIB) -h libpng.so.3 \
+ -o libpng.so.3.$(PNGMIN) $(OBJSDLL)
+
+ pngtest: pngtest.o $(LIBNAME).so
+ $(CC) -o pngtest $(CFLAGS) pngtest.o $(LDFLAGS)
+
+ test: pngtest
+ ./pngtest
+
+ install-headers: png.h pngconf.h
+ - at if [ ! -d $(DI) ]; then mkdir $(DI); fi
+ - at if [ ! -d $(DI)/$(LIBNAME) ]; then mkdir $(DI)/$(LIBNAME); fi
+ cp png.h pngconf.h $(DI)/$(LIBNAME)
+ chmod 644 $(DI)/$(LIBNAME)/png.h $(DI)/$(LIBNAME)/pngconf.h
+ -@/bin/rm -f $(DI)/png.h $(DI)/pngconf.h
+ -@/bin/rm $(DI)/libpng
+ (cd $(DI); ln -f -s $(LIBNAME) libpng; ln -f -s $(LIBNAME)/* .)
+
+ install-static: install-headers libpng.a
+ - at if [ ! -d $(DL) ]; then mkdir $(DL); fi
+ cp libpng.a $(DL)/$(LIBNAME).a
+ chmod 644 $(DL)/$(LIBNAME).a
+ -@/bin/rm -f $(DL)/libpng.a
+ (cd $(DL); ln -f -s $(LIBNAME).a libpng.a)
+
+ install-shared: install-headers $(LIBNAME).so.$(PNGVER) libpng.pc \
+ libpng.so.3
+ - at if [ ! -d $(DL) ]; then mkdir $(DL); fi
+ -@/bin/rm -f $(DL)/$(LIBNAME).so.$(PNGVER)* $(DL)/$(LIBNAME).so
+ -@/bin/rm -f $(DL)/libpng.so
+ -@/bin/rm -f $(DL)/libpng.so.3
+ -@/bin/rm -f $(DL)/libpng.so.3.$(PNGVER)*
+ cp $(LIBNAME).so.$(PNGVER) $(DL)
+ cp libpng.so.3.$(PNGMIN) $(DL)
+ chmod 755 $(DL)/$(LIBNAME).so.$(PNGVER)
+ chmod 755 $(DL)/libpng.so.3.$(PNGMIN)
+ (cd $(DL); \
+ ln -f -s libpng.so.3.$(PNGMIN) libpng.so.3; \
+ ln -f -s libpng.so.3 libpng.so; \
+ ln -f -s $(LIBNAME).so.$(PNGVER) $(LIBNAME).so.$(PNGMAJ); \
+ ln -f -s $(LIBNAME).so.$(PNGMAJ) $(LIBNAME).so)
+ - at if [ ! -d $(DL)/pkgconfig ]; then mkdir $(DL)/pkgconfig; fi
+ -@/bin/rm -f $(DL)/pkgconfig/libpng12.pc
+ -@/bin/rm -f $(DL)/pkgconfig/libpng.pc
+ cp libpng.pc $(DL)/pkgconfig/libpng12.pc
+ chmod 644 $(DL)/pkgconfig/libpng12.pc
+ (cd $(DL)/pkgconfig; ln -f -s libpng12.pc libpng.pc)
+
+ install-man: libpng.3 libpngpf.3 png.5
+ - at if [ ! -d $(DM) ]; then mkdir $(DM); fi
+ - at if [ ! -d $(DM)/man3 ]; then mkdir $(DM)/man3; fi
+ -@/bin/rm -f $(DM)/man3/libpng.3
+ -@/bin/rm -f $(DM)/man3/libpngpf.3
+ cp libpng.3 $(DM)/man3
+ cp libpngpf.3 $(DM)/man3
+ - at if [ ! -d $(DM)/man5 ]; then mkdir $(DM)/man5; fi
+ -@/bin/rm -f $(DM)/man5/png.5
+ cp png.5 $(DM)/man5
+
+ install-config: libpng-config
+ - at if [ ! -d $(DB) ]; then mkdir $(DB); fi
+ -@/bin/rm -f $(DB)/libpng-config
+ -@/bin/rm -f $(DB)/libpng12-config
+ cp libpng-config $(DB)/libpng12-config
+ chmod 755 $(DB)/libpng12-config
+ (cd $(DB); ln -sf libpng12-config libpng-config)
+
+ install: install-static install-shared install-man install-config
+
+ # If you installed in $(DESTDIR), test-installed won't work until you
+ # move the library to its final location.
+
+ test-installed:
+ echo
+ echo Testing installed dynamic shared library.
+ $(CC) $(SUN_CC_FLAGS) -I$(ZLIBINC) \
+ `$(BINPATH)/libpng12-config --cflags` pngtest.c \
+ -o pngtesti `$(BINPATH)/libpng12-config --ldflags` \
+ $(SUN_LD_FLAGS) -L$(ZLIBLIB) -R$(ZLIBLIB)
+ ./pngtesti pngtest.png
+
+ clean:
+ /bin/rm -f *.o libpng.a pngtest pngtesti pngout.png \
+ libpng-config $(LIBNAME).so $(LIBNAME).so.$(PNGMAJ)* \
+ libpng.so.3.$(PNGMIN) \
+ libpng.pc
+
+ DOCS = ANNOUNCE CHANGES INSTALL KNOWNBUG LICENSE README TODO Y2KINFO
+ writelock:
+ chmod a-w *.[ch35] $(DOCS) scripts/*
+
+ # DO NOT DELETE THIS LINE -- make depend depends on it.
+
+ png.o png.pic.o: png.h pngconf.h
+ pngerror.o pngerror.pic.o: png.h pngconf.h
+ pngrio.o pngrio.pic.o: png.h pngconf.h
+ pngwio.o pngwio.pic.o: png.h pngconf.h
+ pngmem.o pngmem.pic.o: png.h pngconf.h
+ pngset.o pngset.pic.o: png.h pngconf.h
+ pngget.o pngget.pic.o: png.h pngconf.h
+ pngread.o pngread.pic.o: png.h pngconf.h
+ pngrtran.o pngrtran.pic.o: png.h pngconf.h
+ pngrutil.o pngrutil.pic.o: png.h pngconf.h
+ pngtrans.o pngtrans.pic.o: png.h pngconf.h
+ pngwrite.o pngwrite.pic.o: png.h pngconf.h
+ pngwtran.o pngwtran.pic.o: png.h pngconf.h
+ pngwutil.o pngwutil.pic.o: png.h pngconf.h
+ pngpread.o pngpread.pic.o: png.h pngconf.h
+
+ pngtest.o: png.h pngconf.h
Index: llvm/runtime/libpng/scripts/makefile.64sunu
diff -c /dev/null llvm/runtime/libpng/scripts/makefile.64sunu:1.1.2.1
*** /dev/null Mon Mar 1 17:58:57 2004
--- llvm/runtime/libpng/scripts/makefile.64sunu Mon Mar 1 17:58:47 2004
***************
*** 0 ****
--- 1,224 ----
+ # makefile for libpng on Solaris 2.x with cc
+ # Contributed by William L. Sebok, based on makefile.linux
+ # Copyright (C) 2002 Glenn Randers-Pehrson
+ # Copyright (C) 1998 Greg Roelofs
+ # Copyright (C) 1996, 1997 Andreas Dilger
+ # For conditions of distribution and use, see copyright notice in png.h
+
+ CC=cc
+ SUN_CC_FLAGS=-fast -xtarget=ultra -xarch=v9
+ SUN_LD_FLAGS=-fast -xtarget=ultra -xarch=v9
+
+ # where make install puts libpng.a, libpng12.so and libpng12/png.h
+ prefix=/a
+
+ # Where the zlib library and include files are located
+ # Changing these to ../zlib poses a security risk. If you want
+ # to have zlib in an adjacent directory, specify the full path instead of "..".
+ #ZLIBLIB=../zlib
+ #ZLIBINC=../zlib
+
+ ZLIBLIB=/usr/lib
+ ZLIBINC=/usr/include
+
+ WARNMORE=-Wwrite-strings -Wpointer-arith -Wshadow \
+ -Wmissing-declarations -Wtraditional -Wcast-align \
+ -Wstrict-prototypes -Wmissing-prototypes #-Wconversion
+ CFLAGS=-I$(ZLIBINC) $(SUN_CC_FLAGS) \
+ # $(WARNMORE) -g -DPNG_DEBUG=5
+ LDFLAGS=-L. -R. $(SUN_LD_FLAGS) -L$(ZLIBLIB) -R$(ZLIBLIB) -lpng12 -lz -lm
+
+ #RANLIB=ranlib
+ RANLIB=echo
+
+ LIBNAME=libpng12
+ PNGMAJ = 0
+ PNGMIN = 1.2.5
+ PNGVER = $(PNGMAJ).$(PNGMIN)
+
+ INCPATH=$(prefix)/include
+ LIBPATH=$(prefix)/lib
+ MANPATH=$(prefix)/man
+ BINPATH=$(prefix)/bin
+
+ # override DESTDIR= on the make install command line to easily support
+ # installing into a temporary location. Example:
+ #
+ # make install DESTDIR=/tmp/build/libpng
+ #
+ # If you're going to install into a temporary location
+ # via DESTDIR, $(DESTDIR)$(prefix) must already exist before
+ # you execute make install.
+ DESTDIR=
+
+ DB=$(DESTDIR)$(BINPATH)
+ DI=$(DESTDIR)$(INCPATH)
+ DL=$(DESTDIR)$(LIBPATH)
+ DM=$(DESTDIR)$(MANPATH)
+
+ 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
+
+ OBJSDLL = $(OBJS:.o=.pic.o)
+
+ .SUFFIXES: .c .o .pic.o
+
+ .c.pic.o:
+ $(CC) -c $(CFLAGS) -KPIC -o $@ $*.c
+
+ all: libpng.a $(LIBNAME).so pngtest libpng.pc libpng-config
+
+ libpng.a: $(OBJS)
+ ar rc $@ $(OBJS)
+ $(RANLIB) $@
+
+ libpng.pc:
+ cat scripts/libpng.pc.in | sed -e s\!@PREFIX@!$(prefix)! > libpng.pc
+
+ libpng-config:
+ ( cat scripts/libpng-config-head.in; \
+ echo prefix=\"$(prefix)\"; \
+ echo libdir=\"$(LIBPATH)\"; \
+ echo I_opts=\"-I$(INCPATH)/$(LIBNAME)\"; \
+ echo L_opts=\"-L$(LIBPATH)\"; \
+ echo R_opts=\"-R$(LIBPATH)\"; \
+ echo ccopts=\"-xtarget=ultra -xarch=v9\"; \
+ echo ldopts=\"-xtarget=ultra -xarch=v9\"; \
+ echo libs=\"-lpng12 -lz -lm\"; \
+ cat scripts/libpng-config-body.in ) > libpng-config
+ chmod +x libpng-config
+
+ $(LIBNAME).so: $(LIBNAME).so.$(PNGMAJ)
+ ln -f -s $(LIBNAME).so.$(PNGMAJ) $(LIBNAME).so
+
+ $(LIBNAME).so.$(PNGMAJ): $(LIBNAME).so.$(PNGVER)
+ ln -f -s $(LIBNAME).so.$(PNGVER) $(LIBNAME).so.$(PNGMAJ)
+
+ $(LIBNAME).so.$(PNGVER): $(OBJSDLL)
+ @case "`type ld`" in *ucb*) \
+ echo; \
+ echo '## WARNING:'; \
+ echo '## The commands "CC" and "LD" must NOT refer to /usr/ucb/cc'; \
+ echo '## and /usr/ucb/ld. If they do, you need to adjust your PATH'; \
+ echo '## environment variable to put /usr/ccs/bin ahead of /usr/ucb.'; \
+ echo '## The environment variable LD_LIBRARY_PATH should not be set'; \
+ echo '## at all. If it is, things are likely to break because of'; \
+ echo '## the libucb dependency that is created.'; \
+ echo; \
+ ;; \
+ esac
+ $(LD) -G -L$(ZLIBLIB) -R$(ZLIBLIB) -h $(LIBNAME).so.$(PNGMAJ) \
+ -o $(LIBNAME).so.$(PNGVER) $(OBJSDLL)
+
+ libpng.so.3.$(PNGMIN): $(OBJSDLL)
+ $(LD) -G -L$(ZLIBLIB) -R$(ZLIBLIB) -h libpng.so.3 \
+ -o libpng.so.3.$(PNGMIN) $(OBJSDLL)
+
+ pngtest: pngtest.o $(LIBNAME).so
+ $(CC) -o pngtest $(CFLAGS) pngtest.o $(LDFLAGS)
+
+ test: pngtest
+ ./pngtest
+
+ install-headers: png.h pngconf.h
+ - at if [ ! -d $(DI) ]; then mkdir $(DI); fi
+ - at if [ ! -d $(DI)/$(LIBNAME) ]; then mkdir $(DI)/$(LIBNAME); fi
+ cp png.h pngconf.h $(DI)/$(LIBNAME)
+ chmod 644 $(DI)/$(LIBNAME)/png.h $(DI)/$(LIBNAME)/pngconf.h
+ -@/bin/rm -f $(DI)/png.h $(DI)/pngconf.h
+ -@/bin/rm $(DI)/libpng
+ (cd $(DI); ln -f -s $(LIBNAME) libpng; ln -f -s $(LIBNAME)/* .)
+
+ install-static: install-headers libpng.a
+ - at if [ ! -d $(DL) ]; then mkdir $(DL); fi
+ cp libpng.a $(DL)/$(LIBNAME).a
+ chmod 644 $(DL)/$(LIBNAME).a
+ -@/bin/rm -f $(DL)/libpng.a
+ (cd $(DL); ln -f -s $(LIBNAME).a libpng.a)
+
+ install-shared: install-headers $(LIBNAME).so.$(PNGVER) libpng.pc \
+ libpng.so.3.$(PNGMIN)
+ - at if [ ! -d $(DL) ]; then mkdir $(DL); fi
+ -@/bin/rm -f $(DL)/$(LIBNAME).so.$(PNGMAJ).$(PNGVER)* $(DL)/$(LIBNAME).so
+ -@/bin/rm -f $(DL)/libpng.so
+ -@/bin/rm -f $(DL)/libpng.so.3
+ -@/bin/rm -f $(DL)/libpng.so.3.$(PNGVER)*
+ cp $(LIBNAME).so.$(PNGVER) $(DL)
+ cp libpng.so.3.$(PNGMIN) $(DL)
+ chmod 755 $(DL)/$(LIBNAME).so.$(PNGVER)
+ chmod 755 $(DL)/libpng.so.3.$(PNGMIN)
+ (cd $(DL); \
+ ln -f -s libpng.so.3.$(PNGMIN) libpng.so.3; \
+ ln -f -s libpng.so.3 libpng.so; \
+ ln -f -s $(LIBNAME).so.$(PNGVER) $(LIBNAME).so.$(PNGMAJ); \
+ ln -f -s $(LIBNAME).so.$(PNGMAJ) $(LIBNAME).so)
+ - at if [ ! -d $(DL)/pkgconfig ]; then mkdir $(DL)/pkgconfig; fi
+ -@/bin/rm -f $(DL)/pkgconfig/$(LIBNAME).pc
+ -@/bin/rm -f $(DL)/pkgconfig/libpng.pc
+ cp libpng.pc $(DL)/pkgconfig/$(LIBNAME).pc
+ chmod 644 $(DL)/pkgconfig/$(LIBNAME).pc
+ (cd $(DL)/pkgconfig; ln -f -s $(LIBNAME).pc libpng.pc)
+
+ install-man: libpng.3 libpngpf.3 png.5
+ - at if [ ! -d $(DM) ]; then mkdir $(DM); fi
+ - at if [ ! -d $(DM)/man3 ]; then mkdir $(DM)/man3; fi
+ -@/bin/rm -f $(DM)/man3/libpng.3
+ -@/bin/rm -f $(DM)/man3/libpngpf.3
+ cp libpng.3 $(DM)/man3
+ cp libpngpf.3 $(DM)/man3
+ - at if [ ! -d $(DM)/man5 ]; then mkdir $(DM)/man5; fi
+ -@/bin/rm -f $(DM)/man5/png.5
+ cp png.5 $(DM)/man5
+
+ install-config: libpng-config
+ - at if [ ! -d $(DB) ]; then mkdir $(DB); fi
+ -@/bin/rm -f $(DB)/libpng-config
+ -@/bin/rm -f $(DB)/$(LIBNAME)-config
+ cp libpng-config $(DB)/$(LIBNAME)-config
+ chmod 755 $(DB)/$(LIBNAME)-config
+ (cd $(DB); ln -sf $(LIBNAME)-config libpng-config)
+
+ install: install-static install-shared install-man install-config
+
+ # If you installed in $(DESTDIR), test-installed won't work until you
+ # move the library to its final location.
+
+ test-installed:
+ echo
+ echo Testing installed dynamic shared library.
+ $(CC) $(SUN_CC_FLAGS) -I$(ZLIBINC) \
+ `$(BINPATH)/libpng12-config --cflags` pngtest.c \
+ -o pngtesti `$(BINPATH)/libpng12-config --ldflags ` \
+ $(SUN_LD_FLAGS) -L$(ZLIBLIB) -R$(ZLIBLIB)
+ ./pngtesti pngtest.png
+
+ clean:
+ /bin/rm -f *.o libpng.a pngtest pngtesti pngout.png \
+ libpng-config $(LIBNAME).so $(LIBNAME).so.$(PNGMAJ)* \
+ libpng.so.3.$(PNGMIN) \
+ libpng.pc
+
+ DOCS = ANNOUNCE CHANGES INSTALL KNOWNBUG LICENSE README TODO Y2KINFO
+ writelock:
+ chmod a-w *.[ch35] $(DOCS) scripts/*
+
+ # DO NOT DELETE THIS LINE -- make depend depends on it.
+
+ png.o png.pic.o: png.h pngconf.h
+ pngerror.o pngerror.pic.o: png.h pngconf.h
+ pngrio.o pngrio.pic.o: png.h pngconf.h
+ pngwio.o pngwio.pic.o: png.h pngconf.h
+ pngmem.o pngmem.pic.o: png.h pngconf.h
+ pngset.o pngset.pic.o: png.h pngconf.h
+ pngget.o pngget.pic.o: png.h pngconf.h
+ pngread.o pngread.pic.o: png.h pngconf.h
+ pngrtran.o pngrtran.pic.o: png.h pngconf.h
+ pngrutil.o pngrutil.pic.o: png.h pngconf.h
+ pngtrans.o pngtrans.pic.o: png.h pngconf.h
+ pngwrite.o pngwrite.pic.o: png.h pngconf.h
+ pngwtran.o pngwtran.pic.o: png.h pngconf.h
+ pngwutil.o pngwutil.pic.o: png.h pngconf.h
+ pngpread.o pngpread.pic.o: png.h pngconf.h
+
+ pngtest.o: png.h pngconf.h
Index: llvm/runtime/libpng/scripts/makefile.acorn
diff -c /dev/null llvm/runtime/libpng/scripts/makefile.acorn:1.1.2.1
*** /dev/null Mon Mar 1 17:58:58 2004
--- llvm/runtime/libpng/scripts/makefile.acorn Mon Mar 1 17:58:47 2004
***************
*** 0 ****
--- 1,51 ----
+ # Project: libpng
+
+
+ # Toolflags:
+ CCflags = -c -depend !Depend -IC:,Zlib: -g -throwback -DRISCOS -fnah
+ C++flags = -c -depend !Depend -IC: -throwback
+ Linkflags = -aif -c++ -o $@
+ ObjAsmflags = -throwback -NoCache -depend !Depend
+ CMHGflags =
+ LibFileflags = -c -l -o $@
+ Squeezeflags = -o $@
+
+
+ # Final targets:
+ @.libpng-lib: @.o.png @.o.pngerror @.o.pngrio @.o.pngwio @.o.pngmem \
+ @.o.pngpread @.o.pngset @.o.pngget @.o.pngread @.o.pngrtran \
+ @.o.pngrutil @.o.pngtrans @.o.pngwrite @.o.pngwtran @.o.pngwutil
+ LibFile $(LibFileflags) @.o.png @.o.pngerror @.o.pngrio @.o.pngrtran \
+ @.o.pngmem @.o.pngpread @.o.pngset @.o.pngget @.o.pngread @.o.pngwio \
+ @.o.pngrutil @.o.pngtrans @.o.pngwrite @.o.pngwtran @.o.pngwutil
+ @.mm-libpng-lib: @.mm.png @.mm.pngerror @.mm.pngrio @.mm.pngwio @.mm.pngmem \
+ @.mm.pngpread @.mm.pngset @.mm.pngget @.mm.pngread @.mm.pngrtran \
+ @.mm.pngrutil @.mm.pngtrans @.mm.pngwrite @.mm.pngwtran @.mm.pngwutil
+ LibFile $(LibFileflags) @.mm.png @.mm.pngerror @.mm.pngrio \
+ @.mm.pngwio @.mm.pngmem @.mm.pngpread @.mm.pngset @.mm.pngget \
+ @.mm.pngread @.mm.pngrtran @.mm.pngrutil @.mm.pngtrans @.mm.pngwrite \
+ @.mm.pngwtran @.mm.pngwutil
+
+
+ # User-editable dependencies:
+ # (C) Copyright 1997 Tom Tanner
+ Test: @.pngtest
+ <Prefix$Dir>.pngtest
+ @remove <Prefix$Dir>.pngtest
+
+ #It would be nice if you could stop "make" listing from here on!
+ @.pngtest: @.o.pngtest @.libpng-lib C:o.Stubs Zlib:zlib_lib
+ Link $(Linkflags) @.o.pngtest @.libpng-lib C:o.Stubs Zlib:zlib_lib
+
+ .SUFFIXES: .o .mm .c
+
+ .c.mm:
+ MemCheck.CC cc $(ccflags) -o $@ LibPng:$<
+ .c.o:
+ cc $(ccflags) -o $@ $<
+
+
+ # Static dependencies:
+
+
+ # Dynamic dependencies:
Index: llvm/runtime/libpng/scripts/makefile.aix
diff -c /dev/null llvm/runtime/libpng/scripts/makefile.aix:1.1.2.1
*** /dev/null Mon Mar 1 17:58:58 2004
--- llvm/runtime/libpng/scripts/makefile.aix Mon Mar 1 17:58:47 2004
***************
*** 0 ****
--- 1,104 ----
+ # makefile for libpng using gcc (generic, static library)
+ # Copyright (C) 2002 Glenn Randers-Pehrson
+ # Copyright (C) 2000 Cosmin Truta
+ # Copyright (C) 2000 Marc O. Gloor (AIX support added, from makefile.gcc)
+ # Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc.
+ # For conditions of distribution and use, see copyright notice in png.h
+
+ # Location of the zlib library and include files
+ ZLIBINC = ../zlib
+ ZLIBLIB = ../zlib
+
+ # Compiler, linker, lib and other tools
+ CC = gcc
+ LD = $(CC)
+ AR = ar rcs
+ RANLIB = ranlib
+ RM = rm -f
+
+ LIBNAME=libpng12
+ PNGMAJ = 0
+ PNGMIN = 1.2.5
+ PNGVER = $(PNGMAJ).$(PNGMIN)
+
+ prefix=/usr/local
+ INCPATH=$(prefix)/include
+ LIBPATH=$(prefix)/lib
+
+ # override DESTDIR= on the make install command line to easily support
+ # installing into a temporary location. Example:
+ #
+ # make install DESTDIR=/tmp/build/libpng
+ #
+ # If you're going to install into a temporary location
+ # via DESTDIR, $(DESTDIR)$(prefix) must already exist before
+ # you execute make install.
+ DESTDIR=
+
+ DI=$(DESTDIR)/$(INCPATH)
+ DL=$(DESTDIR)/$(LIBPATH)
+
+ CDEBUG = -g -DPNG_DEBUG=5
+ LDDEBUG =
+ CRELEASE = -O2
+ LDRELEASE = -s
+ WARNMORE=-Wall
+ CFLAGS = -I$(ZLIBINC) $(WARNMORE) $(CRELEASE)
+ LDFLAGS = -L. -L$(ZLIBLIB) -lpng -lz -lm $(LDRELEASE)
+
+ # File extensions
+ O=.o
+ A=.a
+ 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)
+
+ # Targets
+ all: libpng$(A) pngtest$(E)
+
+ $(LIBNAME)$(A): $(OBJS)
+ $(AR) $@ $(OBJS)
+ $(RANLIB) $@
+
+ test: pngtest$(E)
+ ./pngtest$(E)
+
+ pngtest$(E): pngtest$(O) $(LIBNAME)$(A)
+ $(LD) -o $@ pngtest$(O) $(LDFLAGS)
+
+ install: $(LIBNAME)$(A)
+ - at if [ ! -d $(DI) ]; then mkdir $(DI); fi
+ - at if [ ! -d $(DI)/libpng ]; then mkdir $(DI)/libpng; fi
+ - at if [ ! -d $(DL) ]; then mkdir $(DL); fi
+ - at rm $(DI)/png.h
+ - at rm $(DI)/pngconf.h
+ cp png.h pngconf.h $(DI)/libpng
+ chmod 644 $(DI)/libpng/png.h \
+ cp $(LIBNAME)$(A) $(DL)
+ (cd $(DL); ln -f -s $(LIBNAME)$(A) libpng$(A))
+ $(DI)/libpng/pngconf.h
+ (cd $(DI); ln -f -s libpng/* .;)
+
+ clean:
+ /bin/rm -f *.o $(LIBNAME)$(A) pngtest pngout.png
+
+ png$(O): png.h pngconf.h
+ pngerror$(O): png.h pngconf.h
+ pngget$(O): png.h pngconf.h
+ pngmem$(O): png.h pngconf.h
+ pngpread$(O): png.h pngconf.h
+ pngread$(O): png.h pngconf.h
+ pngrio$(O): png.h pngconf.h
+ pngrtran$(O): png.h pngconf.h
+ pngrutil$(O): png.h pngconf.h
+ pngset$(O): png.h pngconf.h
+ pngtest$(O): png.h pngconf.h
+ pngtrans$(O): png.h pngconf.h
+ pngwio$(O): png.h pngconf.h
+ pngwrite$(O): png.h pngconf.h
+ pngwtran$(O): png.h pngconf.h
+ pngwutil$(O): png.h pngconf.h
+
Index: llvm/runtime/libpng/scripts/makefile.amiga
diff -c /dev/null llvm/runtime/libpng/scripts/makefile.amiga:1.1.2.1
*** /dev/null Mon Mar 1 17:58:58 2004
--- llvm/runtime/libpng/scripts/makefile.amiga Mon Mar 1 17:58:47 2004
***************
*** 0 ****
--- 1,48 ----
+ # Commodore Amiga Makefile
+ # makefile for libpng and SAS C V6.5x compiler
+ # Copyright (C) 1995-2000 Wolf Faust
+ # For conditions of distribution and use, see copyright notice in png.h
+ #
+ # Note: Use #define PNG_READ_BIG_ENDIAN_SUPPORTED in pngconf.h
+ #
+ # Location/path of zlib include files
+ ZLIB=/zlib
+ #compiler
+ CC=sc
+ #compiler flags
+ # WARNING: a bug in V6.51 causes bad code with OPTGO
+ # So use V6.55 or set NOOPTGO!!!!!!!!!
+ CFLAGS= NOSTKCHK PARMS=REG OPTIMIZE OPTGO OPTPEEP OPTINLOCAL OPTINL\
+ OPTLOOP OPTRDEP=4 OPTDEP=4 OPTCOMP=4 INCLUDEDIR=$(ZLIB) \
+ DEFINE=PNG_INTERNAL
+ #linker flags
+ LDFLAGS= SD ND BATCH
+ #link libs
+ LDLIBS= libpng.lib libgz.lib LIB:scm.lib LIB:sc.lib Lib:amiga.lib
+ # linker
+ LN= slink
+ # file deletion command
+ RM= delete quiet
+ # library (.lib) file creation command
+ AR= oml
+ # make directory command
+ MKDIR= makedir
+
+ 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
+
+ all: libpng.lib pngtest
+
+ libpng.lib: $(OBJS)
+ -$(RM) libpng.lib
+ $(AR) libpng.lib r $(OBJS)
+
+ pngtest: pngtest.o libpng.lib
+ $(LN) <WITH <
+ $(LDFLAGS)
+ TO pngtest
+ FROM LIB:c.o pngtest.o
+ LIB $(LDLIBS)
+ <
+
Index: llvm/runtime/libpng/scripts/makefile.atari
diff -c /dev/null llvm/runtime/libpng/scripts/makefile.atari:1.1.2.1
*** /dev/null Mon Mar 1 17:58:58 2004
--- llvm/runtime/libpng/scripts/makefile.atari Mon Mar 1 17:58:47 2004
***************
*** 0 ****
--- 1,51 ----
+ # makefile for libpng
+ # 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
+ # modified for LC56/ATARI assumes libz.lib is in same dir and uses default
+ # rules for library management
+ #
+ CFLAGS=-I..\zlib -O
+ LBR = png.lib
+ LDFLAGS=-lpng -lz -lm
+
+ # where make install puts libpng.a and png.h
+ prefix=/usr/local
+ INCPATH=$(prefix)/include
+ LIBPATH=$(prefix)/lib
+
+ # override DESTDIR= on the make install command line to easily support
+ # installing into a temporary location. Example:
+ #
+ # make install DESTDIR=/tmp/build/libpng
+ #
+ # If you're going to install into a temporary location
+ # via DESTDIR, $(DESTDIR)$(prefix) must already exist before
+ # you execute make install.
+ DESTDIR=
+
+ OBJS = $(LBR)(png.o) $(LBR)(pngset.o) $(LBR)(pngget.o) $(LBR)(pngrutil.o)\
+ $(LBR)(pngtrans.o) $(LBR)(pngwutil.o)\
+ $(LBR)(pngread.o) $(LBR)(pngerror.o) $(LBR)(pngwrite.o)\
+ $(LBR)(pngrtran.o) $(LBR)(pngwtran.o)\
+ $(LBR)(pngmem.o) $(LBR)(pngrio.o) $(LBR)(pngwio.o) $(LBR)(pngpread.o)
+
+ all: $(LBR) pngtest.ttp
+
+ $(LBR): $(OBJS)
+
+ pngtest.ttp: pngtest.o $(LBR)
+ $(CC) $(CFLAGS) $(LDFLAGS) -o$@ pngtest.o
+
+ install: libpng.a
+ - at mkdir $(DESTDIR)$(INCPATH)
+ - at mkdir $(DESTDIR)$(INCPATH)/libpng
+ - at mkdir $(DESTDIR)$(LIBPATH)
+ - at rm -f $(DESTDIR)$(INCPATH)/png.h
+ - at rm -f $(DESTDIR)$(INCPATH)/pngconf.h
+ cp png.h $(DESTDIR)$(INCPATH)/libpng
+ cp pngconf.h $(DESTDIR)$(INCPATH)/libpng
+ chmod 644 $(DESTDIR)$(INCPATH)/libpng/png.h
+ chmod 644 $(DESTDIR)$(INCPATH)/libpng/pngconf.h
+ (cd $(DESTDIR)$(INCPATH); ln -f -s $(LIBNAME) libpng; \
+ ln -f -s $(LIBNAME)/* .)
Index: llvm/runtime/libpng/scripts/makefile.bc32
diff -c /dev/null llvm/runtime/libpng/scripts/makefile.bc32:1.1.2.1
*** /dev/null Mon Mar 1 17:58:58 2004
--- llvm/runtime/libpng/scripts/makefile.bc32 Mon Mar 1 17:58:47 2004
***************
*** 0 ****
--- 1,151 ----
+ # Makefile for libpng
+ # 32-bit Borland C++ (Note: All modules are compiled in C mode)
+ # To build the library, do:
+ # "make -fmakefile.bc32"
+ #
+ # -------------------- 32-bit Borland C++ --------------------
+
+ ### Absolutely necessary for this makefile to work
+ .AUTODEPEND
+
+ ## Where zlib.h, zconf.h and zlib.lib are
+ ZLIB_DIR=..\zlib
+
+
+ ## Compiler, linker and lib stuff
+ CC=bcc32
+ LD=bcc32
+ LIB=tlib
+
+ #TARGET_CPU=6
+ # 3 = 386, 4 = 486, 5 = Pentium etc.
+ !ifndef TARGET_CPU
+ TARGET_CPU=5
+ !endif
+
+ # Use this if you don't want Borland's fancy exception handling
+ NOEHLIB=noeh32.lib
+
+ !ifdef DEBUG
+ CDEBUG=-v
+ LDEBUG=-v
+ !else
+ CDEBUG=
+ LDEBUG=
+ !endif
+
+ # STACKOFLOW=1
+ !ifdef STACKOFLOW
+ CDEBUG=$(CDEBUG) -N
+ LDEBUG=$(LDEBUG) -N
+ !endif
+
+ # -X- turn on dependency generation in the object file
+ # -w set all warnings on
+ # -O2 optimize for speed
+ # -Z global optimization
+ CFLAGS=-O2 -Z -X- -w -I$(ZLIB_DIR) -$(TARGET_CPU) $(CDEBUG)
+
+ # -M generate map file
+ LDFLAGS=-M -L$(ZLIB_DIR) $(LDEBUG)
+
+
+ ## Variables
+ OBJS = \
+ png.obj \
+ pngerror.obj \
+ pngget.obj \
+ pngmem.obj \
+ pngpread.obj \
+ pngread.obj \
+ pngrio.obj \
+ pngrtran.obj \
+ pngrutil.obj \
+ pngset.obj \
+ pngtrans.obj \
+ pngwio.obj \
+ pngwrite.obj \
+ pngwtran.obj \
+ pngwutil.obj
+
+ LIBOBJS = \
+ +png.obj \
+ +pngerror.obj \
+ +pngget.obj \
+ +pngmem.obj \
+ +pngpread.obj \
+ +pngread.obj \
+ +pngrio.obj \
+ +pngrtran.obj \
+ +pngrutil.obj \
+ +pngset.obj \
+ +pngtrans.obj \
+ +pngwio.obj \
+ +pngwrite.obj \
+ +pngwtran.obj \
+ +pngwutil.obj
+
+ LIBNAME=libpng.lib
+
+
+ ## Implicit rules
+ # Braces let make "batch" calls to the compiler,
+ # 2 calls instead of 12; space is important.
+ .c.obj:
+ $(CC) $(CFLAGS) -c {$*.c }
+
+ .c.exe:
+ $(CC) $(CFLAGS) $(LDFLAGS) $*.c $(LIBNAME) zlib.lib $(NOEHLIB)
+
+ .obj.exe:
+ $(LD) $(LDFLAGS) $*.obj $(LIBNAME) zlib.lib $(NOEHLIB)
+
+
+ ## Major targets
+ all: libpng pngtest
+
+ libpng: $(LIBNAME)
+
+ pngtest: pngtest.exe
+
+ test: pngtest.exe
+ pngtest
+
+
+ ## Minor Targets
+
+ png.obj: png.c
+ pngerror.obj: pngerror.c
+ pngget.obj: pngget.c
+ pngmem.obj: pngmem.c
+ pngpread.obj: pngpread.c
+ pngread.obj: pngread.c
+ pngrio.obj: pngrio.c
+ pngrtran.obj: pngrtran.c
+ pngrutil.obj: pngrutil.c
+ pngset.obj: pngset.c
+ pngtrans.obj: pngtrans.c
+ pngwio.obj: pngwio.c
+ pngwrite.obj: pngwrite.c
+ pngwtran.obj: pngwtran.c
+ pngwutil.obj: pngwutil.c
+
+
+ $(LIBNAME): $(OBJS)
+ -del $(LIBNAME)
+ $(LIB) $(LIBNAME) @&&|
+ $(LIBOBJS), libpng
+ |
+
+
+ # Clean up anything else you want
+ clean:
+ -del *.obj
+ -del *.exe
+ -del *.lib
+ -del *.lst
+ -del *.map
+ -del *.tds
+
+
+ # End of makefile for libpng
Index: llvm/runtime/libpng/scripts/makefile.bd32
diff -c /dev/null llvm/runtime/libpng/scripts/makefile.bd32:1.1.2.1
*** /dev/null Mon Mar 1 17:58:58 2004
--- llvm/runtime/libpng/scripts/makefile.bd32 Mon Mar 1 17:58:47 2004
***************
*** 0 ****
--- 1,76 ----
+ # Makefile for png32bd.dll
+ # -------------------- 32-bit Borland C++ --------------------
+
+ # This makefile expects to find zlib.h and zlib32bd.lib in the
+ # $(ZLIBDIR) directory.
+
+ # The object files here are compiled with the "stdcall" calling convention.
+ # This DLL requires zlib32bd.lib to be compiled in the same way.
+
+ # Note that png32bd.dll exports the zlib functions adler32, crc32 and
+ # the deflate... and inflate... functions. It does not export the
+ # compress and uncompress functions, nor any of the gz... functions,
+ # since libpng does not call them.
+
+ .AUTODEPEND
+
+ ZLIBDIR=..\zlib
+ ZLIB=zlib32bd.lib
+ PNGDLL=png32bd.dll
+ PNGLIB=png32bd.lib
+
+ CC=bcc32
+ CFLAGS= -ps -O2 -N- -k- -d -r- -w-par -w-aus -I$(ZLIBDIR) \
+ -DPNG_NO_GLOBAL_ARRAYS #-DPNG_DEBUG=5
+ #LINK=tlink32
+ #LINK=ilink32
+ LINK=bcc32
+ #LINKFLAGS= -Tpd -aa -c
+ LINKFLAGS= -WDE
+ IMPLIB=implib
+
+ # Use this if you don't want Borland's fancy exception handling
+ NOEHLIB=noeh32.lib
+
+ .c.obj:
+ $(CC) -c $(CFLAGS) $<
+
+ .c.exe:
+ $(CC) $(CFLAGS) $< $(PNGLIB) $(NOEHLIB)
+
+
+ OBJ1=png.obj pngerror.obj pngget.obj pngmem.obj pngpread.obj
+ OBJ2=pngread.obj pngrio.obj pngrtran.obj pngrutil.obj pngset.obj
+ OBJ3=pngtrans.obj pngwio.obj pngwrite.obj pngwtran.obj pngwutil.obj
+
+ all: $(PNGDLL)
+
+ test: pngtest.exe
+ pngtest
+
+
+ $(PNGDLL): $(OBJ1) $(OBJ2) $(OBJ3) $(ZLIBDIR)\$(ZLIB)
+ $(LINK) @&&|
+ $(LINKFLAGS)
+ -e$(PNGDLL)
+ $(OBJ1)
+ $(OBJ2)
+ $(OBJ3)
+ $(ZLIBDIR)\$(ZLIB)
+ $(NOEHLIB)
+ |
+ $(IMPLIB) -c $(@R).lib $@
+
+
+ # Clean up anything else you want
+ clean:
+ -del *.obj
+ -del *.dll
+ -del *.exe
+ -del *.lib
+ -del *.lst
+ -del *.map
+ -del *.tds
+
+
+ # End of makefile for png32bd.dll
Index: llvm/runtime/libpng/scripts/makefile.beos
diff -c /dev/null llvm/runtime/libpng/scripts/makefile.beos:1.1.2.1
*** /dev/null Mon Mar 1 17:58:58 2004
--- llvm/runtime/libpng/scripts/makefile.beos Mon Mar 1 17:58:47 2004
***************
*** 0 ****
--- 1,199 ----
+ # makefile for libpng on BeOS x86 ELF with gcc
+ # modified from makefile.linux by Sander Stoks
+ # Copyright (C) 2002 Glenn Randers-Pehrson
+ # Copyright (C) 1999 Greg Roelofs
+ # Copyright (C) 1996, 1997 Andreas Dilger
+ # For conditions of distribution and use, see copyright notice in png.h
+
+ CC=gcc
+
+ # Where the zlib library and include files are located
+ ZLIBLIB=/usr/local/lib
+ ZLIBINC=/usr/local/include
+
+ PNGMAJ = 0
+ PNGMIN = 1.2.5
+ PNGVER = $(PNGMAJ).$(PNGMIN)
+
+ ALIGN=
+ # For i386:
+ # ALIGN=-malign-loops=2 -malign-functions=2
+
+ WARNMORE=-Wwrite-strings -Wpointer-arith -Wshadow \
+ -Wmissing-declarations -Wtraditional -Wcast-align \
+ -Wstrict-prototypes -Wmissing-prototypes #-Wconversion
+
+ # On BeOS, -O1 is actually better than -O3. This is a known bug but it's
+ # still here in R4.5
+ CFLAGS=-I$(ZLIBINC) -Wall -O1 -funroll-loops \
+ $(ALIGN) # $(WARNMORE) -g -DPNG_DEBUG=5
+ # LDFLAGS=-L. -Wl,-rpath,. -L$(ZLIBLIB) -Wl,-rpath,$(ZLIBLIB) -lpng -lz -lm
+ LDFLAGS=-L. -Wl,-soname=$(LIBNAME).so.$(PNGMAJ) -L$(ZLIBLIB) -lz -lm
+
+ RANLIB=ranlib
+ #RANLIB=echo
+
+ # where make install puts libpng.a, libpng12.so*, and png.h
+ prefix=/usr/local
+ INCPATH=$(prefix)/include
+ LIBPATH=$(prefix)/lib
+ MANPATH=$(prefix)/man
+ BINPATH=$(prefix)/bin
+
+ # override DESTDIR= on the make install command line to easily support
+ # installing into a temporary location. Example:
+ #
+ # make install DESTDIR=/tmp/build/libpng
+ #
+ # If you're going to install into a temporary location
+ # via DESTDIR, $(DESTDIR)$(prefix) must already exist before
+ # you execute make install.
+ DESTDIR=
+
+ DB=$(DESTDIR)$(BINPATH)
+ DI=$(DESTDIR)$(INCPATH)
+ DL=$(DESTDIR)$(LIBPATH)
+ DM=$(DESTDIR)$(MANPATH)
+
+ LIBNAME=libpng12
+
+ 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
+
+ OBJSDLL = $(OBJS)
+
+ .SUFFIXES: .c .o
+
+ all: libpng.a $(LIBNAME).so pngtest libpng.pc libpng-config
+
+ libpng.a: $(OBJS)
+ ar rc $@ $(OBJS)
+ $(RANLIB) $@
+
+ libpng.pc:
+ cat scripts/libpng.pc.in | sed -e s\!@PREFIX@!$(prefix)! > libpng.pc
+
+ libpng-config:
+ ( cat scripts/libpng-config-head.in; \
+ echo prefix=\"$(prefix)\"; \
+ echo I_opts=\"-I$(INCPATH)/$(LIBNAME)\"; \
+ echo libs=\"-lpng12 -lz -lm\"; \
+ cat scripts/libpng-config-body.in ) > libpng-config
+ chmod +x libpng-config
+
+ $(LIBNAME).so: $(LIBNAME).so.$(PNGMAJ)
+ ln -sf $(LIBNAME).so.$(PNGMAJ) $(LIBNAME).so
+ cp $(LIBNAME).so* /boot/home/config/lib
+
+ $(LIBNAME).so.$(PNGMAJ): $(LIBNAME).so.$(PNGVER)
+ ln -sf $(LIBNAME).so.$(PNGVER) $(LIBNAME).so.$(PNGMAJ)
+
+ $(LIBNAME).so.$(PNGVER): $(OBJSDLL)
+ $(CC) -nostart -Wl,-soname,$(LIBNAME).so.$(PNGMAJ) -o \
+ $(LIBNAME).so.$(PNGVER) $(OBJSDLL)
+
+ libpng.so.3.$(PNGMIN): $(OBJSDLL)
+ $(CC) -nostart -Wl,-soname,libpng.so.3 -o \
+ libpng.so.3.$(PNGMIN) $(OBJSDLL)
+
+ pngtest: pngtest.o $(LIBNAME).so
+ $(CC) -L$(ZLIBLIB) -lz -lpng12 -o pngtest pngtest.o
+
+ test: pngtest
+ ./pngtest
+
+ install-headers: png.h pngconf.h
+ - at if [ ! -d $(DI) ]; then mkdir $(DI); fi
+ - at if [ ! -d $(DI)/$(LIBNAME) ]; then mkdir $(DI)/$(LIBNAME); fi
+ cp png.h pngconf.h $(DI)/$(LIBNAME)
+ chmod 644 $(DI)/$(LIBNAME)/png.h $(DI)/$(LIBNAME)/pngconf.h
+ -@/bin/rm -f $(DI)/png.h $(DI)/pngconf.h
+ -@/bin/rm -f $(DI)/libpng
+ (cd $(DI); ln -sf $(LIBNAME) libpng; ln -sf $(LIBNAME)/* .)
+
+ install-static: install-headers libpng.a
+ - at if [ ! -d $(DL) ]; then mkdir $(DL); fi
+ cp libpng.a $(DL)/$(LIBNAME).a
+ chmod 644 $(DL)/$(LIBNAME).a
+ -@/bin/rm -f $(DL)/libpng.a
+ (cd $(DL); ln -sf $(LIBNAME).a libpng.a)
+
+ install-shared: install-headers $(LIBNAME).so.$(PNGVER) libpng.pc \
+ libpng.so.3.$(PNGMIN)
+ - at if [ ! -d $(DL) ]; then mkdir $(DL); fi
+ -@/bin/rm -f $(DL)/$(LIBNAME).so.$(PNGVER)* $(DL)/$(LIBNAME).so
+ -@/bin/rm -f $(DL)/libpng.so
+ -@/bin/rm -f $(DL)/libpng.so.3
+ -@/bin/rm -f $(DL)/libpng.so.3.$(PNGMIN)*
+ cp $(LIBNAME).so.$(PNGVER) $(DL)
+ cp libpng.so.3.$(PNGMIN) $(DL)
+ chmod 755 $(DL)/$(LIBNAME).so.$(PNGVER)
+ chmod 755 $(DL)/libpng.so.3.$(PNGMIN)
+ (cd $(DL); \
+ ln -sf libpng.so.3.$(PNGMIN) libpng.so.3; \
+ ln -sf libpng.so.3 libpng.so; \
+ ln -sf $(LIBNAME).so.$(PNGVER) $(LIBNAME).so.$(PNGMAJ); \
+ ln -sf $(LIBNAME).so.$(PNGMAJ) $(LIBNAME).so)
+ - at if [ ! -d $(DL)/pkgconfig ]; then mkdir $(DL)/pkgconfig; fi
+ -@/bin/rm -f $(DL)/pkgconfig/$(LIBNAME).pc
+ -@/bin/rm -f $(DL)/pkgconfig/libpng.pc
+ cp libpng.pc $(DL)/pkgconfig/$(LIBNAME).pc
+ chmod 644 $(DL)/pkgconfig/$(LIBNAME).pc
+ (cd $(DL)/pkgconfig; ln -sf $(LIBNAME).pc libpng.pc)
+
+ install-man: libpng.3 libpngpf.3 png.5
+ - at if [ ! -d $(DM) ]; then mkdir $(DM); fi
+ - at if [ ! -d $(DM)/man3 ]; then mkdir $(DM)/man3; fi
+ -@/bin/rm -f $(DM)/man3/libpng.3
+ -@/bin/rm -f $(DM)/man3/libpngpf.3
+ cp libpng.3 $(DM)/man3
+ cp libpngpf.3 $(DM)/man3
+ - at if [ ! -d $(DM)/man5 ]; then mkdir $(DM)/man5; fi
+ -@/bin/rm -f $(DM)/man5/png.5
+ cp png.5 $(DM)/man5
+
+ install-config: libpng-config
+ - at if [ ! -d $(DB) ]; then mkdir $(DB); fi
+ -@/bin/rm -f $(DB)/libpng-config
+ -@/bin/rm -f $(DB)/$(LIBNAME)-config
+ cp libpng-config $(DB)/$(LIBNAME)-config
+ chmod 755 $(DB)/$(LIBNAME)-config
+ (cd $(DB); ln -sf $(LIBNAME)-config libpng-config)
+
+ install: install-static install-shared install-man install-config
+
+ # If you installed in $(DESTDIR), test-installed won't work until you
+ # move the library to its final location.
+
+ test-installed:
+ $(CC) $(CFLAGS) \
+ `$(BINPATH)/libpng12-config --cflags` pngtest.c \
+ -L$(ZLIBLIB) -Wl,-rpath,$(ZLIBLIB) \
+ -o pngtesti `$(BINPATH)/libpng12-config --ldflags`
+ ./pngtesti pngtest.png
+
+ clean:
+ /bin/rm -f *.o libpng.a pngtest pngout.png libpng-config \
+ $(LIBNAME).so $(LIBNAME).so.$(PNGMAJ)* pngtesti \
+ libpng.so.3.$(PNGMIN) \
+ libpng.pc
+
+ # DO NOT DELETE THIS LINE -- make depend depends on it.
+
+ png.o png.pic.o: png.h pngconf.h
+ pngerror.o pngerror.pic.o: png.h pngconf.h
+ pngrio.o pngrio.pic.o: png.h pngconf.h
+ pngwio.o pngwio.pic.o: png.h pngconf.h
+ pngmem.o pngmem.pic.o: png.h pngconf.h
+ pngset.o pngset.pic.o: png.h pngconf.h
+ pngget.o pngget.pic.o: png.h pngconf.h
+ pngread.o pngread.pic.o: png.h pngconf.h
+ pngrtran.o pngrtran.pic.o: png.h pngconf.h
+ pngrutil.o pngrutil.pic.o: png.h pngconf.h
+ pngtrans.o pngtrans.pic.o: png.h pngconf.h
+ pngwrite.o pngwrite.pic.o: png.h pngconf.h
+ pngwtran.o pngwtran.pic.o: png.h pngconf.h
+ pngwutil.o pngwutil.pic.o: png.h pngconf.h
+ pngpread.o pngpread.pic.o: png.h pngconf.h
+ pngtest.o: png.h pngconf.h
Index: llvm/runtime/libpng/scripts/makefile.bor
diff -c /dev/null llvm/runtime/libpng/scripts/makefile.bor:1.1.2.1
*** /dev/null Mon Mar 1 17:58:58 2004
--- llvm/runtime/libpng/scripts/makefile.bor Mon Mar 1 17:58:47 2004
***************
*** 0 ****
--- 1,162 ----
+ # Makefile for libpng
+ # 16-bit Borland C++ (Note: All modules are compiled in C mode)
+ # To build the library, do:
+ # "make -fmakefile.bor -DMODEL=c"
+ # or: "make -fmakefile.bor -DMODEL=l"
+ #
+ # ------------ Borland C++ ------------
+
+ ### Absolutely necessary for this makefile to work
+ .AUTODEPEND
+
+ ## Where zlib.h, zconf.h and zlib_MODEL.lib are
+ ZLIB_DIR=..\zlib
+
+
+ ## Compiler, linker and lib stuff
+ CC=bcc
+ LD=bcc
+ LIB=tlib
+
+ !ifndef MODEL
+ MODEL=l
+ !endif
+
+ MODEL_ARG=-m$(MODEL)
+
+ #TARGET_CPU=3
+ # 2 = 286, 3 = 386, etc.
+ !ifndef TARGET_CPU
+ TARGET_CPU=2
+ !endif
+
+ # Use this if you don't want Borland's fancy exception handling
+ # (for Borland C++ 4.0 or later)
+ #NOEHLIB=noeh$(MODEL).lib
+
+ !ifdef DEBUG
+ CDEBUG=-v
+ LDEBUG=-v
+ !else
+ CDEBUG=
+ LDEBUG=
+ !endif
+
+ # STACKOFLOW=1
+ !ifdef STACKOFLOW
+ CDEBUG=$(CDEBUG) -N
+ LDEBUG=$(LDEBUG) -N
+ !endif
+
+ # -X- turn on dependency generation in the object file
+ # -w set all warnings on
+ # -O2 optimize for speed
+ # -Z global optimization
+ CFLAGS=-O2 -Z -X- -w -I$(ZLIB_DIR) -$(TARGET_CPU) $(MODEL_ARG) $(CDEBUG)
+
+ # -M generate map file
+ LDFLAGS=-M -L$(ZLIB_DIR) $(MODEL_ARG) $(LDEBUG)
+
+
+ ## Variables
+ OBJS = \
+ png.obj \
+ pngerror.obj \
+ pngget.obj \
+ pngmem.obj \
+ pngpread.obj \
+ pngread.obj \
+ pngrio.obj \
+ pngrtran.obj \
+ pngrutil.obj \
+ pngset.obj \
+ pngtrans.obj \
+ pngwio.obj \
+ pngwrite.obj \
+ pngwtran.obj \
+ pngwutil.obj
+
+ LIBOBJS = \
+ +png.obj \
+ +pngerror.obj \
+ +pngget.obj \
+ +pngmem.obj \
+ +pngpread.obj \
+ +pngread.obj \
+ +pngrio.obj \
+ +pngrtran.obj \
+ +pngrutil.obj \
+ +pngset.obj \
+ +pngtrans.obj \
+ +pngwio.obj \
+ +pngwrite.obj \
+ +pngwtran.obj \
+ +pngwutil.obj
+
+ LIBNAME=libpng$(MODEL).lib
+
+
+ ## Implicit rules
+ # Braces let make "batch" calls to the compiler,
+ # 2 calls instead of 12; space is important.
+ .c.obj:
+ $(CC) $(CFLAGS) -c {$*.c }
+
+ .c.exe:
+ $(CC) $(CFLAGS) $(LDFLAGS) $*.c $(LIBNAME) zlib_$(MODEL).lib $(NOEHLIB)
+
+
+ ## Major targets
+ all: libpng pngtest
+
+ libpng: $(LIBNAME)
+
+ pngtest: pngtest$(MODEL).exe
+
+ test: pngtest$(MODEL).exe
+ pngtest$(MODEL)
+
+
+ ## Minor Targets
+
+ png.obj: png.c
+ pngerror.obj: pngerror.c
+ pngget.obj: pngget.c
+ pngmem.obj: pngmem.c
+ pngpread.obj: pngpread.c
+ pngread.obj: pngread.c
+ pngrio.obj: pngrio.c
+ pngrtran.obj: pngrtran.c
+ pngrutil.obj: pngrutil.c
+ pngset.obj: pngset.c
+ pngtrans.obj: pngtrans.c
+ pngwio.obj: pngwio.c
+ pngwrite.obj: pngwrite.c
+ pngwtran.obj: pngwtran.c
+ pngwutil.obj: pngwutil.c
+
+
+ $(LIBNAME): $(OBJS)
+ -del $(LIBNAME)
+ $(LIB) $(LIBNAME) @&&|
+ $(LIBOBJS), libpng$(MODEL)
+ |
+
+
+ pngtest$(MODEL).obj: pngtest.c
+ $(CC) $(CFLAGS) -opngtest$(MODEL) -c pngtest.c
+
+ pngtest$(MODEL).exe: pngtest$(MODEL).obj
+ $(LD) $(LDFLAGS) pngtest$(MODEL).obj $(LIBNAME) zlib_$(MODEL).lib $(NOEHLIB)
+
+
+ # Clean up anything else you want
+ clean:
+ -del *.obj
+ -del *.exe
+ -del *.lib
+ -del *.lst
+ -del *.map
+
+
+ # End of makefile for libpng
Index: llvm/runtime/libpng/scripts/makefile.cygwin
diff -c /dev/null llvm/runtime/libpng/scripts/makefile.cygwin:1.1.2.1
*** /dev/null Mon Mar 1 17:58:58 2004
--- llvm/runtime/libpng/scripts/makefile.cygwin Mon Mar 1 17:58:47 2004
***************
*** 0 ****
--- 1,305 ----
+ # makefile for cygwin on x86
+ # Builds both dll (with import lib) and static lib versions
+ # of the library, and builds two copies of pngtest: one
+ # statically linked and one dynamically linked.
+ #
+ # Copyright (C) 2002 Soren Anderson, Charles Wilson, and Glenn Randers-Pehrson
+ # based on makefile for linux-elf w/mmx by:
+ # Copyright (C) 1998-2000 Greg Roelofs
+ # Copyright (C) 1996, 1997 Andreas Dilger
+ # For conditions of distribution and use, see copyright notice in png.h
+
+ # This makefile intends to support building outside the src directory
+ # if desired. When invoking it, specify an argument to SRCDIR on the
+ # command line that points to the top of the directory where your source
+ # is located.
+
+ ifdef SRCDIR
+ VPATH = $(SRCDIR)
+ else
+ SRCDIR = .
+ endif
+
+ # Override DESTDIR= on the make install command line to easily support
+ # installing into a temporary location. Example:
+ #
+ # make install DESTDIR=/tmp/build/libpng
+ #
+ # If you're going to install into a temporary location
+ # via DESTDIR, $(DESTDIR)$(prefix) must already exist before
+ # you execute make install.
+
+ 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
+ MINGW_LDFLAGS=-mno-cygwin -L/usr/lib/mingw
+ endif
+
+ # Where "make install" puts libpng*.a, *png*.dll, png.h, and pngconf.h
+ ifndef prefix
+ prefix=/usr
+ $(warning You haven't specified a 'prefix=' location. Defaulting to "/usr")
+ endif
+
+ # Where the zlib library and include files are located
+ ZLIBLIB= /usr/lib
+ ZLIBINC=
+ #ZLIBLIB=../zlib
+ #ZLIBINC=../zlib
+
+ ALIGN=
+ # for i386:
+ #ALIGN=-malign-loops=2 -malign-functions=2
+
+ 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
+
+ LIBNAME = libpng12
+ PNGMAJ = 0
+ CYGDLL = 12
+ PNGMIN = 1.2.5
+ PNGVER = $(PNGMAJ).$(PNGMIN)
+
+ SHAREDLIB=cygpng$(CYGDLL).dll
+ STATLIB=libpng.a
+ IMPLIB=libpng.dll.a
+ SHAREDDEF=libpng.def
+ LIBS=$(SHAREDLIB) $(STATLIB)
+ EXE=.exe
+
+ LDFLAGS=$(strip -L. $(MINGW_LDFLAGS) -lpng $(addprefix -L,$(ZLIBLIB)) -lz)
+ LDSFLAGS=$(strip -shared -L. $(MINGW_LDFLAGS) -Wl,--export-all)
+ LDEXTRA=-Wl,--out-implib=$(IMPLIB) $(addprefix -L,$(ZLIBLIB)) -lz
+
+ MKDIR=/bin/mkdir -pv
+ RANLIB=ranlib
+ #RANLIB=echo
+
+ INCPATH=$(prefix)/include
+ LIBPATH=$(prefix)/lib
+
+ BINPATH=$(prefix)/bin
+ MANPATH=$(prefix)/man
+ MAN3PATH=$(MANPATH)/man3
+ MAN5PATH=$(MANPATH)/man5
+
+ # cosmetic: shortened strings:
+ S =$(SRCDIR)
+ D =$(DESTDIR)
+ DB =$(D)$(BINPATH)
+ DI =$(D)$(INCPATH)
+ 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
+
+ OBJSDLL = $(OBJS:.o=.pic.o)
+
+ .SUFFIXES: .c .o .pic.o
+
+ %.o : %.c
+ $(CC) -c $(CFLAGS) -o $@ $<
+ %.pic.o : CFLAGS += -DPNG_BUILD_DLL
+ %.pic.o : %.c
+ $(CC) -c $(CFLAGS) -o $@ $<
+
+ all: all-static all-shared libpng.pc libpng-config libpng.pc libpng-config
+
+ # Make this to verify that "make [...] install" will do what you want.
+ buildsetup-tell:
+ @echo VPATH is set to: \"$(VPATH)\"
+ @echo prefix is set to: \"$(prefix)\"
+ @echo -e INCPATH,LIBPATH, etc. are set to:'\n' \
+ $(addprefix $(D),$(INCPATH)'\n' $(LIBPATH)'\n' $(BINPATH)'\n' \
+ $(MANPATH)'\n' $(MAN3PATH)'\n' $(MAN5PATH)'\n')'\n'
+
+ libpng.pc: scripts/libpng.pc.in
+ @echo -e Making pkg-config file for this libpng installation..'\n' \
+ using PREFIX=\"$(prefix)\"'\n'
+ cat $(S)/scripts/libpng.pc.in | sed -e s\!@PREFIX@!$(prefix)! | \
+ sed -e s/-lm// > libpng.pc
+
+ libpng-config: scripts/libpng-config-head.in scripts/libpng-config-body.in
+ @echo -e Making $(LIBNAME) libpng-config file for this libpng \
+ installation..'\n' using PREFIX=\"$(prefix)\"'\n'
+ ( cat $(S)/scripts/libpng-config-head.in; \
+ echo prefix=\"$(prefix)\"; \
+ echo I_opts=\"-I$(INCPATH)/$(LIBNAME)\"; \
+ echo L_opts=\"-L$(LIBPATH)\"; \
+ echo libs=\"-lpng$(CYGDLL) -lz\"; \
+ cat $(S)/scripts/libpng-config-body.in ) > libpng-config
+ chmod +x libpng-config
+
+ static: all-static
+ shared: all-shared
+ all-static: $(STATLIB) pngtest-stat$(EXE)
+ all-shared: $(SHAREDLIB) pngtest$(EXE)
+
+ pnggccrd.o: pnggccrd.c png.h pngconf.h
+ @echo ""
+ @echo ' You can ignore the "control reaches end of non-void function"'
+ @echo ' warning and "<variable> defined but not used" warnings:'
+ @echo ""
+ $(CC) -c $(CFLAGS) -o $@ $<
+
+ pnggccrd.pic.o: pnggccrd.c png.h pngconf.h
+ @echo ""
+ @echo ' You can ignore the "control reaches end of non-void function"'
+ @echo ' warning and "<variable> defined but not used" warnings:'
+ @echo ""
+ $(CC) -c $(CFLAGS) -DPNG_BUILD_DLL -o $@ $<
+
+ $(STATLIB): $(OBJS)
+ ar rc $@ $(OBJS)
+ $(RANLIB) $@
+
+ $(SHAREDDEF): projects/msvc/png32ms.def
+ cat $< | sed -e '1{G;s/^\(.*\)\(\n\)/EXPORTS/;};2,/^EXPORTS/d' | \
+ sed -e 's/\([^;]*\);/;/' > $@
+
+ $(SHAREDLIB): $(OBJSDLL) $(SHAREDDEF)
+ $(CC) $(LDSFLAGS) -o $@ $(OBJSDLL) -L. $(LDEXTRA)
+
+ pngtest$(EXE): pngtest.pic.o $(SHAREDLIB)
+ $(CC) $(CFLAGS) $< $(LDFLAGS) -o $@
+
+ pngtest-stat$(EXE): pngtest.o $(STATLIB)
+ $(CC) -static $(CFLAGS) $< $(LDFLAGS) -o $@
+
+ pngtest.pic.o: pngtest.c
+ $(CC) $(CFLAGS) -c $< -o $@
+
+ pngtest.o: pngtest.c
+ $(CC) $(CFLAGS) -c $< -o $@
+
+ test: test-static test-shared
+
+ test-static: pngtest-stat$(EXE)
+ ./pngtest-stat $(S)/pngtest.png
+
+ test-shared: pngtest$(EXE)
+ ./pngtest $(S)/pngtest.png
+
+ install-static: $(STATLIB) install-headers install-man
+ - at if [ ! -d $(DL) ]; then $(MKDIR) $(DL); fi
+ install -m 644 $(STATLIB) $(DL)/$(LIBNAME).a
+ - at rm -f $(DL)/$(STATLIB)
+ (cd $(DL); ln -sf $(LIBNAME).a $(STATLIB))
+
+ install-shared: $(SHAREDLIB) libpng.pc libpng-config install-headers install-man
+ - at if [ ! -d $(DL) ]; then $(MKDIR) $(DL); fi
+ - at if [ ! -d $(DB) ]; then $(MKDIR) $(DB); fi
+ - at if [ ! -d $(DL)/pkgconfig ]; then $(MKDIR) $(DL)/pkgconfig; fi
+ -@/bin/rm -f $(DL)/pkgconfig/$(LIBNAME).pc
+ -@/bin/rm -f $(DL)/pkgconfig/libpng.pc
+ install -m 644 $(IMPLIB) $(DL)/$(LIBNAME).dll.a
+ - at rm -f $(DL)/$(IMPLIB)
+ (cd $(DL); ln -sf $(LIBNAME).dll.a $(IMPLIB))
+ install -s -m 755 $(SHAREDLIB) $(DB)
+ install -m 644 libpng.pc $(DL)/pkgconfig/$(LIBNAME).pc
+ (cd $(DL)/pkgconfig; ln -sf $(LIBNAME).pc libpng.pc)
+
+ install-headers:
+ - at if [ ! -d $(DI) ]; then $(MKDIR) $(DI); fi
+ - at if [ ! -d $(DI)/$(LIBNAME) ]; then $(MKDIR) $(DI)/$(LIBNAME); fi
+ - at rm -f $(DI)/png.h
+ - at rm -f $(DI)/pngconf.h
+ install -m 644 $(S)/png.h $(S)/pngconf.h $(DI)/$(LIBNAME)
+ - at rm -f $(DI)/libpng
+ (cd $(DI); ln -sf $(LIBNAME) libpng; ln -sf $(LIBNAME)/* .)
+
+ install-man:
+ - at if [ ! -d $(D)$(MAN3PATH) ]; then $(MKDIR) $(D)$(MAN3PATH); fi
+ - at if [ ! -d $(D)$(MAN5PATH) ]; then $(MKDIR) $(D)$(MAN5PATH); fi
+ install -m 644 $(S)/libpngpf.3 $(S)/libpng.3 $(D)$(MAN3PATH)
+ install -m 644 $(S)/png.5 $(D)$(MAN5PATH)
+
+ install-config: libpng-config
+ - at if [ ! -d $(DB) ]; then mkdir $(DB); fi
+ -@/bin/rm -f $(DB)/libpng-config
+ -@/bin/rm -f $(DB)/$(LIBNAME)-config
+ cp libpng-config $(DB)/$(LIBNAME)-config
+ chmod 755 $(DB)/$(LIBNAME)-config
+ (cd $(DB); ln -sf $(LIBNAME)-config libpng-config)
+
+ # Run this to verify that a future `configure' run will pick up the settings
+ # you want.
+ test-config-install: SHELL=/bin/bash
+ test-config-install: $(DB)/libpng-config
+ @echo -e Testing libpng-config functions...'\n'
+ @ for TYRA in LDFLAGS CPPFLAGS CFLAGS LIBS VERSION; \
+ do \
+ printf "(%d)\t %10s =%s\n" $$(($$gytiu + 1)) $$TYRA \
+ "$$($(DB)/libpng-config `echo --$$TYRA |tr '[:upper:]' '[:lower:]'`)"; \
+ gytiu=$$(( $$gytiu + 1 )); \
+ done
+
+ install: install-static install-shared install-man install-config
+
+ # If you installed in $(DESTDIR), test-installed won't work until you
+ # move the library to its final location.
+
+ test-installed:
+ $(CC) $(CFLAGS) \
+ `$(BINPATH)/libpng12-config --cflags` pngtest.c \
+ -L$(ZLIBLIB) \
+ -o pngtesti$(EXE) `$(BINPATH)/libpng12-config --ldflags`
+ ./pngtesti$(EXE) pngtest.png
+
+ clean:
+ /bin/rm -f *.pic.o *.o $(STATLIB) $(IMPLIB) $(SHAREDLIB) \
+ pngtest-stat$(EXE) pngtest$(EXE) pngout.png $(SHAREDDEF) \
+ libpng-config libpng.pc pngtesti$(EXE)
+
+ DOCS = ANNOUNCE CHANGES INSTALL KNOWNBUG LICENSE README TODO Y2KINFO
+ writelock:
+ chmod a-w *.[ch35] $(DOCS) scripts/*
+
+ .PHONY: buildsetup-tell libpng.pc libpng-config test-config-install clean
+
+ # DO NOT DELETE THIS LINE -- make depend depends on it.
+
+ png.o png.pic.o: png.h pngconf.h png.c
+ pngerror.o pngerror.pic.o: png.h pngconf.h pngerror.c
+ pngrio.o pngrio.pic.o: png.h pngconf.h pngrio.c
+ pngwio.o pngwio.pic.o: png.h pngconf.h pngwio.c
+ pngmem.o pngmem.pic.o: png.h pngconf.h pngmem.c
+ pngset.o pngset.pic.o: png.h pngconf.h pngset.c
+ pngget.o pngget.pic.o: png.h pngconf.h pngget.c
+ pngread.o pngread.pic.o: png.h pngconf.h pngread.c
+ pngrtran.o pngrtran.pic.o: png.h pngconf.h pngrtran.c
+ pngrutil.o pngrutil.pic.o: png.h pngconf.h pngrutil.c
+ pngtrans.o pngtrans.pic.o: png.h pngconf.h pngtrans.c
+ pngwrite.o pngwrite.pic.o: png.h pngconf.h pngwrite.c
+ pngwtran.o pngwtran.pic.o: png.h pngconf.h pngwtran.c
+ pngwutil.o pngwutil.pic.o: png.h pngconf.h pngwutil.c
+ pngpread.o pngpread.pic.o: png.h pngconf.h pngpread.c
+
+ pngtest.o: png.h pngconf.h pngtest.c
+ pngtest-stat.o: png.h pngconf.h pngtest.c
+
+
+
Index: llvm/runtime/libpng/scripts/makefile.darwin
diff -c /dev/null llvm/runtime/libpng/scripts/makefile.darwin:1.1.2.1
*** /dev/null Mon Mar 1 17:58:58 2004
--- llvm/runtime/libpng/scripts/makefile.darwin Mon Mar 1 17:58:47 2004
***************
*** 0 ****
--- 1,205 ----
+ # makefile for libpng on Darwin / Mac OS X
+ # Copyright (C) 2002 Glenn Randers-Pehrson
+ # Copyright (C) 2001 Christoph Pfisterer
+ # derived from makefile.linux:
+ # Copyright (C) 1998, 1999 Greg Roelofs
+ # Copyright (C) 1996, 1997 Andreas Dilger
+ # For conditions of distribution and use, see copyright notice in png.h
+
+ # where "make install" puts libpng.a, libpng12.dylib, png.h and pngconf.h
+ prefix=/usr/local
+
+ # Where the zlib library and include files are located
+ #ZLIBLIB=/usr/local/lib
+ #ZLIBINC=/usr/local/include
+ ZLIBLIB=../zlib
+ ZLIBINC=../zlib
+
+ CC=cc
+ CFLAGS=-I$(ZLIBINC) -Wall -O3 -funroll-loops
+ LDFLAGS=-L. -L$(ZLIBLIB) -lpng12 -lz
+
+ #RANLIB=echo
+ RANLIB=ranlib
+
+ PNGMAJ = 0
+ PNGMIN = 1.2.5
+ PNGVER = $(PNGMAJ).$(PNGMIN)
+ LIBNAME = libpng12
+
+ INCPATH=$(prefix)/include
+ LIBPATH=$(prefix)/lib
+ MANPATH=$(prefix)/man
+ BINPATH=$(prefix)/bin
+
+ # override DESTDIR= on the make install command line to easily support
+ # installing into a temporary location. Example:
+ #
+ # make install DESTDIR=/tmp/build/libpng
+ #
+ # If you're going to install into a temporary location
+ # via DESTDIR, $(DESTDIR)$(prefix) must already exist before
+ # you execute make install.
+ DESTDIR=
+
+ DB=$(DESTDIR)$(BINPATH)
+ DI=$(DESTDIR)$(INCPATH)
+ DL=$(DESTDIR)$(LIBPATH)
+ DM=$(DESTDIR)$(MANPATH)
+
+ 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
+
+ OBJSDLL = $(OBJS:.o=.pic.o)
+
+ .SUFFIXES: .c .o .pic.o
+
+ .c.pic.o:
+ $(CC) -c $(CFLAGS) -fno-common -o $@ $*.c
+
+ all: libpng.a $(LIBNAME).dylib pngtest libpng.pc libpng-config
+
+ libpng.a: $(OBJS)
+ ar rc $@ $(OBJS)
+ $(RANLIB) $@
+
+ libpng.pc:
+ cat scripts/libpng.pc.in | sed -e s\!@PREFIX@!$(prefix)! | \
+ sed -e s/-lm// > libpng.pc
+
+ libpng-config:
+ ( cat scripts/libpng-config-head.in; \
+ echo prefix=\"$(prefix)\"; \
+ echo I_opts=\"-I$(INCPATH)/$(LIBNAME)\"; \
+ echo L_opts=\"-L$(LIBPATH)\"; \
+ echo libs=\"-lpng12 -lz\"; \
+ cat scripts/libpng-config-body.in ) > libpng-config
+ chmod +x libpng-config
+
+ $(LIBNAME).dylib: $(LIBNAME).$(PNGMAJ).dylib
+ ln -sf $(LIBNAME).$(PNGMAJ).dylib $(LIBNAME).dylib
+
+ $(LIBNAME).$(PNGMAJ).dylib: $(LIBNAME).$(PNGVER).dylib
+ ln -sf $(LIBNAME).$(PNGVER).dylib $(LIBNAME).$(PNGMAJ).dylib
+
+ $(LIBNAME).$(PNGVER).dylib: $(OBJSDLL)
+ $(CC) -dynamiclib \
+ -install_name $(DL)/$(LIBNAME).$(PNGMAJ).dylib \
+ -flat_namespace -undefined suppress \
+ -o $(LIBNAME).$(PNGVER).dylib \
+ $(OBJSDLL)
+
+ libpng.3.$(PNGMIN).dylib: $(OBJSDLL)
+ $(CC) -dynamiclib \
+ -install_name $(DL)/libpng.3.dylib \
+ -current_version 3 -compatibility_version 3 \
+ -flat_namespace -undefined suppress \
+ -o libpng.3.$(PNGMIN).dylib \
+ $(OBJSDLL)
+
+ pngtest: pngtest.o $(LIBNAME).dylib
+ $(CC) -o pngtest $(CFLAGS) pngtest.o $(LDFLAGS)
+
+ test: pngtest
+ ./pngtest
+
+ install-headers: png.h pngconf.h
+ - at if [ ! -d $(DI) ]; then mkdir $(DI); fi
+ - at if [ ! -d $(DI)/$(LIBNAME) ]; then mkdir $(DI)/$(LIBNAME); fi
+ cp png.h pngconf.h $(DI)/$(LIBNAME)
+ chmod 644 $(DI)/$(LIBNAME)/png.h $(DI)/$(LIBNAME)/pngconf.h
+ -@/bin/rm -f $(DI)/png.h $(DI)/pngconf.h
+ -@/bin/rm -f $(DI)/libpng
+ (cd $(DI); ln -sf $(LIBNAME) libpng; ln -sf $(LIBNAME)/* .)
+
+ install-static: install-headers libpng.a
+ - at if [ ! -d $(DL) ]; then mkdir $(DL); fi
+ cp libpng.a $(DL)/$(LIBNAME).a
+ chmod 644 $(DL)/$(LIBNAME).a
+ -@/bin/rm -f $(DL)/libpng.a
+ (cd $(DL); ln -sf $(LIBNAME).a libpng.a)
+
+ install-shared: install-headers $(LIBNAME).dylib libpng.pc \
+ libpng.3.$(PNGMIN).dylib
+ - at if [ ! -d $(DL) ]; then mkdir $(DL); fi
+ -@/bin/rm -f $(DL)/$(LIBNAME).$(PNGVER)*.dylib
+ -@/bin/rm -f $(DL)/$(LIBNAME).dylib
+ -@/bin/rm -f $(DL)/libpng.dylib
+ -@/bin/rm -f $(DL)/libpng.3.dylib
+ -@/bin/rm -f $(DL)/libpng.3.$(PNGMIN)*.dylib
+ cp $(LIBNAME).$(PNGVER).dylib $(DL)
+ cp libpng.3.$(PNGMIN).dylib $(DL)
+ chmod 755 $(DL)/$(LIBNAME).$(PNGVER).dylib
+ chmod 755 $(DL)/libpng.3.$(PNGMIN).dylib
+ (cd $(DL); \
+ ln -sf libpng.3.$(PNGMIN).dylib libpng.3.dylib; \
+ ln -sf libpng.3.dylib libpng.dylib; \
+ ln -sf $(LIBNAME).$(PNGVER).dylib $(LIBNAME).$(PNGMAJ).dylib; \
+ ln -sf $(LIBNAME).$(PNGMAJ).dylib $(LIBNAME).dylib)
+ - at if [ ! -d $(DL)/pkgconfig ]; then mkdir $(DL)/pkgconfig; fi
+ -@/bin/rm -f $(DL)/pkgconfig/$(LIBNAME).pc
+ -@/bin/rm -f $(DL)/pkgconfig/libpng.pc
+ cp libpng.pc $(DL)/pkgconfig/$(LIBNAME).pc
+ chmod 644 $(DL)/pkgconfig/$(LIBNAME).pc
+ (cd $(DL)/pkgconfig; ln -sf $(LIBNAME).pc libpng.pc)
+
+ install-man: libpng.3 libpngpf.3 png.5
+ - at if [ ! -d $(DM) ]; then mkdir $(DM); fi
+ - at if [ ! -d $(DM)/man3 ]; then mkdir $(DM)/man3; fi
+ -@/bin/rm -f $(DM)/man3/libpng.3
+ -@/bin/rm -f $(DM)/man3/libpngpf.3
+ cp libpng.3 $(DM)/man3
+ cp libpngpf.3 $(DM)/man3
+ - at if [ ! -d $(DM)/man5 ]; then mkdir $(DM)/man5; fi
+ -@/bin/rm -f $(DM)/man5/png.5
+ cp png.5 $(DM)/man5
+
+ install-config: libpng-config
+ - at if [ ! -d $(DB) ]; then mkdir $(DB); fi
+ -@/bin/rm -f $(DB)/libpng-config
+ -@/bin/rm -f $(DB)/$(LIBNAME)-config
+ cp libpng-config $(DB)/$(LIBNAME)-config
+ chmod 755 $(DB)/$(LIBNAME)-config
+ (cd $(DB); ln -sf $(LIBNAME)-config libpng-config)
+
+ install: install-static install-shared install-man install-config
+
+ # If you installed in $(DESTDIR), test-installed won't work until you
+ # move the library to its final location.
+
+ test-installed:
+ $(CC) $(CFLAGS) \
+ `$(BINPATH)/libpng12-config --cflags` pngtest.c \
+ -L$(ZLIBLIB) \
+ -o pngtesti `$(BINPATH)/libpng12-config --ldflags`
+ ./pngtesti pngtest.png
+
+ clean:
+ rm -f *.o libpng.a pngtest pngout.png libpng-config \
+ libpng.3.$(PNGMIN).dylib \
+ libpng.pc $(LIBNAME).*dylib pngtesti
+
+ DOCS = ANNOUNCE CHANGES INSTALL KNOWNBUG LICENSE README TODO Y2KINFO
+ writelock:
+ chmod a-w *.[ch35] $(DOCS) scripts/*
+
+ # DO NOT DELETE THIS LINE -- make depend depends on it.
+
+ png.o png.pic.o: png.h pngconf.h
+ pngerror.o pngerror.pic.o: png.h pngconf.h
+ pngrio.o pngrio.pic.o: png.h pngconf.h
+ pngwio.o pngwio.pic.o: png.h pngconf.h
+ pngmem.o pngmem.pic.o: png.h pngconf.h
+ pngset.o pngset.pic.o: png.h pngconf.h
+ pngget.o pngget.pic.o: png.h pngconf.h
+ pngread.o pngread.pic.o: png.h pngconf.h
+ pngrtran.o pngrtran.pic.o: png.h pngconf.h
+ pngrutil.o pngrutil.pic.o: png.h pngconf.h
+ pngtrans.o pngtrans.pic.o: png.h pngconf.h
+ pngwrite.o pngwrite.pic.o: png.h pngconf.h
+ pngwtran.o pngwtran.pic.o: png.h pngconf.h
+ pngwutil.o pngwutil.pic.o: png.h pngconf.h
+ pngpread.o pngpread.pic.o: png.h pngconf.h
+
+ pngtest.o: png.h pngconf.h
Index: llvm/runtime/libpng/scripts/makefile.dec
diff -c /dev/null llvm/runtime/libpng/scripts/makefile.dec:1.1.2.1
*** /dev/null Mon Mar 1 17:58:58 2004
--- llvm/runtime/libpng/scripts/makefile.dec Mon Mar 1 17:58:47 2004
***************
*** 0 ****
--- 1,185 ----
+ # makefile for libpng on DEC Alpha Unix
+ # Copyright (C) 2000-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
+
+ # where make install puts libpng.a and png.h
+ prefix=/usr/local
+ INCPATH=$(prefix)/include
+ LIBPATH=$(prefix)/lib
+ MANPATH=$(prefix)/man
+ BINPATH=$(prefix)/bin
+
+ # override DESTDIR= on the make install command line to easily support
+ # installing into a temporary location. Example:
+ #
+ # make install DESTDIR=/tmp/build/libpng
+ #
+ # If you're going to install into a temporary location
+ # via DESTDIR, $(DESTDIR)$(prefix) must already exist before
+ # you execute make install.
+ DESTDIR=
+
+ DB=$(DESTDIR)$(BINPATH)
+ DI=$(DESTDIR)$(INCPATH)
+ DL=$(DESTDIR)$(LIBPATH)
+ DM=$(DESTDIR)$(MANPATH)
+
+ # Where the zlib library and include files are located
+ #ZLIBLIB=/usr/local/lib
+ #ZLIBINC=/usr/local/include
+ ZLIBLIB=../zlib
+ ZLIBINC=../zlib
+
+ PNGMAJ = 0
+ PNGMIN = 1.2.5
+ PNGVER = $(PNGMAJ).$(PNGMIN)
+ LIBNAME = libpng12
+
+ CC=cc
+ CFLAGS=-std -w1 -I$(ZLIBINC) -O # -g -DPNG_DEBUG=1
+ LDFLAGS=-L. -L$(ZLIBLIB) -lpng -lz -lm
+
+ #RANLIB=echo
+ RANLIB=ranlib
+
+ 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
+
+ all: $(LIBNAME).so libpng.a pngtest libpng.pc libpng-config
+
+ libpng.a: $(OBJS)
+ ar rc $@ $(OBJS)
+ $(RANLIB) $@
+
+ libpng.pc:
+ cat scripts/libpng.pc.in | sed -e s\!@PREFIX@!$(prefix)! > libpng.pc
+
+ libpng-config:
+ ( cat scripts/libpng-config-head.in; \
+ echo prefix=\"$(prefix)\"; \
+ echo I_opts=\"-I$(INCPATH)/$(LIBNAME)\"; \
+ echo ccopts=\"-std\"; \
+ echo L_opts=\"-L$(LIBPATH)\"; \
+ echo libs=\"-lpng12 -lz -lm\"; \
+ cat scripts/libpng-config-body.in ) > libpng-config
+ chmod +x libpng-config
+
+ $(LIBNAME).so: $(LIBNAME).so.$(PNGMAJ)
+ ln -f -s $(LIBNAME).so.$(PNGMAJ) $(LIBNAME).so
+
+ $(LIBNAME).so.$(PNGMAJ): $(LIBNAME).so.$(PNGVER)
+ ln -f -s $(LIBNAME).so.$(PNGVER) $(LIBNAME).so.$(PNGMAJ)
+
+ $(LIBNAME).so.$(PNGVER): $(OBJS)
+ $(CC) -shared -o $@ $(OBJS) -L$(ZLIBLIB)
+ -soname $(LIBNAME).so.$(PNGMAJ)
+
+ libpng.so.3.$(PNGMIN): $(OBJS)
+ $(CC) -shared -o $@ $(OBJS) -L$(ZLIBLIB)
+ -soname libpng.so.3
+
+ pngtest: pngtest.o libpng.a
+ $(CC) -o pngtest $(CFLAGS) pngtest.o $(LDFLAGS)
+
+ test: pngtest
+ ./pngtest
+
+ install-headers: png.h pngconf.h
+ - at if [ ! -d $(DI) ]; then mkdir $(DI); fi
+ - at if [ ! -d $(DI)/$(LIBNAME) ]; then mkdir $(DI)/$(LIBNAME); fi
+ cp png.h pngconf.h $(DI)/$(LIBNAME)
+ chmod 644 $(DI)/$(LIBNAME)/png.h $(DI)/$(LIBNAME)/pngconf.h
+ -@/bin/rm -f $(DI)/png.h $(DI)/pngconf.h
+ -@/bin/rm -f $(DI)/libpng
+ (cd $(DI); ln -sf $(LIBNAME) libpng; ln -sf $(LIBNAME)/* .)
+
+ install-static: install-headers libpng.a
+ - at if [ ! -d $(DL) ]; then mkdir $(DL); fi
+ cp libpng.a $(DL)/$(LIBNAME).a
+ chmod 644 $(DL)/$(LIBNAME).a
+ -@/bin/rm -f $(DL)/libpng.a
+ (cd $(DL); ln -sf $(LIBNAME).a libpng.a)
+
+ install-shared: install-headers $(LIBNAME).so.$(PNGVER) libpng.pc \
+ libpng.so.3.$(PNGMIN)
+ - at if [ ! -d $(DL) ]; then mkdir $(DL); fi
+ -@/bin/rm -f $(DL)/$(LIBNAME).so.$(PNGVER)* $(DL)/$(LIBNAME).so
+ -@/bin/rm -f $(DL)/libpng.so
+ -@/bin/rm -f $(DL)/libpng.so.3
+ -@/bin/rm -f $(DL)/libpng.so.3.$(PNGMIN)*
+ cp $(LIBNAME).so.$(PNGVER) $(DL)
+ cp libpng.so.3.$(PNGMIN) $(DL)
+ chmod 755 $(DL)/$(LIBNAME).so.$(PNGVER)
+ chmod 755 $(DL)/libpng.so.3.$(PNGMIN)
+ (cd $(DL); \
+ ln -f -s libpng.so.3.$(PNGMIN) libpng.so.3; \
+ ln -f -s libpng.so.3 libpng.so; \
+ ln -sf $(LIBNAME).so.$(PNGVER) $(LIBNAME).so.$(PNGMAJ); \
+ ln -sf $(LIBNAME).so.$(PNGMAJ) $(LIBNAME).so)
+ - at if [ ! -d $(DL)/pkgconfig ]; then mkdir $(DL)/pkgconfig; fi
+ -@/bin/rm -f $(DL)/pkgconfig/$(LIBNAME).pc
+ -@/bin/rm -f $(DL)/pkgconfig/libpng.pc
+ cp libpng.pc $(DL)/pkgconfig/$(LIBNAME).pc
+ chmod 644 $(DL)/pkgconfig/$(LIBNAME).pc
+ (cd $(DL)/pkgconfig; ln -sf $(LIBNAME).pc libpng.pc)
+
+ install-man: libpng.3 libpngpf.3 png.5
+ - at if [ ! -d $(DM) ]; then mkdir $(DM); fi
+ - at if [ ! -d $(DM)/man3 ]; then mkdir $(DM)/man3; fi
+ -@/bin/rm -f $(DM)/man3/libpng.3
+ -@/bin/rm -f $(DM)/man3/libpngpf.3
+ cp libpng.3 $(DM)/man3
+ cp libpngpf.3 $(DM)/man3
+ - at if [ ! -d $(DM)/man5 ]; then mkdir $(DM)/man5; fi
+ -@/bin/rm -f $(DM)/man5/png.5
+ cp png.5 $(DM)/man5
+
+ install-config: libpng-config
+ - at if [ ! -d $(DB) ]; then mkdir $(DB); fi
+ -@/bin/rm -f $(DB)/libpng-config
+ -@/bin/rm -f $(DB)/$(LIBNAME)-config
+ cp libpng-config $(DB)/$(LIBNAME)-config
+ chmod 755 $(DB)/$(LIBNAME)-config
+ (cd $(DB); ln -sf $(LIBNAME)-config libpng-config)
+
+ install: install-static install-shared install-man install-config
+
+ # If you installed in $(DESTDIR), test-installed won't work until you
+ # move the library to its final location.
+
+ test-installed:
+ echo
+ echo Testing installed dynamic shared library.
+ $(CC) -w1 -I$(ZLIBINC) \
+ `$(BINPATH)/libpng12-config --cflags` pngtest.c \
+ -L$(ZLIBLIB) -R$(ZLIBLIB) \
+ -o pngtesti `$(BINPATH)/libpng12-config --ldflags`
+ ./pngtesti pngtest.png
+
+ clean:
+ /bin/rm -f *.o libpng.a pngtest pngtesti pngout.png \
+ libpng-config $(LIBNAME).so $(LIBNAME).so.$(PNGMAJ)* \
+ libpng.so.3.$(PNGMIN) \
+ libpng.pc
+
+ # DO NOT DELETE THIS LINE -- make depend depends on it.
+
+ png.o: png.h pngconf.h
+ pngerror.o: png.h pngconf.h
+ pngrio.o: png.h pngconf.h
+ pngwio.o: png.h pngconf.h
+ pngmem.o: png.h pngconf.h
+ pngset.o: png.h pngconf.h
+ pngget.o: png.h pngconf.h
+ pngread.o: png.h pngconf.h
+ pngrtran.o: png.h pngconf.h
+ pngrutil.o: png.h pngconf.h
+ pngtest.o: png.h pngconf.h
+ pngtrans.o: png.h pngconf.h
+ pngwrite.o: png.h pngconf.h
+ pngwtran.o: png.h pngconf.h
+ pngwutil.o: png.h pngconf.h
+ pngpread.o: png.h pngconf.h
+
Index: llvm/runtime/libpng/scripts/makefile.dj2
diff -c /dev/null llvm/runtime/libpng/scripts/makefile.dj2:1.1.2.1
*** /dev/null Mon Mar 1 17:58:58 2004
--- llvm/runtime/libpng/scripts/makefile.dj2 Mon Mar 1 17:58:47 2004
***************
*** 0 ****
--- 1,55 ----
+ # DJGPP (DOS gcc) makefile for libpng
+ # 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
+
+ # where make install will put libpng.a and png.h
+ #prefix=/usr/local
+ prefix=.
+ INCPATH=$(prefix)/include
+ LIBPATH=$(prefix)/lib
+
+ CC=gcc
+ CFLAGS=-I../zlib -O
+ LDFLAGS=-L. -L../zlib/ -lpng -lz -lm
+
+ RANLIB=ranlib
+
+ 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
+
+ all: libpng.a pngtest
+
+ libpng.a: $(OBJS)
+ ar rc $@ $(OBJS)
+ $(RANLIB) $@
+
+ pngtest: pngtest.o libpng.a
+ $(CC) -o pngtest $(CFLAGS) pngtest.o $(LDFLAGS)
+ coff2exe pngtest
+
+ test: pngtest
+ ./pngtest
+ clean:
+ rm -f *.o libpng.a pngtest pngout.png
+
+ # DO NOT DELETE THIS LINE -- make depend depends on it.
+
+ png.o: png.h pngconf.h
+ pngerror.o: png.h pngconf.h
+ pngrio.o: png.h pngconf.h
+ pngwio.o: png.h pngconf.h
+ pngmem.o: png.h pngconf.h
+ pngset.o: png.h pngconf.h
+ pngget.o: png.h pngconf.h
+ pngread.o: png.h pngconf.h
+ pngpread.o: png.h pngconf.h
+ pngrtran.o: png.h pngconf.h
+ pngrutil.o: png.h pngconf.h
+ pngtest.o: png.h pngconf.h
+ pngtrans.o: png.h pngconf.h
+ pngwrite.o: png.h pngconf.h
+ pngwtran.o: png.h pngconf.h
+ pngwutil.o: png.h pngconf.h
+
Index: llvm/runtime/libpng/scripts/makefile.freebsd
diff -c /dev/null llvm/runtime/libpng/scripts/makefile.freebsd:1.1.2.1
*** /dev/null Mon Mar 1 17:58:58 2004
--- llvm/runtime/libpng/scripts/makefile.freebsd Mon Mar 1 17:58:47 2004
***************
*** 0 ****
--- 1,48 ----
+ # makefile for libpng under FreeBSD
+ # Copyright (C) 2002 Glenn Randers-Pehrson and Andrey A. Chernov
+ # For conditions of distribution and use, see copyright notice in png.h
+
+ PREFIX?= /usr/local
+ SHLIB_VER?= 5
+
+ LIB= png
+ SHLIB_MAJOR= ${SHLIB_VER}
+ SHLIB_MINOR= 0
+ NOPROFILE= YES
+ NOOBJ= YES
+
+ # where make install puts libpng.a and png.h
+ DESTDIR= ${PREFIX}
+ LIBDIR= /lib
+ INCS= png.h pngconf.h
+ INCSDIR= /include/libpng
+ INCDIR= ${INCSDIR} # for 4.x bsd.lib.mk
+ MAN= libpng.3 libpngpf.3 png.5
+ MANDIR= /man/man
+ SYMLINKS= libpng/png.h ${INCSDIR}/../png.h \
+ libpng/pngconf.h ${INCSDIR}/../pngconf.h
+ LDADD+= -lm -lz
+ DPADD+= ${LIBM} ${LIBZ}
+
+ CFLAGS+= -I. -DPNG_USE_PNGGCCRD
+ .if (${MACHINE_ARCH} != "i386")
+ CFLAGS+= -DPNG_NO_ASSEMBLER_CODE
+ .endif
+
+ SRCS= 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 pnggccrd.c
+
+ pngtest: pngtest.o libpng.a
+ ${CC} ${CFLAGS} -L. -static -o pngtest pngtest.o -lpng -lz -lm
+
+ CLEANFILES= pngtest pngtest.o pngout.png
+
+ test: pngtest
+ ./pngtest
+
+ DOCS = ANNOUNCE CHANGES INSTALL KNOWNBUG LICENSE README TODO Y2KINFO
+ writelock:
+ chmod a-w *.[ch35] $(DOCS) scripts/*
+
+ .include <bsd.lib.mk>
Index: llvm/runtime/libpng/scripts/makefile.gcc
diff -c /dev/null llvm/runtime/libpng/scripts/makefile.gcc:1.1.2.1
*** /dev/null Mon Mar 1 17:58:58 2004
--- llvm/runtime/libpng/scripts/makefile.gcc Mon Mar 1 17:58:47 2004
***************
*** 0 ****
--- 1,66 ----
+ # makefile for libpng using gcc (generic, static library)
+ # 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
+
+ # Location of the zlib library and include files
+ ZLIBINC = ../zlib
+ ZLIBLIB = ../zlib
+
+ # Compiler, linker, lib and other tools
+ CC = gcc
+ LD = $(CC)
+ AR = ar rcs
+ RANLIB = ranlib
+ RM = rm -f
+
+ CDEBUG = -g -DPNG_DEBUG=5
+ LDDEBUG =
+ CRELEASE = -O2
+ LDRELEASE = -s
+ CFLAGS = -I$(ZLIBINC) -Wall $(CRELEASE)
+ LDFLAGS = -L. -L$(ZLIBLIB) -lpng -lz -lm $(LDRELEASE)
+
+ # File extensions
+ O=.o
+ A=.a
+ 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)
+
+ # Targets
+ all: libpng$(A) pngtest$(E)
+
+ libpng$(A): $(OBJS)
+ $(AR) $@ $(OBJS)
+ $(RANLIB) $@
+
+ test: pngtest$(E)
+ ./pngtest$(E)
+
+ pngtest$(E): pngtest$(O) libpng$(A)
+ $(LD) -o $@ pngtest$(O) $(LDFLAGS)
+
+ clean:
+ $(RM) *$(O) libpng$(A) pngtest$(E) pngout.png
+
+ png$(O): png.h pngconf.h
+ pngerror$(O): png.h pngconf.h
+ pngget$(O): png.h pngconf.h
+ pngmem$(O): png.h pngconf.h
+ pngpread$(O): png.h pngconf.h
+ pngread$(O): png.h pngconf.h
+ pngrio$(O): png.h pngconf.h
+ pngrtran$(O): png.h pngconf.h
+ pngrutil$(O): png.h pngconf.h
+ pngset$(O): png.h pngconf.h
+ pngtest$(O): png.h pngconf.h
+ pngtrans$(O): png.h pngconf.h
+ pngwio$(O): png.h pngconf.h
+ pngwrite$(O): png.h pngconf.h
+ pngwtran$(O): png.h pngconf.h
+ pngwutil$(O): png.h pngconf.h
+
Index: llvm/runtime/libpng/scripts/makefile.gcmmx
diff -c /dev/null llvm/runtime/libpng/scripts/makefile.gcmmx:1.1.2.1
*** /dev/null Mon Mar 1 17:58:58 2004
--- llvm/runtime/libpng/scripts/makefile.gcmmx Mon Mar 1 17:58:47 2004
***************
*** 0 ****
--- 1,249 ----
+ # makefile for libpng.a and libpng12.so on Linux ELF with gcc using MMX
+ # assembler code
+ # Copyright 2002 Greg Roelofs and Glenn Randers-Pehrson
+ # Copyright 1998-2001 Greg Roelofs
+ # Copyright 1996-1997 Andreas Dilger
+ # For conditions of distribution and use, see copyright notice in png.h
+
+ # CAUTION: Do not use this makefile with gcc versions 2.7.2.2 and earlier.
+
+ # WARNING: The assembler code in pnggccrd.c may not be thread safe.
+
+ # NOTE: When testing MMX performance on a multitasking system, make sure
+ # there are no floating-point programs (e.g., SETI at Home) running in
+ # the background! Context switches between MMX and FPU are expensive.
+
+ LIBNAME = libpng12
+ PNGMAJ = 0
+ PNGMIN = 1.2.5
+ PNGVER = $(PNGMAJ).$(PNGMIN)
+
+ CC=gcc
+
+ # 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.
+ #ZLIBLIB=/usr/local/lib
+ #ZLIBINC=/usr/local/include
+ ZLIBLIB=../zlib
+ ZLIBINC=../zlib
+
+ ALIGN=
+ # for i386:
+ #ALIGN=-malign-loops=2 -malign-functions=2
+
+ WARNMORE=-Wwrite-strings -Wpointer-arith -Wshadow \
+ -Wmissing-declarations -Wtraditional -Wcast-align \
+ -Wstrict-prototypes -Wmissing-prototypes #-Wconversion
+
+ # for pgcc version 2.95.1, -O3 is buggy; don't use it.
+
+ # Remove -DPNG_THREAD_UNSAFE_OK if you need thread safety
+ ### for generic gcc:
+ CFLAGS=-DPNG_THREAD_UNSAFE_OK -DPNG_USE_PNGGCCRD -I$(ZLIBINC) -Wall \
+ -O3 $(ALIGN) -funroll-loops \
+ -fomit-frame-pointer # $(WARNMORE) -g -DPNG_DEBUG=5
+ ### for gcc 2.95.2 on 686:
+ #CFLAGS=-DPNG_THREAD_UNSAFE_OK -DPNG_USE_PNGGCCRD -I$(ZLIBINC) -Wall -O3 \
+ # -mcpu=i686 -malign-double -ffast-math -fstrict-aliasing \
+ # $(ALIGN) -funroll-loops -funroll-all-loops -fomit-frame-pointer
+ ### for gcc 2.7.2.3 on 486 and up:
+ #CFLAGS=-DPNG_THREAD_UNSAFE_OK -DPNG_USE_PNGGCCRD -I$(ZLIBINC) -Wall -O3 \
+ # -m486 -malign-double -ffast-math \
+ # $(ALIGN) -funroll-loops -funroll-all-loops -fomit-frame-pointer
+
+ LDFLAGS=-L. -Wl,-rpath,. -L$(ZLIBLIB) -Wl,-rpath,$(ZLIBLIB) -lpng12 -lz -lm
+ LDFLAGS_A=-L$(ZLIBLIB) -Wl,-rpath,$(ZLIBLIB) libpng.a -lz -lm
+
+ RANLIB=ranlib
+ #RANLIB=echo
+
+ INCPATH=$(prefix)/include
+ LIBPATH=$(prefix)/lib
+ MANPATH=$(prefix)/man
+ BINPATH=$(prefix)/bin
+
+ # override DESTDIR= on the make install command line to easily support
+ # installing into a temporary location. Example:
+ #
+ # make install DESTDIR=/tmp/build/libpng
+ #
+ # If you're going to install into a temporary location
+ # via DESTDIR, $(DESTDIR)$(prefix) must already exist before
+ # you execute make install.
+ DESTDIR=
+
+ DB=$(DESTDIR)$(BINPATH)
+ DI=$(DESTDIR)$(INCPATH)
+ DL=$(DESTDIR)$(LIBPATH)
+ DM=$(DESTDIR)$(MANPATH)
+
+ 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
+
+ OBJSDLL = $(OBJS:.o=.pic.o)
+
+ .SUFFIXES: .c .o .pic.o
+
+ .c.pic.o:
+ $(CC) -c $(CFLAGS) -fPIC -o $@ $*.c
+
+ all: libpng.a $(LIBNAME).so pngtest pngtest-static libpng.pc libpng-config
+
+ libpng.a: $(OBJS)
+ ar rc $@ $(OBJS)
+ $(RANLIB) $@
+
+ libpng.pc:
+ cat scripts/libpng.pc.in | sed -e s\!@PREFIX@!$(prefix)! > libpng.pc
+
+ libpng-config:
+ ( cat scripts/libpng-config-head.in; \
+ echo prefix=\"$(prefix)\"; \
+ echo I_opts=\"-I$(INCPATH)/$(LIBNAME)\"; \
+ echo cppflags=\"-DPNG_THREAD_UNSAFE_OK -DPNG_USE_PNGGCCRD\"; \
+ echo L_opts=\"-L$(LIBPATH)\"; \
+ echo R_opts=\"-Wl,-rpath,$(LIBPATH)\"; \
+ echo libs=\"-lpng12 -lz -lm\"; \
+ cat scripts/libpng-config-body.in ) > libpng-config
+ chmod +x libpng-config
+
+ pnggccrd.o: pnggccrd.c png.h pngconf.h
+ $(CC) -c $(CFLAGS) -o $@ $*.c
+
+ pnggccrd.pic.o: pnggccrd.c png.h pngconf.h
+ $(CC) -c $(CFLAGS) -fPIC -o $@ pnggccrd.c
+
+ $(LIBNAME).so: $(LIBNAME).so.$(PNGMAJ)
+ ln -sf $(LIBNAME).so.$(PNGMAJ) $(LIBNAME).so
+
+ $(LIBNAME).so.$(PNGMAJ): $(LIBNAME).so.$(PNGVER)
+ ln -sf $(LIBNAME).so.$(PNGVER) $(LIBNAME).so.$(PNGMAJ)
+
+ $(LIBNAME).so.$(PNGVER): $(OBJSDLL)
+ $(CC) -shared -Wl,-soname,$(LIBNAME).so.$(PNGMAJ) \
+ -o $(LIBNAME).so.$(PNGVER) \
+ $(OBJSDLL)
+
+ libpng.so.3.$(PNGMIN): $(OBJSDLL)
+ $(CC) -shared -Wl,-soname,libpng.so.3 \
+ -o libpng.so.3.$(PNGMIN) \
+ $(OBJSDLL)
+
+ pngtest: pngtest.o $(LIBNAME).so
+ $(CC) -o pngtest $(CFLAGS) pngtest.o $(LDFLAGS)
+
+ pngtest-static: pngtest.o libpng.a
+ $(CC) -o pngtest-static $(CFLAGS) pngtest.o $(LDFLAGS_A)
+
+ test: pngtest pngtest-static
+ @echo ""
+ @echo " Running pngtest dynamically linked with $(LIBNAME).so:"
+ @echo ""
+ ./pngtest
+ @echo ""
+ @echo " Running pngtest statically linked with libpng.a:"
+ @echo ""
+ ./pngtest-static
+
+ install-headers: png.h pngconf.h
+ - at if [ ! -d $(DI) ]; then mkdir $(DI); fi
+ - at if [ ! -d $(DI)/$(LIBNAME) ]; then mkdir $(DI)/$(LIBNAME); fi
+ cp png.h pngconf.h $(DI)/$(LIBNAME)
+ chmod 644 $(DI)/$(LIBNAME)/png.h $(DI)/$(LIBNAME)/pngconf.h
+ -@/bin/rm -f $(DI)/png.h $(DI)/pngconf.h
+ -@/bin/rm -f $(DI)/libpng
+ (cd $(DI); ln -sf $(LIBNAME) libpng; ln -sf $(LIBNAME)/* .)
+
+ install-static: install-headers libpng.a
+ - at if [ ! -d $(DL) ]; then mkdir $(DL); fi
+ cp libpng.a $(DL)/$(LIBNAME).a
+ chmod 644 $(DL)/$(LIBNAME).a
+ -@/bin/rm -f $(DL)/libpng.a
+ (cd $(DL); ln -sf $(LIBNAME).a libpng.a)
+
+ install-shared: install-headers $(LIBNAME).so.$(PNGVER) libpng.pc \
+ libpng.so.3.$(PNGMIN)
+ - at if [ ! -d $(DL) ]; then mkdir $(DL); fi
+ -@/bin/rm -f $(DL)/$(LIBNAME).so.$(PNGVER)* $(DL)/$(LIBNAME).so
+ -@/bin/rm -f $(DL)/libpng.so
+ -@/bin/rm -f $(DL)/libpng.so.3
+ -@/bin/rm -f $(DL)/libpng.so.3.$(PNGMIN)*
+ cp $(LIBNAME).so.$(PNGVER) $(DL)
+ cp libpng.so.3.$(PNGMIN) $(DL)
+ chmod 755 $(DL)/$(LIBNAME).so.$(PNGVER)
+ chmod 755 $(DL)/libpng.so.3.$(PNGMIN)
+ (cd $(DL); \
+ ln -sf libpng.so.3.$(PNGMIN) libpng.so.3; \
+ ln -sf libpng.so.3 libpng.so; \
+ ln -sf $(LIBNAME).so.$(PNGVER) $(LIBNAME).so.$(PNGMAJ); \
+ ln -sf $(LIBNAME).so.$(PNGMAJ) $(LIBNAME).so)
+ - at if [ ! -d $(DL)/pkgconfig ]; then mkdir $(DL)/pkgconfig; fi
+ -@/bin/rm -f $(DL)/pkgconfig/$(LIBNAME).pc
+ -@/bin/rm -f $(DL)/pkgconfig/libpng.pc
+ cp libpng.pc $(DL)/pkgconfig/$(LIBNAME).pc
+ chmod 644 $(DL)/pkgconfig/$(LIBNAME).pc
+ (cd $(DL)/pkgconfig; ln -sf $(LIBNAME).pc libpng.pc)
+
+ install-man: libpng.3 libpngpf.3 png.5
+ - at if [ ! -d $(DM) ]; then mkdir $(DM); fi
+ - at if [ ! -d $(DM)/man3 ]; then mkdir $(DM)/man3; fi
+ -@/bin/rm -f $(DM)/man3/libpng.3
+ -@/bin/rm -f $(DM)/man3/libpngpf.3
+ cp libpng.3 $(DM)/man3
+ cp libpngpf.3 $(DM)/man3
+ - at if [ ! -d $(DM)/man5 ]; then mkdir $(DM)/man5; fi
+ -@/bin/rm -f $(DM)/man5/png.5
+ cp png.5 $(DM)/man5
+
+ install-config: libpng-config
+ - at if [ ! -d $(DB) ]; then mkdir $(DB); fi
+ -@/bin/rm -f $(DB)/libpng-config
+ -@/bin/rm -f $(DB)/$(LIBNAME)-config
+ cp libpng-config $(DB)/$(LIBNAME)-config
+ chmod 755 $(DB)/$(LIBNAME)-config
+ (cd $(DB); ln -sf $(LIBNAME)-config libpng-config)
+
+ install: install-static install-shared install-man install-config
+
+ # If you installed in $(DESTDIR), test-installed won't work until you
+ # move the library to its final location.
+
+ test-installed:
+ $(CC) -I$(ZLIBINC) \
+ `$(BINPATH)/libpng12-config --cflags` pngtest.c \
+ -L$(ZLIBLIB) -Wl,-rpath,$(ZLIBLIB) \
+ -o pngtesti `$(BINPATH)/libpng12-config --ldflags`
+ ./pngtesti pngtest.png
+
+ clean:
+ /bin/rm -f *.o libpng.a pngtest pngout.png libpng-config \
+ $(LIBNAME).so $(LIBNAME).so.$(PNGMAJ)* pngtest-static pngtesti \
+ libpng.so.3.$(PNGMIN) \
+ libpng.pc
+
+ DOCS = ANNOUNCE CHANGES INSTALL KNOWNBUG LICENSE README TODO Y2KINFO
+ writelock:
+ chmod a-w *.[ch35] $(DOCS) scripts/*
+
+ png.o png.pic.o: png.h pngconf.h png.c
+ pngerror.o pngerror.pic.o: png.h pngconf.h pngerror.c
+ pngrio.o pngrio.pic.o: png.h pngconf.h pngrio.c
+ pngwio.o pngwio.pic.o: png.h pngconf.h pngwio.c
+ pngmem.o pngmem.pic.o: png.h pngconf.h pngmem.c
+ pngset.o pngset.pic.o: png.h pngconf.h pngset.c
+ pngget.o pngget.pic.o: png.h pngconf.h pngget.c
+ pngread.o pngread.pic.o: png.h pngconf.h pngread.c
+ pngrtran.o pngrtran.pic.o: png.h pngconf.h pngrtran.c
+ pngrutil.o pngrutil.pic.o: png.h pngconf.h pngrutil.c
+ pngtrans.o pngtrans.pic.o: png.h pngconf.h pngtrans.c
+ pngwrite.o pngwrite.pic.o: png.h pngconf.h pngwrite.c
+ pngwtran.o pngwtran.pic.o: png.h pngconf.h pngwtran.c
+ pngwutil.o pngwutil.pic.o: png.h pngconf.h pngwutil.c
+ pngpread.o pngpread.pic.o: png.h pngconf.h pngpread.c
+
+ pngtest.o: png.h pngconf.h pngtest.c
Index: llvm/runtime/libpng/scripts/makefile.hpgcc
diff -c /dev/null llvm/runtime/libpng/scripts/makefile.hpgcc:1.1.2.1
*** /dev/null Mon Mar 1 17:58:58 2004
--- llvm/runtime/libpng/scripts/makefile.hpgcc Mon Mar 1 17:58:47 2004
***************
*** 0 ****
--- 1,217 ----
+ # makefile for libpng on HP-UX using GCC with the HP ANSI/C linker.
+ # Copyright (C) 2002, Glenn Randers-Pehrson
+ # Copyright (C) 2001, Laurent faillie
+ # Copyright (C) 1998, 1999 Greg Roelofs
+ # Copyright (C) 1996, 1997 Andreas Dilger
+ # For conditions of distribution and use, see copyright notice in png.h
+
+ CC=gcc
+ LD=ld
+
+ # where "make install" puts libpng.a, libpng.sl*, png.h and pngconf.h
+ prefix=/usr/local
+
+ # Where the zlib library and include files are located
+ ZLIBLIB=/opt/zlib/lib
+ ZLIBINC=/opt/zlib/include
+
+ # Note that if you plan to build a libpng shared library, zlib must also
+ # be a shared library, which zlib's configure does not do. After running
+ # zlib's configure, edit the appropriate lines of makefile to read:
+ # CFLAGS=-O1 -DHAVE_UNISTD -DUSE_MAP -fPIC \
+ # LDSHARED=ld -b
+ # SHAREDLIB=libz.sl
+
+ ALIGN=
+ # for i386:
+ #ALIGN=-malign-loops=2 -malign-functions=2
+
+ WARNMORE=-Wwrite-strings -Wpointer-arith -Wshadow \
+ -Wmissing-declarations -Wtraditional -Wcast-align \
+ -Wstrict-prototypes -Wmissing-prototypes #-Wconversion
+
+ # for pgcc version 2.95.1, -O3 is buggy; don't use it.
+
+ CFLAGS=-I$(ZLIBINC) -Wall -O3 -funroll-loops \
+ $(ALIGN) # $(WARNMORE) -g -DPNG_DEBUG=5
+ #LDFLAGS=-L. -Wl,-rpath,. -L$(ZLIBLIB) -Wl,-rpath,$(ZLIBLIB) -lpng12 -lz -lm
+ LDFLAGS=-L. -L$(ZLIBLIB) -lpng12 -lz -lm
+
+ RANLIB=ranlib
+ #RANLIB=echo
+
+ PNGMAJ = 0
+ PNGMIN = 1.2.5
+ PNGVER = $(PNGMAJ).$(PNGMIN)
+ LIBNAME = libpng12
+
+ INCPATH=$(prefix)/include
+ LIBPATH=$(prefix)/lib
+ MANPATH=$(prefix)/man
+ BINPATH=$(prefix)/bin
+
+ # override DESTDIR= on the make install command line to easily support
+ # installing into a temporary location. Example:
+ #
+ # make install DESTDIR=/tmp/build/libpng
+ #
+ # If you're going to install into a temporary location
+ # via DESTDIR, $(DESTDIR)$(prefix) must already exist before
+ # you execute make install.
+ DESTDIR=
+
+ DB=$(DESTDIR)$(BINPATH)
+ DI=$(DESTDIR)$(INCPATH)
+ DL=$(DESTDIR)$(LIBPATH)
+ DM=$(DESTDIR)$(MANPATH)
+
+ 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
+
+ OBJSDLL = $(OBJS:.o=.pic.o)
+
+ .SUFFIXES: .c .o .pic.o
+
+ .c.pic.o:
+ $(CC) -c $(CFLAGS) -fPIC -o $@ $*.c
+
+ all: libpng.a $(LIBNAME).sl pngtest libpng.pc libpng-config
+
+ libpng.a: $(OBJS)
+ ar rc $@ $(OBJS)
+ $(RANLIB) $@
+
+ libpng.pc:
+ cat scripts/libpng.pc.in | sed -e s\!@PREFIX@!$(prefix)! > libpng.pc
+
+ libpng-config:
+ ( cat scripts/libpng-config-head.in; \
+ echo prefix=\"$(prefix)\"; \
+ echo I_opts=\"-I$(INCPATH)/$(LIBNAME)\"; \
+ echo libs=\"-lpng12 -lz -lm\"; \
+ cat scripts/libpng-config-body.in ) > libpng-config
+ chmod +x libpng-config
+
+ $(LIBNAME).sl: $(LIBNAME).sl.$(PNGMAJ)
+ ln -sf $(LIBNAME).sl.$(PNGMAJ) $(LIBNAME).sl
+
+ $(LIBNAME).sl.$(PNGMAJ): $(LIBNAME).sl.$(PNGVER)
+ ln -sf $(LIBNAME).sl.$(PNGVER) $(LIBNAME).sl.$(PNGMAJ)
+
+ $(LIBNAME).sl.$(PNGVER): $(OBJSDLL)
+ $(LD) -b +s \
+ +h $(LIBNAME).sl.$(PNGMAJ) -o $(LIBNAME).sl.$(PNGVER) $(OBJSDLL)
+
+ libpng.sl.3.$(PNGMIN): $(OBJSDLL)
+ $(LD) -b +s \
+ +h libpng.sl.3 -o libpng.sl.3.$(PNGMIN) $(OBJSDLL)
+
+ pngtest: pngtest.o $(LIBNAME).sl
+ $(CC) -o pngtest $(CFLAGS) pngtest.o $(LDFLAGS)
+
+ test: pngtest
+ ./pngtest
+
+
+ install-headers: png.h pngconf.h
+ - at if [ ! -d $(DI) ]; then mkdir $(DI); fi
+ - at if [ ! -d $(DI)/$(LIBNAME) ]; then mkdir $(DI)/$(LIBNAME); fi
+ cp png.h pngconf.h $(DI)/$(LIBNAME)
+ chmod 644 $(DI)/$(LIBNAME)/png.h $(DI)/$(LIBNAME)/pngconf.h
+ -@/bin/rm -f $(DI)/png.h $(DI)/pngconf.h
+ -@/bin/rm -f $(DI)/libpng
+ (cd $(DI); ln -sf $(LIBNAME) libpng; ln -sf $(LIBNAME)/* .)
+
+ install-static: install-headers libpng.a
+ - at if [ ! -d $(DL) ]; then mkdir $(DL); fi
+ cp libpng.a $(DL)/$(LIBNAME).a
+ chmod 644 $(DL)/$(LIBNAME).a
+ -@/bin/rm -f $(DL)/libpng.a
+ (cd $(DL); ln -sf $(LIBNAME).a libpng.a)
+
+ install-shared: install-headers $(LIBNAME).sl.$(PNGVER) libpng.pc \
+ libpng.sl.3.$(PNGMIN)
+ - at if [ ! -d $(DL) ]; then mkdir $(DL); fi
+ -@/bin/rm -f $(DL)/$(LIBNAME).sl.$(PNGVER)* $(DL)/$(LIBNAME).sl
+ -@/bin/rm -f $(DL)/libpng.sl
+ -@/bin/rm -f $(DL)/libpng.sl.3
+ -@/bin/rm -f $(DL)/libpng.sl.3.$(PNGMIN)*
+ cp $(LIBNAME).sl.$(PNGVER) $(DL)
+ cp libpng.sl.3.$(PNGMIN) $(DL)
+ chmod 755 $(DL)/$(LIBNAME).sl.$(PNGVER)
+ chmod 755 $(DL)/libpng.sl.3.$(PNGMIN)
+ (cd $(DL); \
+ 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)
+ - at if [ ! -d $(DL)/pkgconfig ]; then mkdir $(DL)/pkgconfig; fi
+ -@/bin/rm -f $(DL)/pkgconfig/$(LIBNAME).pc
+ -@/bin/rm -f $(DL)/pkgconfig/libpng.pc
+ cp libpng.pc $(DL)/pkgconfig/$(LIBNAME).pc
+ chmod 644 $(DL)/pkgconfig/$(LIBNAME).pc
+ (cd $(DL)/pkgconfig; ln -sf $(LIBNAME).pc libpng.pc)
+
+ install-man: libpng.3 libpngpf.3 png.5
+ - at if [ ! -d $(DM) ]; then mkdir $(DM); fi
+ - at if [ ! -d $(DM)/man3 ]; then mkdir $(DM)/man3; fi
+ -@/bin/rm -f $(DM)/man3/libpng.3
+ -@/bin/rm -f $(DM)/man3/libpngpf.3
+ cp libpng.3 $(DM)/man3
+ cp libpngpf.3 $(DM)/man3
+ - at if [ ! -d $(DM)/man5 ]; then mkdir $(DM)/man5; fi
+ -@/bin/rm -f $(DM)/man5/png.5
+ cp png.5 $(DM)/man5
+
+ install-config: libpng-config
+ - at if [ ! -d $(DB) ]; then mkdir $(DB); fi
+ -@/bin/rm -f $(DB)/libpng-config
+ -@/bin/rm -f $(DB)/$(LIBNAME)-config
+ cp libpng-config $(DB)/$(LIBNAME)-config
+ chmod 755 $(DB)/$(LIBNAME)-config
+ (cd $(DB); ln -sf $(LIBNAME)-config libpng-config)
+
+ install: install-static install-shared install-man install-config
+
+ # If you installed in $(DESTDIR), test-installed won't work until you
+ # move the library to its final location.
+
+ test-installed:
+ echo
+ echo Testing installed dynamic shared library.
+ $(CC) -I$(ZLIBINC) \
+ `$(BINPATH)/libpng12-config --cflags` pngtest.c \
+ -L$(ZLIBLIB) -Wl,-rpath,$(ZLIBLIB) \
+ -o pngtesti `$(BINPATH)/libpng12-config --ldflags`
+ ./pngtesti pngtest.png
+
+ clean:
+ /bin/rm -f *.o libpng.a pngtest pngtesti pngout.png \
+ libpng-config $(LIBNAME).sl $(LIBNAME).sl.$(PNGMAJ)* \
+ libpng.sl.3.$(PNGMIN) \
+ libpng.pc
+
+ DOCS = ANNOUNCE CHANGES INSTALL KNOWNBUG LICENSE README TODO Y2KINFO
+ writelock:
+ chmod a-w *.[ch35] $(DOCS) scripts/*
+
+ # DO NOT DELETE THIS LINE -- make depend depends on it.
+
+ png.o png.pic.o: png.h pngconf.h
+ pngerror.o pngerror.pic.o: png.h pngconf.h
+ pngrio.o pngrio.pic.o: png.h pngconf.h
+ pngwio.o pngwio.pic.o: png.h pngconf.h
+ pngmem.o pngmem.pic.o: png.h pngconf.h
+ pngset.o pngset.pic.o: png.h pngconf.h
+ pngget.o pngget.pic.o: png.h pngconf.h
+ pngread.o pngread.pic.o: png.h pngconf.h
+ pngrtran.o pngrtran.pic.o: png.h pngconf.h
+ pngrutil.o pngrutil.pic.o: png.h pngconf.h
+ pngtrans.o pngtrans.pic.o: png.h pngconf.h
+ pngwrite.o pngwrite.pic.o: png.h pngconf.h
+ pngwtran.o pngwtran.pic.o: png.h pngconf.h
+ pngwutil.o pngwutil.pic.o: png.h pngconf.h
+ pngpread.o pngpread.pic.o: png.h pngconf.h
+
+ pngtest.o: png.h pngconf.h
Index: llvm/runtime/libpng/scripts/makefile.hpux
diff -c /dev/null llvm/runtime/libpng/scripts/makefile.hpux:1.1.2.1
*** /dev/null Mon Mar 1 17:58:58 2004
--- llvm/runtime/libpng/scripts/makefile.hpux Mon Mar 1 17:58:47 2004
***************
*** 0 ****
--- 1,202 ----
+ # makefile for libpng, HPUX (10.20 and 11.00) using the ANSI/C product.
+ # Copyright (C) 1999-2002 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
+
+ # Where the zlib library and include files are located
+ ZLIBLIB=/opt/zlib/lib
+ ZLIBINC=/opt/zlib/include
+
+ # Note that if you plan to build a libpng shared library, zlib must also
+ # be a shared library, which zlib's configure does not do. After running
+ # zlib's configure, edit the appropriate lines of makefile to read:
+ # CFLAGS=-O1 -DHAVE_UNISTD -DUSE_MAP -fPIC \
+ # LDSHARED=ld -b
+ # SHAREDLIB=libz.sl
+
+ CC=cc
+ CFLAGS=-I$(ZLIBINC) -O -Ae +DA1.1 +DS2.0
+ # Caution: be sure you have built zlib with the same CFLAGS.
+ CCFLAGS=-I$(ZLIBINC) -O -Ae +DA1.1 +DS2.0
+ LDFLAGS=-L. -L$(ZLIBLIB) -lpng -lz -lm
+
+ RANLIB=ranlib
+
+ PNGMAJ = 0
+ PNGMIN = 1.2.5
+ PNGVER = $(PNGMAJ).$(PNGMIN)
+ LIBNAME = libpng12
+
+ # where make install puts libpng.a, libpng12.sl, and png.h
+ prefix=/opt/libpng
+ INCPATH=$(prefix)/include
+ LIBPATH=$(prefix)/lib
+ MANPATH=$(prefix)/man
+ BINPATH=$(prefix)/bin
+
+ # override DESTDIR= on the make install command line to easily support
+ # installing into a temporary location. Example:
+ #
+ # make install DESTDIR=/tmp/build/libpng
+ #
+ # If you're going to install into a temporary location
+ # via DESTDIR, $(DESTDIR)$(prefix) must already exist before
+ # you execute make install.
+ DESTDIR=
+
+ DB=$(DESTDIR)$(BINPATH)
+ DI=$(DESTDIR)$(INCPATH)
+ DL=$(DESTDIR)$(LIBPATH)
+ DM=$(DESTDIR)$(MANPATH)
+
+ 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
+
+ OBJSDLL = $(OBJS:.o=.pic.o)
+
+ .SUFFIXES: .c .o .pic.o
+
+ .c.pic.o:
+ $(CC) -c $(CFLAGS) +z -o $@ $*.c
+
+ all: libpng.a $(LIBNAME).sl pngtest libpng.pc libpng-config
+
+ libpng.a: $(OBJS)
+ ar rc $@ $(OBJS)
+ $(RANLIB) $@
+
+ libpng.pc:
+ cat scripts/libpng.pc.in | sed -e s\!@PREFIX@!$(prefix)! > libpng.pc
+
+ libpng-config:
+ ( cat scripts/libpng-config-head.in; \
+ echo prefix=\"$(prefix)\"; \
+ echo I_opts=\"-I$(INCPATH)/$(LIBNAME)\"; \
+ echo ccopts=\"-Ae +DA1.1 +DS2.0\"; \
+ echo L_opts=\"-L$(LIBPATH)\"; \
+ echo libs=\"-lpng12 -lz -lm\"; \
+ cat scripts/libpng-config-body.in ) > libpng-config
+ chmod +x libpng-config
+
+ $(LIBNAME).sl: $(LIBNAME).sl.$(PNGMAJ)
+ ln -sf $(LIBNAME).sl.$(PNGMAJ) $(LIBNAME).sl
+
+ $(LIBNAME).sl.$(PNGMAJ): $(LIBNAME).sl.$(PNGVER)
+ ln -sf $(LIBNAME).sl.$(PNGVER) $(LIBNAME).sl.$(PNGMAJ)
+
+ $(LIBNAME).sl.$(PNGVER): $(OBJSDLL)
+ $(LD) -b +s \
+ +h $(LIBNAME).sl.$(PNGMAJ) -o $(LIBNAME).sl.$(PNGVER) $(OBJSDLL)
+
+ libpng.sl.3.$(PNGMIN): $(OBJSDLL)
+ $(LD) -b +s \
+ +h libpng.sl.3 -o libpng.sl.3.$(PNGMIN) $(OBJSDLL)
+
+ pngtest: pngtest.o libpng.a
+ $(CC) -o pngtest $(CCFLAGS) pngtest.o $(LDFLAGS)
+
+ test: pngtest
+ ./pngtest
+
+ install-headers: png.h pngconf.h
+ - at if [ ! -d $(DI) ]; then mkdir $(DI); fi
+ - at if [ ! -d $(DI)/$(LIBNAME) ]; then mkdir $(DI)/$(LIBNAME); fi
+ cp png.h pngconf.h $(DI)/$(LIBNAME)
+ chmod 644 $(DI)/$(LIBNAME)/png.h $(DI)/$(LIBNAME)/pngconf.h
+ -@/bin/rm -f $(DI)/png.h $(DI)/pngconf.h
+ -@/bin/rm -f $(DI)/libpng
+ (cd $(DI); ln -sf $(LIBNAME) libpng; ln -sf $(LIBNAME)/* .)
+
+ install-static: install-headers libpng.a
+ - at if [ ! -d $(DL) ]; then mkdir $(DL); fi
+ cp libpng.a $(DL)/$(LIBNAME).a
+ chmod 644 $(DL)/$(LIBNAME).a
+ -@/bin/rm -f $(DL)/libpng.a
+ (cd $(DL); ln -sf $(LIBNAME).a libpng.a)
+
+ install-shared: install-headers $(LIBNAME).sl.$(PNGVER) libpng.pc \
+ libpng.sl.3.$(PNGMIN)
+ - at if [ ! -d $(DL) ]; then mkdir $(DL); fi
+ -@/bin/rm -f $(DL)/$(LIBNAME).sl.$(PNGVER)* $(DL)/$(LIBNAME).sl
+ -@/bin/rm -f $(DL)/libpng.sl
+ -@/bin/rm -f $(DL)/libpng.sl.3
+ -@/bin/rm -f $(DL)/libpng.sl.3.$(PNGMIN)*
+ cp $(LIBNAME).sl.$(PNGVER) $(DL)
+ cp libpng.sl.3.$(PNGMIN) $(DL)
+ chmod 755 $(DL)/$(LIBNAME).sl.$(PNGVER)
+ chmod 755 $(DL)/libpng.sl.3.$(PNGMIN)
+ (cd $(DL); \
+ 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)
+ - at if [ ! -d $(DL)/pkgconfig ]; then mkdir $(DL)/pkgconfig; fi
+ -@/bin/rm -f $(DL)/pkgconfig/$(LIBNAME).pc
+ -@/bin/rm -f $(DL)/pkgconfig/libpng.pc
+ cp libpng.pc $(DL)/pkgconfig/$(LIBNAME).pc
+ chmod 644 $(DL)/pkgconfig/$(LIBNAME).pc
+ (cd $(DL)/pkgconfig; ln -sf $(LIBNAME).pc libpng.pc)
+
+ install-man: libpng.3 libpngpf.3 png.5
+ - at if [ ! -d $(DM) ]; then mkdir $(DM); fi
+ - at if [ ! -d $(DM)/man3 ]; then mkdir $(DM)/man3; fi
+ -@/bin/rm -f $(DM)/man3/libpng.3
+ -@/bin/rm -f $(DM)/man3/libpngpf.3
+ cp libpng.3 $(DM)/man3
+ cp libpngpf.3 $(DM)/man3
+ - at if [ ! -d $(DM)/man5 ]; then mkdir $(DM)/man5; fi
+ -@/bin/rm -f $(DM)/man5/png.5
+ cp png.5 $(DM)/man5
+
+ install-config: libpng-config
+ - at if [ ! -d $(DB) ]; then mkdir $(DB); fi
+ -@/bin/rm -f $(DB)/libpng-config
+ -@/bin/rm -f $(DB)/$(LIBNAME)-config
+ cp libpng-config $(DB)/$(LIBNAME)-config
+ chmod 755 $(DB)/$(LIBNAME)-config
+ (cd $(DB); ln -sf $(LIBNAME)-config libpng-config)
+
+ install: install-static install-shared install-man install-config
+
+ # If you installed in $(DESTDIR), test-installed won't work until you
+ # move the library to its final location.
+
+ test-installed:
+ echo
+ echo Testing installed dynamic shared library.
+ $(CC) $(CCFLAGS) \
+ `$(BINPATH)/libpng12-config --cflags` pngtest.c \
+ -L$(ZLIBLIB) \
+ -o pngtesti `$(BINPATH)/libpng12-config --ldflags`
+ ./pngtesti pngtest.png
+
+ clean:
+ /bin/rm -f *.o libpng.a pngtest pngtesti pngout.png \
+ libpng-config $(LIBNAME).sl $(LIBNAME).sl.$(PNGMAJ)* \
+ libpng.sl.3.$(PNGMIN) \
+ libpng.pc
+
+ DOCS = ANNOUNCE CHANGES INSTALL KNOWNBUG LICENSE README TODO Y2KINFO
+ writelock:
+ chmod a-w *.[ch35] $(DOCS) scripts/*
+
+ # DO NOT DELETE THIS LINE -- make depend depends on it.
+
+ png.o: png.h pngconf.h
+ pngerror.o: png.h pngconf.h
+ pngrio.o: png.h pngconf.h
+ pngwio.o: png.h pngconf.h
+ pngmem.o: png.h pngconf.h
+ pngset.o: png.h pngconf.h
+ pngget.o: png.h pngconf.h
+ pngread.o: png.h pngconf.h
+ pngrtran.o: png.h pngconf.h
+ pngrutil.o: png.h pngconf.h
+ pngtest.o: png.h pngconf.h
+ pngtrans.o: png.h pngconf.h
+ pngwrite.o: png.h pngconf.h
+ pngwtran.o: png.h pngconf.h
+ pngwutil.o: png.h pngconf.h
+ pngpread.o: png.h pngconf.h
Index: llvm/runtime/libpng/scripts/makefile.ibmc
diff -c /dev/null llvm/runtime/libpng/scripts/makefile.ibmc:1.1.2.1
*** /dev/null Mon Mar 1 17:58:58 2004
--- llvm/runtime/libpng/scripts/makefile.ibmc Mon Mar 1 17:58:47 2004
***************
*** 0 ****
--- 1,71 ----
+ # Makefile for libpng (static)
+ # IBM C version 3.x for Win32 and OS/2
+ # Copyright (C) 2000 Cosmin Truta
+ # For conditions of distribution and use, see copyright notice in png.h
+ # Notes:
+ # Derived from makefile.std
+ # All modules are compiled in C mode
+ # Tested under Win32, expected to work under OS/2
+ # Can be easily adapted for IBM VisualAge/C++ for AIX
+
+ # Location of the zlib library and include files
+ ZLIBINC = ../zlib
+ ZLIBLIB = ../zlib
+
+ # Compiler, linker, lib and other tools
+ CC = icc
+ LD = ilink
+ AR = ilib
+ RM = del
+
+ CFLAGS = -I$(ZLIBINC) -Mc -O2 -W3
+ LDFLAGS =
+
+ # File extensions
+ O=.obj
+ A=.lib
+ E=.exe
+
+ # 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)
+
+ LIBS = libpng$(A) $(ZLIBLIB)/zlib$(A)
+
+ # Targets
+ all: libpng$(A) pngtest$(E)
+
+ libpng$(A): $(OBJS)
+ $(AR) -out:$@ $(OBJS)
+
+ test: pngtest$(E)
+ pngtest$(E)
+
+ pngtest: pngtest$(E)
+
+ pngtest$(E): pngtest$(O) libpng$(A)
+ $(LD) $(LDFLAGS) pngtest$(O) $(LIBS)
+
+ clean:
+ $(RM) *$(O)
+ $(RM) libpng$(A)
+ $(RM) pngtest$(E)
+ $(RM) pngout.png
+
+ png$(O): png.h pngconf.h
+ pngerror$(O): png.h pngconf.h
+ pngget$(O): png.h pngconf.h
+ pngmem$(O): png.h pngconf.h
+ pngpread$(O): png.h pngconf.h
+ pngread$(O): png.h pngconf.h
+ pngrio$(O): png.h pngconf.h
+ pngrtran$(O): png.h pngconf.h
+ pngrutil$(O): png.h pngconf.h
+ pngset$(O): png.h pngconf.h
+ pngtest$(O): png.h pngconf.h
+ pngtrans$(O): png.h pngconf.h
+ pngwio$(O): png.h pngconf.h
+ pngwrite$(O): png.h pngconf.h
+ pngwtran$(O): png.h pngconf.h
+ pngwutil$(O): png.h pngconf.h
Index: llvm/runtime/libpng/scripts/makefile.intel
diff -c /dev/null llvm/runtime/libpng/scripts/makefile.intel:1.1.2.1
*** /dev/null Mon Mar 1 17:58:58 2004
--- llvm/runtime/libpng/scripts/makefile.intel Mon Mar 1 17:58:47 2004
***************
*** 0 ****
--- 1,114 ----
+ # Makefile for libpng
+ # Microsoft Visual C++ with Intel C/C++ Compiler 4.0 and later
+
+ # 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
+
+ # To use, do "nmake /f scripts\makefile.intel"
+
+
+ # ------------------- Intel C/C++ Compiler 4.0 and later -------------------
+
+ # 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
+ ZLIBINC=..\zlib
+
+ # Target CPU
+ CPU=6 # Pentium II
+ #CPU=5 # Pentium
+
+ # Calling convention
+ CALLING=r # __fastcall
+ #CALLING=z # __stdcall
+ #CALLING=d # __cdecl
+
+ # Uncomment next to put error messages in a file
+ #ERRFILE=>>pngerrs
+
+ # --------------------------------------------------------------------------
+
+
+ CC=icl -c
+ CFLAGS=-O2 -G$(CPU)$(CALLING) -Qip -Qunroll4 -I$(ZLIBINC) $(ASMCODE) -nologo
+ LD=link
+ LDFLAGS=/SUBSYSTEM:CONSOLE /NOLOGO
+
+ O=.obj
+
+ OBJS=png$(O) pngset$(O) pngget$(O) pngrutil$(O) pngtrans$(O) pngwutil$(O) \
+ pngmem$(O) pngpread$(O) pngread$(O) pngerror$(O) pngwrite$(O) \
+ pngrtran$(O) pngwtran$(O) pngrio$(O) pngwio$(O) pngvcrd$(O)
+
+
+ all: test
+
+ png$(O): png.h pngconf.h
+ $(CC) $(CFLAGS) $*.c $(ERRFILE)
+
+ pngset$(O): png.h pngconf.h
+ $(CC) $(CFLAGS) $*.c $(ERRFILE)
+
+ pngget$(O): png.h pngconf.h
+ $(CC) $(CFLAGS) $*.c $(ERRFILE)
+
+ pngread$(O): png.h pngconf.h
+ $(CC) $(CFLAGS) $*.c $(ERRFILE)
+
+ pngpread$(O): png.h pngconf.h
+ $(CC) $(CFLAGS) $*.c $(ERRFILE)
+
+ pngrtran$(O): png.h pngconf.h
+ $(CC) $(CFLAGS) $*.c $(ERRFILE)
+
+ pngrutil$(O): png.h pngconf.h
+ $(CC) $(CFLAGS) $*.c $(ERRFILE)
+
+ pngvcrd$(O): png.h pngconf.h
+ $(CC) $(CFLAGS) $*.c $(ERRFILE)
+
+ pngerror$(O): png.h pngconf.h
+ $(CC) $(CFLAGS) $*.c $(ERRFILE)
+
+ pngmem$(O): png.h pngconf.h
+ $(CC) $(CFLAGS) $*.c $(ERRFILE)
+
+ pngrio$(O): png.h pngconf.h
+ $(CC) $(CFLAGS) $*.c $(ERRFILE)
+
+ pngwio$(O): png.h pngconf.h
+ $(CC) $(CFLAGS) $*.c $(ERRFILE)
+
+ pngtest$(O): png.h pngconf.h
+ $(CC) $(CFLAGS) $*.c $(ERRFILE)
+
+ pngtrans$(O): png.h pngconf.h
+ $(CC) $(CFLAGS) $*.c $(ERRFILE)
+
+ pngwrite$(O): png.h pngconf.h
+ $(CC) $(CFLAGS) $*.c $(ERRFILE)
+
+ pngwtran$(O): png.h pngconf.h
+ $(CC) $(CFLAGS) $*.c $(ERRFILE)
+
+ pngwutil$(O): png.h pngconf.h
+ $(CC) $(CFLAGS) $*.c $(ERRFILE)
+
+ libpng.lib: $(OBJS)
+ if exist libpng.lib del libpng.lib
+ lib /NOLOGO /OUT:libpng.lib $(OBJS)
+
+ pngtest.exe: pngtest.obj libpng.lib
+ $(LD) $(LDFLAGS) /OUT:pngtest.exe pngtest.obj libpng.lib $(ZLIBLIB)\zlib.lib
+
+ test: pngtest.exe
+ pngtest.exe
+
+
+ # End of makefile for libpng
Index: llvm/runtime/libpng/scripts/makefile.knr
diff -c /dev/null llvm/runtime/libpng/scripts/makefile.knr:1.1.2.1
*** /dev/null Mon Mar 1 17:58:58 2004
--- llvm/runtime/libpng/scripts/makefile.knr Mon Mar 1 17:58:47 2004
***************
*** 0 ****
--- 1,99 ----
+ # makefile for libpng
+ # 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
+
+ # This makefile requires the file ansi2knr.c, which you can get
+ # from the Ghostscript ftp site at ftp://ftp.cs.wisc.edu/ghost/
+ # If you have libjpeg, you probably already have ansi2knr.c in the jpeg
+ # source distribution.
+
+ # where make install puts libpng.a and png.h
+ prefix=/usr/local
+ INCPATH=$(prefix)/include
+ LIBPATH=$(prefix)/lib
+
+ # override DESTDIR= on the make install command line to easily support
+ # installing into a temporary location. Example:
+ #
+ # make install DESTDIR=/tmp/build/libpng
+ #
+ # If you're going to install into a temporary location
+ # via DESTDIR, $(DESTDIR)$(prefix) must already exist before
+ # you execute make install.
+ DESTDIR=
+
+ CC=cc
+ CFLAGS=-I../zlib -O
+ LDFLAGS=-L. -L../zlib/ -lpng -lz -lm
+ # flags for ansi2knr
+ ANSI2KNRFLAGS=
+
+ RANLIB=ranlib
+ #RANLIB=echo
+
+ 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
+
+ all: ansi2knr libpng.a pngtest
+
+ # general rule to allow ansi2knr to work
+ .c.o:
+ ./ansi2knr $*.c T$*.c
+ $(CC) $(CFLAGS) -c T$*.c
+ rm -f T$*.c $*.o
+ mv T$*.o $*.o
+
+ ansi2knr: ansi2knr.c
+ $(CC) $(CFLAGS) $(ANSI2KNRFLAGS) -o ansi2knr ansi2knr.c
+
+ libpng.a: ansi2knr $(OBJS)
+ ar rc $@ $(OBJS)
+ $(RANLIB) $@
+
+ pngtest: pngtest.o libpng.a
+ $(CC) -o pngtest $(CFLAGS) pngtest.o $(LDFLAGS)
+
+ test: pngtest
+ ./pngtest
+
+ install: libpng.a
+ - at mkdir $(DESTDIR)$(INCPATH)
+ - at mkdir $(DESTDIR)$(INCPATH)/libpng
+ - at mkdir $(DESTDIR)$(LIBPATH)
+ - at rm -f $(DESTDIR)$(INCPATH)/png.h
+ - at rm -f $(DESTDIR)$(INCPATH)/pngconf.h
+ cp png.h $(DESTDIR)$(INCPATH)/libpng
+ cp pngconf.h $(DESTDIR)$(INCPATH)/libpng
+ chmod 644 $(DESTDIR)$(INCPATH)/libpng/png.h
+ chmod 644 $(DESTDIR)$(INCPATH)/libpng/pngconf.h
+ (cd $(DESTDIR)$(INCPATH); ln -f -s libpng/* .)
+ cp libpng.a $(DESTDIR)$(LIBPATH)
+ chmod 644 $(DESTDIR)$(LIBPATH)/libpng.a
+
+ clean:
+ rm -f *.o libpng.a pngtest pngout.png ansi2knr
+
+ DOCS = ANNOUNCE CHANGES INSTALL KNOWNBUG LICENSE README TODO Y2KINFO
+ writelock:
+ chmod a-w *.[ch35] $(DOCS) scripts/*
+
+ # DO NOT DELETE THIS LINE -- make depend depends on it.
+
+ png.o: png.h pngconf.h
+ pngerror.o: png.h pngconf.h
+ pngrio.o: png.h pngconf.h
+ pngwio.o: png.h pngconf.h
+ pngmem.o: png.h pngconf.h
+ pngset.o: png.h pngconf.h
+ pngget.o: png.h pngconf.h
+ pngread.o: png.h pngconf.h
+ pngpread.o: png.h pngconf.h
+ pngrtran.o: png.h pngconf.h
+ pngrutil.o: png.h pngconf.h
+ pngtest.o: png.h pngconf.h
+ pngtrans.o: png.h pngconf.h
+ pngwrite.o: png.h pngconf.h
+ pngwtran.o: png.h pngconf.h
+ pngwutil.o: png.h pngconf.h
Index: llvm/runtime/libpng/scripts/makefile.linux
diff -c /dev/null llvm/runtime/libpng/scripts/makefile.linux:1.1.2.1
*** /dev/null Mon Mar 1 17:58:58 2004
--- llvm/runtime/libpng/scripts/makefile.linux Mon Mar 1 17:58:47 2004
***************
*** 0 ****
--- 1,223 ----
+ # makefile for libpng.a and libpng12.so on Linux ELF with gcc
+ # Copyright (C) 1998, 1999, 2002 Greg Roelofs and Glenn Randers-Pehrson
+ # Copyright (C) 1996, 1997 Andreas Dilger
+ # For conditions of distribution and use, see copyright notice in png.h
+
+ LIBNAME = libpng12
+ PNGMAJ = 0
+ PNGMIN = 1.2.5
+ PNGVER = $(PNGMAJ).$(PNGMIN)
+
+ CC=gcc
+
+ # 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.
+ #ZLIBLIB=/usr/local/lib
+ #ZLIBINC=/usr/local/include
+ ZLIBLIB=../zlib
+ ZLIBINC=../zlib
+
+ ALIGN=
+ # for i386:
+ #ALIGN=-malign-loops=2 -malign-functions=2
+
+ WARNMORE=-Wwrite-strings -Wpointer-arith -Wshadow \
+ -Wmissing-declarations -Wtraditional -Wcast-align \
+ -Wstrict-prototypes -Wmissing-prototypes #-Wconversion
+
+ # for pgcc version 2.95.1, -O3 is buggy; don't use it.
+
+ CFLAGS=-I$(ZLIBINC) -Wall -O3 -funroll-loops \
+ $(ALIGN) # $(WARNMORE) -g -DPNG_DEBUG=5
+
+ LDFLAGS=-L. -Wl,-rpath,. -L$(ZLIBLIB) -Wl,-rpath,$(ZLIBLIB) -lpng12 -lz -lm
+ LDFLAGS_A=-L$(ZLIBLIB) -Wl,-rpath,$(ZLIBLIB) libpng.a -lz -lm
+
+ RANLIB=ranlib
+ #RANLIB=echo
+
+ INCPATH=$(prefix)/include
+ LIBPATH=$(prefix)/lib
+ MANPATH=$(prefix)/man
+ BINPATH=$(prefix)/bin
+
+ # override DESTDIR= on the make install command line to easily support
+ # installing into a temporary location. Example:
+ #
+ # make install DESTDIR=/tmp/build/libpng
+ #
+ # If you're going to install into a temporary location
+ # via DESTDIR, $(DESTDIR)$(prefix) must already exist before
+ # you execute make install.
+ DESTDIR=
+
+ DB=$(DESTDIR)$(BINPATH)
+ DI=$(DESTDIR)$(INCPATH)
+ DL=$(DESTDIR)$(LIBPATH)
+ DM=$(DESTDIR)$(MANPATH)
+
+ 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
+
+ OBJSDLL = $(OBJS:.o=.pic.o)
+
+ .SUFFIXES: .c .o .pic.o
+
+ .c.pic.o:
+ $(CC) -c $(CFLAGS) -fPIC -o $@ $*.c
+
+ all: libpng.a $(LIBNAME).so pngtest pngtest-static libpng.pc libpng-config
+
+ libpng.a: $(OBJS)
+ ar rc $@ $(OBJS)
+ $(RANLIB) $@
+
+ libpng.pc:
+ cat scripts/libpng.pc.in | sed -e s\!@PREFIX@!$(prefix)! > libpng.pc
+
+ libpng-config:
+ ( cat scripts/libpng-config-head.in; \
+ echo prefix=\"$(prefix)\"; \
+ echo I_opts=\"-I$(INCPATH)/$(LIBNAME)\"; \
+ echo L_opts=\"-L$(LIBPATH)\"; \
+ echo R_opts=\"-Wl,-rpath,$(LIBPATH)\"; \
+ echo libs=\"-lpng12 -lz -lm\"; \
+ cat scripts/libpng-config-body.in ) > libpng-config
+ chmod +x libpng-config
+
+ $(LIBNAME).so: $(LIBNAME).so.$(PNGMAJ)
+ ln -sf $(LIBNAME).so.$(PNGMAJ) $(LIBNAME).so
+
+ $(LIBNAME).so.$(PNGMAJ): $(LIBNAME).so.$(PNGVER)
+ ln -sf $(LIBNAME).so.$(PNGVER) $(LIBNAME).so.$(PNGMAJ)
+
+ $(LIBNAME).so.$(PNGVER): $(OBJSDLL)
+ $(CC) -shared -Wl,-soname,$(LIBNAME).so.$(PNGMAJ) \
+ -o $(LIBNAME).so.$(PNGVER) \
+ $(OBJSDLL)
+
+ libpng.so.3.$(PNGMIN): $(OBJSDLL)
+ $(CC) -shared -Wl,-soname,libpng.so.3 \
+ -o libpng.so.3.$(PNGMIN) \
+ $(OBJSDLL)
+
+ pngtest: pngtest.o $(LIBNAME).so
+ $(CC) -o pngtest $(CFLAGS) pngtest.o $(LDFLAGS)
+
+ pngtest-static: pngtest.o libpng.a
+ $(CC) -o pngtest-static $(CFLAGS) pngtest.o $(LDFLAGS_A)
+
+ test: pngtest pngtest-static
+ @echo ""
+ @echo " Running pngtest dynamically linked with $(LIBNAME).so:"
+ @echo ""
+ ./pngtest
+ @echo ""
+ @echo " Running pngtest statically linked with libpng.a:"
+ @echo ""
+ ./pngtest-static
+
+ install-headers: png.h pngconf.h
+ - at if [ ! -d $(DI) ]; then mkdir $(DI); fi
+ - at if [ ! -d $(DI)/$(LIBNAME) ]; then mkdir $(DI)/$(LIBNAME); fi
+ cp png.h pngconf.h $(DI)/$(LIBNAME)
+ chmod 644 $(DI)/$(LIBNAME)/png.h $(DI)/$(LIBNAME)/pngconf.h
+ -@/bin/rm -f $(DI)/png.h $(DI)/pngconf.h
+ -@/bin/rm -f $(DI)/libpng
+ (cd $(DI); ln -sf $(LIBNAME) libpng; ln -sf $(LIBNAME)/* .)
+
+ install-static: install-headers libpng.a
+ - at if [ ! -d $(DL) ]; then mkdir $(DL); fi
+ cp libpng.a $(DL)/$(LIBNAME).a
+ chmod 644 $(DL)/$(LIBNAME).a
+ -@/bin/rm -f $(DL)/libpng.a
+ (cd $(DL); ln -sf $(LIBNAME).a libpng.a)
+
+ install-shared: install-headers $(LIBNAME).so.$(PNGVER) libpng.pc \
+ libpng.so.3.$(PNGMIN)
+ - at if [ ! -d $(DL) ]; then mkdir $(DL); fi
+ -@/bin/rm -f $(DL)/$(LIBNAME).so.$(PNGVER)* $(DL)/$(LIBNAME).so
+ -@/bin/rm -f $(DL)/libpng.so
+ -@/bin/rm -f $(DL)/libpng.so.3
+ -@/bin/rm -f $(DL)/libpng.so.3.$(PNGMIN)*
+ cp $(LIBNAME).so.$(PNGVER) $(DL)
+ cp libpng.so.3.$(PNGMIN) $(DL)
+ chmod 755 $(DL)/$(LIBNAME).so.$(PNGVER)
+ chmod 755 $(DL)/libpng.so.3.$(PNGMIN)
+ (cd $(DL); \
+ ln -sf libpng.so.3.$(PNGMIN) libpng.so.3; \
+ ln -sf libpng.so.3 libpng.so; \
+ ln -sf $(LIBNAME).so.$(PNGVER) $(LIBNAME).so.$(PNGMAJ); \
+ ln -sf $(LIBNAME).so.$(PNGMAJ) $(LIBNAME).so)
+ - at if [ ! -d $(DL)/pkgconfig ]; then mkdir $(DL)/pkgconfig; fi
+ -@/bin/rm -f $(DL)/pkgconfig/$(LIBNAME).pc
+ -@/bin/rm -f $(DL)/pkgconfig/libpng.pc
+ cp libpng.pc $(DL)/pkgconfig/$(LIBNAME).pc
+ chmod 644 $(DL)/pkgconfig/$(LIBNAME).pc
+ (cd $(DL)/pkgconfig; ln -sf $(LIBNAME).pc libpng.pc)
+
+ install-man: libpng.3 libpngpf.3 png.5
+ - at if [ ! -d $(DM) ]; then mkdir $(DM); fi
+ - at if [ ! -d $(DM)/man3 ]; then mkdir $(DM)/man3; fi
+ -@/bin/rm -f $(DM)/man3/libpng.3
+ -@/bin/rm -f $(DM)/man3/libpngpf.3
+ cp libpng.3 $(DM)/man3
+ cp libpngpf.3 $(DM)/man3
+ - at if [ ! -d $(DM)/man5 ]; then mkdir $(DM)/man5; fi
+ -@/bin/rm -f $(DM)/man5/png.5
+ cp png.5 $(DM)/man5
+
+ install-config: libpng-config
+ - at if [ ! -d $(DB) ]; then mkdir $(DB); fi
+ -@/bin/rm -f $(DB)/libpng-config
+ -@/bin/rm -f $(DB)/$(LIBNAME)-config
+ cp libpng-config $(DB)/$(LIBNAME)-config
+ chmod 755 $(DB)/$(LIBNAME)-config
+ (cd $(DB); ln -sf $(LIBNAME)-config libpng-config)
+
+ install: install-static install-shared install-man install-config
+
+ # If you installed in $(DESTDIR), test-installed won't work until you
+ # move the library to its final location.
+
+ test-installed:
+ $(CC) -I$(ZLIBINC) \
+ `$(BINPATH)/libpng12-config --cflags` pngtest.c \
+ -L$(ZLIBLIB) -Wl,-rpath,$(ZLIBLIB) \
+ -o pngtesti `$(BINPATH)/libpng12-config --ldflags`
+ ./pngtesti pngtest.png
+
+ clean:
+ /bin/rm -f *.o libpng.a pngtest pngout.png libpng-config \
+ $(LIBNAME).so $(LIBNAME).so.$(PNGMAJ)* pngtest-static pngtesti \
+ libpng.so.3.$(PNGMIN) \
+ libpng.pc
+
+ DOCS = ANNOUNCE CHANGES INSTALL KNOWNBUG LICENSE README TODO Y2KINFO
+ writelock:
+ chmod a-w *.[ch35] $(DOCS) scripts/*
+
+ # DO NOT DELETE THIS LINE -- make depend depends on it.
+
+ png.o png.pic.o: png.h pngconf.h
+ pngerror.o pngerror.pic.o: png.h pngconf.h
+ pngrio.o pngrio.pic.o: png.h pngconf.h
+ pngwio.o pngwio.pic.o: png.h pngconf.h
+ pngmem.o pngmem.pic.o: png.h pngconf.h
+ pngset.o pngset.pic.o: png.h pngconf.h
+ pngget.o pngget.pic.o: png.h pngconf.h
+ pngread.o pngread.pic.o: png.h pngconf.h
+ pngrtran.o pngrtran.pic.o: png.h pngconf.h
+ pngrutil.o pngrutil.pic.o: png.h pngconf.h
+ pngtrans.o pngtrans.pic.o: png.h pngconf.h
+ pngwrite.o pngwrite.pic.o: png.h pngconf.h
+ pngwtran.o pngwtran.pic.o: png.h pngconf.h
+ pngwutil.o pngwutil.pic.o: png.h pngconf.h
+ pngpread.o pngpread.pic.o: png.h pngconf.h
+
+ pngtest.o: png.h pngconf.h
Index: llvm/runtime/libpng/scripts/makefile.macosx
diff -c /dev/null llvm/runtime/libpng/scripts/makefile.macosx:1.1.2.1
*** /dev/null Mon Mar 1 17:58:58 2004
--- llvm/runtime/libpng/scripts/makefile.macosx Mon Mar 1 17:58:47 2004
***************
*** 0 ****
--- 1,197 ----
+ # makefile for libpng, MACOS X
+ # Copyright (C) 2002 Glenn Randers-Pehrson
+ # Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc.
+ # Modified by Karin Kosina <kyrah at sim.no> 20011010:
+ # build shared library (*.dylib)
+ # For conditions of distribution and use, see copyright notice in png.h
+
+ # where make install puts libpng.a and png.h
+ prefix=/usr/local
+
+ # Where the zlib library and include files are located
+ #ZLIBLIB=/usr/local/lib
+ #ZLIBINC=/usr/local/include
+ ZLIBLIB=../zlib
+ ZLIBINC=../zlib
+
+ CC=cc
+
+ PNGMAJ = 0
+ PNGMIN = 1.2.5
+ PNGVER = $(PNGMAJ).$(PNGMIN)
+
+ CFLAGS=-fno-common -I$(ZLIBINC) -O # -g -DPNG_DEBUG=5
+ LDFLAGS=-L. -L$(ZLIBLIB) -lpng -lz -current_version $(PNGVER)
+
+ LIBNAME=libpng12
+ SHAREDLIB_POSTFIX=dylib
+ INCPATH=$(prefix)/include
+ LIBPATH=$(prefix)/lib
+ MANPATH=$(prefix)/man
+ BINPATH=$(prefix)/bin
+
+ # override DESTDIR= on the make install command line to easily support
+ # installing into a temporary location. Example:
+ #
+ # make install DESTDIR=/tmp/build/libpng
+ #
+ # If you're going to install into a temporary location
+ # via DESTDIR, $(DESTDIR)$(prefix) must already exist before
+ # you execute make install.
+ DESTDIR=
+
+ DB=$(DESTDIR)$(BINPATH)
+ DI=$(DESTDIR)$(INCPATH)
+ DL=$(DESTDIR)$(LIBPATH)
+ DM=$(DESTDIR)$(MANPATH)
+
+ #RANLIB=echo
+ RANLIB=ranlib
+
+ 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
+
+ all: libpng.a pngtest shared libpng.pc libpng-config
+
+ shared: $(LIBNAME).$(PNGVER).$(SHAREDLIB_POSTFIX)
+
+ libpng.pc:
+ cat scripts/libpng.pc.in | sed -e s\!@PREFIX@!$(prefix)! | \
+ sed -e s/-lm// > libpng.pc
+
+ libpng-config:
+ ( cat scripts/libpng-config-head.in; \
+ echo prefix=\"$(prefix)\"; \
+ echo I_opts=\"-I$(INCPATH)/$(LIBNAME)\"; \
+ echo L_opts=\"-L$(LIBPATH)\"; \
+ echo libs=\"-lpng12 -lz\"; \
+ cat scripts/libpng-config-body.in ) > libpng-config
+ chmod +x libpng-config
+
+ libpng.a: $(OBJS)
+ ar rc $@ $(OBJS)
+ $(RANLIB) $@
+
+ $(LIBNAME).$(PNGVER).$(SHAREDLIB_POSTFIX): $(OBJS)
+ cc -dynamiclib -flat_namespace -undefined suppress -o $@ $(OBJS)
+
+ libpng.3.$(PNGMIN).$(SHAREDLIB_POSTFIX): $(OBJS)
+ cc -dynamiclib -compatibility_version 3 -flat_namespace \
+ -undefined suppress -o $@ $(OBJS)
+
+ pngtest: pngtest.o libpng.a
+ $(CC) -o pngtest $(CFLAGS) pngtest.o $(LDFLAGS)
+
+ test: pngtest
+ ./pngtest
+
+ install-headers: png.h pngconf.h
+ - at if [ ! -d $(DI) ]; then mkdir $(DI); fi
+ - at if [ ! -d $(DI)/$(LIBNAME) ]; then mkdir $(DI)/$(LIBNAME); fi
+ cp png.h pngconf.h $(DI)/$(LIBNAME)
+ chmod 644 $(DI)/$(LIBNAME)/png.h $(DI)/$(LIBNAME)/pngconf.h
+ -@/bin/rm -f $(DI)/png.h $(DI)/pngconf.h
+ -@/bin/rm -f $(DI)/libpng
+ (cd $(DI); ln -f -s $(LIBNAME) libpng; ln -f -s $(LIBNAME)/* .)
+
+ install-static: install-headers libpng.a
+ - at if [ ! -d $(DL) ]; then mkdir $(DL); fi
+ cp libpng.a $(DL)/$(LIBNAME).a
+ chmod 644 $(DL)/$(LIBNAME).a
+ -@/bin/rm -f $(DL)/libpng.a
+ (cd $(DL); ln -f -s $(LIBNAME).a libpng.a)
+
+ install-shared: install-headers $(LIBNAME).$(PNGVER).$(SHAREDLIB_POSTFIX) \
+ libpng.pc libpng.3.$(PNGMIN).$(SHAREDLIB_POSTFIX)
+ - at if [ ! -d $(DL) ]; then mkdir $(DL); fi
+ -@/bin/rm -f \
+ $(DL)/$(LIBNAME).$(PNGVER)*.$(SHAREDLIB_POSTFIX)
+ -@/bin/rm -f $(DL)/$(LIBNAME).$(SHAREDLIB_POSTFIX)
+ -@/bin/rm -f libpng.$(SHARED_POSTFIX)
+ -@/bin/rm -f libpng.3.$(SHARED_POSTFIX)
+ -@/bin/rm -f libpng.3.$(PNGMIN)*.$(SHARED_POSTFIX)
+ cp libpng.3.$(PNGMIN).$(SHAREDLIB_POSTFIX) $(DL)
+ cp $(LIBNAME).$(PNGVER).$(SHAREDLIB_POSTFIX) $(DL)
+ chmod 755 $(DL)/$(LIBNAME).$(PNGVER).$(SHAREDLIB_POSTFIX)
+ chmod 755 $(DL)/libpng.3.$(PNGMIN).$(SHAREDLIB_POSTFIX)
+ (cd $(DL); \
+ ln -f -s libpng.3.$(PNGMIN).$(SHARED_POSTFIX) \
+ libpng.3.$(SHARED_POSTFIX); \
+ ln -f -s libpng.3.$(SHARED_POSTFIX) libpng.$(SHARED_POSTFIX); \
+ ln -f -s $(LIBNAME).$(PNGVER).$(SHARED_POSTFIX) \
+ libpng.$(SHARED_POSTFIX); \
+ ln -f -s libpng.3.$(PNGMIN).$(SHARED_POSTFIX) \
+ libpng.3.$(SHARED_POSTFIX); \
+ ln -f -s $(LIBNAME).$(PNGVER).$(SHAREDLIB_POSTFIX) \
+ $(LIBNAME).$(PNGMAJ).$(SHAREDLIB_POSTFIX); \
+ ln -f -s $(LIBNAME).$(PNGMAJ).$(SHAREDLIB_POSTFIX) \
+ $(LIBNAME).$(SHAREDLIB_POSTFIX))
+ - at if [ ! -d $(DL)/pkgconfig ]; then mkdir $(DL)/pkgconfig; fi
+ -@/bin/rm -f $(DL)/pkgconfig/$(LIBNAME).pc
+ -@/bin/rm -f $(DL)/pkgconfig/libpng.pc
+ cp libpng.pc $(DL)/pkgconfig/$(LIBNAME).pc
+ chmod 644 $(DL)/pkgconfig/$(LIBNAME).pc
+ (cd $(DL)/pkgconfig; ln -f -s $(LIBNAME).pc libpng.pc)
+
+ install-man: libpng.3 libpngpf.3 png.5
+ - at if [ ! -d $(DM) ]; then mkdir $(DM); fi
+ - at if [ ! -d $(DM)/man3 ]; then mkdir $(DM)/man3; fi
+ -@/bin/rm -f $(DM)/man3/libpng.3
+ -@/bin/rm -f $(DM)/man3/libpngpf.3
+ cp libpng.3 $(DM)/man3
+ cp libpngpf.3 $(DM)/man3
+ - at if [ ! -d $(DM)/man5 ]; then mkdir $(DM)/man5; fi
+ -@/bin/rm -f $(DM)/man5/png.5
+ cp png.5 $(DM)/man5
+
+ install-config: libpng-config
+ - at if [ ! -d $(DB) ]; then mkdir $(DB); fi
+ -@/bin/rm -f $(DB)/libpng-config
+ -@/bin/rm -f $(DB)/$(LIBNAME)-config
+ cp libpng-config $(DB)/$(LIBNAME)-config
+ chmod 755 $(DB)/$(LIBNAME)-config
+ (cd $(DB); ln -sf $(LIBNAME)-config libpng-config)
+
+ install: install-static install-shared install-man install-config
+
+ # If you installed in $(DESTDIR), test-installed won't work until you
+ # move the library to its final location.
+
+ test-installed:
+ $(CC) $(CFLAGS) \
+ `$(BINPATH)/libpng12-config --cflags` pngtest.c \
+ -L$(ZLIBLIB) \
+ -o pngtesti `$(BINPATH)/libpng12-config --ldflags`
+ ./pngtesti pngtest.png
+
+ clean:
+ rm -f *.o libpng.a pngtest pngout.png libpng-config \
+ $(LIBNAME).$(PNGVER).$(SHAREDLIB_POSTFIX) \
+ $(LIBNAME).$(SHAREDLIB_POSTFIX) \
+ libpng.3.$(PNGMIN).$(SHAREDLIB_POSTFIX) \
+ libpng.pc
+
+ DOCS = ANNOUNCE CHANGES INSTALL KNOWNBUG LICENSE README TODO Y2KINFO
+ writelock:
+ chmod a-w *.[ch35] $(DOCS) scripts/*
+
+ # DO NOT DELETE THIS LINE -- make depend depends on it.
+
+ png.o: png.h pngconf.h
+ pngerror.o: png.h pngconf.h
+ pngrio.o: png.h pngconf.h
+ pngwio.o: png.h pngconf.h
+ pngmem.o: png.h pngconf.h
+ pngset.o: png.h pngconf.h
+ pngget.o: png.h pngconf.h
+ pngread.o: png.h pngconf.h
+ pngrtran.o: png.h pngconf.h
+ pngrutil.o: png.h pngconf.h
+ pngtest.o: png.h pngconf.h
+ pngtrans.o: png.h pngconf.h
+ pngwrite.o: png.h pngconf.h
+ pngwtran.o: png.h pngconf.h
+ pngwutil.o: png.h pngconf.h
+ pngpread.o: png.h pngconf.h
+
Index: llvm/runtime/libpng/scripts/makefile.mips
diff -c /dev/null llvm/runtime/libpng/scripts/makefile.mips:1.1.2.1
*** /dev/null Mon Mar 1 17:58:58 2004
--- llvm/runtime/libpng/scripts/makefile.mips Mon Mar 1 17:58:47 2004
***************
*** 0 ****
--- 1,83 ----
+ # makefile for libpng
+ # Copyright (C) Glenn Randers-Pehrson
+ # Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc.
+ # For conditions of distribution and use, see copyright notice in png.h
+
+ # where make install puts libpng.a and png.h
+ prefix=/usr/local
+ INCPATH=$(prefix)/include
+ LIBPATH=$(prefix)/lib
+
+ # override DESTDIR= on the make install command line to easily support
+ # installing into a temporary location. Example:
+ #
+ # make install DESTDIR=/tmp/build/libpng
+ #
+ # If you're going to install into a temporary location
+ # via DESTDIR, $(DESTDIR)$(prefix) must already exist before
+ # you execute make install.
+ DESTDIR=
+
+ CC=cc
+ CFLAGS=-I../zlib -O -systype sysv -DSYSV -w -Dmips
+ #CFLAGS=-O
+ LDFLAGS=-L. -L../zlib/ -lpng -lz -lm
+
+ #RANLIB=ranlib
+ RANLIB=echo
+
+ 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
+
+ all: libpng.a pngtest
+
+ libpng.a: $(OBJS)
+ ar rc $@ $(OBJS)
+ $(RANLIB) $@
+
+ pngtest: pngtest.o libpng.a
+ $(CC) -o pngtest $(CFLAGS) pngtest.o $(LDFLAGS)
+
+ test: pngtest
+ ./pngtest
+
+ install: libpng.a
+ - at mkdir $(DESTDIR)$(INCPATH)
+ - at mkdir $(DESTDIR)$(INCPATH)/libpng
+ - at mkdir $(DESTDIR)$(LIBPATH)
+ - at rm -f $(DESTDIR)$(INCPATH)/png.h
+ - at rm -f $(DESTDIR)$(INCPATH)/pngconf.h
+ cp png.h $(DESTDIR)$(INCPATH)/libpng
+ cp pngconf.h $(DESTDIR)$(INCPATH)/libpng
+ chmod 644 $(DESTDIR)$(INCPATH)/libpng/png.h
+ chmod 644 $(DESTDIR)$(INCPATH)/libpng/pngconf.h
+ (cd $(DESTDIR)$(INCPATH); ln -f -s libpng/* .)
+ cp libpng.a $(DESTDIR)$(LIBPATH)
+ chmod 644 $(DESTDIR)$(LIBPATH)/libpng.a
+
+ clean:
+ rm -f *.o libpng.a pngtest pngout.png
+
+ DOCS = ANNOUNCE CHANGES INSTALL KNOWNBUG LICENSE README TODO Y2KINFO
+ writelock:
+ chmod a-w *.[ch35] $(DOCS) scripts/*
+
+ # DO NOT DELETE THIS LINE -- make depend depends on it.
+
+ png.o: png.h pngconf.h
+ pngerror.o: png.h pngconf.h
+ pngrio.o: png.h pngconf.h
+ pngwio.o: png.h pngconf.h
+ pngmem.o: png.h pngconf.h
+ pngset.o: png.h pngconf.h
+ pngget.o: png.h pngconf.h
+ pngread.o: png.h pngconf.h
+ pngpread.o: png.h pngconf.h
+ pngrtran.o: png.h pngconf.h
+ pngrutil.o: png.h pngconf.h
+ pngtest.o: png.h pngconf.h
+ pngtrans.o: png.h pngconf.h
+ pngwrite.o: png.h pngconf.h
+ pngwtran.o: png.h pngconf.h
+ pngwutil.o: png.h pngconf.h
Index: llvm/runtime/libpng/scripts/makefile.msc
diff -c /dev/null llvm/runtime/libpng/scripts/makefile.msc:1.1.2.1
*** /dev/null Mon Mar 1 17:58:58 2004
--- llvm/runtime/libpng/scripts/makefile.msc Mon Mar 1 17:58:47 2004
***************
*** 0 ****
--- 1,86 ----
+ # makefile for libpng
+ # 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
+
+ # -------- Microsoft C 5.1 and later, does not use assembler code --------
+ MODEL=L
+ CFLAGS=-Oait -Gs -nologo -W3 -A$(MODEL) -I..\zlib
+ #-Ox generates bad code with MSC 5.1
+ CC=cl
+ LD=link
+ LDFLAGS=/e/st:0x1500/noe
+ O=.obj
+
+ #uncomment next to put error messages in a file
+ ERRFILE= >> pngerrs
+
+ # variables
+ OBJS1 = png$(O) pngset$(O) pngget$(O) pngrutil$(O) pngtrans$(O) pngwutil$(O)
+ OBJS2 = pngmem$(O) pngpread$(O) pngread$(O) pngerror$(O) pngwrite$(O)
+ OBJS3 = pngrtran$(O) pngwtran$(O) pngrio$(O) pngwio$(O)
+
+ all: libpng.lib
+
+ png$(O): png.h pngconf.h
+ $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
+
+ pngset$(O): png.h pngconf.h
+ $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
+
+ pngget$(O): png.h pngconf.h
+ $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
+
+ pngread$(O): png.h pngconf.h
+ $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
+
+ pngpread$(O): png.h pngconf.h
+ $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
+
+ pngrtran$(O): png.h pngconf.h
+ $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
+
+ pngrutil$(O): png.h pngconf.h
+ $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
+
+ pngerror$(O): png.h pngconf.h
+ $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
+
+ pngmem$(O): png.h pngconf.h
+ $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
+
+ pngrio$(O): png.h pngconf.h
+ $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
+
+ pngwio$(O): png.h pngconf.h
+ $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
+
+ pngtest$(O): png.h pngconf.h
+ $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
+
+ pngtrans$(O): png.h pngconf.h
+ $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
+
+ pngwrite$(O): png.h pngconf.h
+ $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
+
+ pngwtran$(O): png.h pngconf.h
+ $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
+
+ pngwutil$(O): png.h pngconf.h
+ $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
+
+ libpng.lib: $(OBJS1) $(OBJS2) $(OBJS3)
+ del libpng.lib
+ lib libpng $(OBJS1);
+ lib libpng $(OBJS2);
+ lib libpng $(OBJS3);
+
+ pngtest.exe: pngtest.obj libpng.lib
+ $(LD) $(LDFLAGS) pngtest.obj,,,libpng.lib ..\zlib\zlib.lib ;
+
+ test: pngtest.exe
+ pngtest
+
+ # End of makefile for libpng
+
Index: llvm/runtime/libpng/scripts/makefile.ne12bsd
diff -c /dev/null llvm/runtime/libpng/scripts/makefile.ne12bsd:1.1.2.1
*** /dev/null Mon Mar 1 17:58:58 2004
--- llvm/runtime/libpng/scripts/makefile.ne12bsd Mon Mar 1 17:58:47 2004
***************
*** 0 ****
--- 1,44 ----
+ # makefile for libpng for NetBSD for the standard
+ # make obj && make depend && make && make test
+ # make includes && make install
+ # Copyright (C) 2002 Patrick R.L. Welche
+ # For conditions of distribution and use, see copyright notice in png.h
+
+ # You should also run makefile.netbsd
+
+ LOCALBASE?=/usr/local
+ LIBDIR= ${LOCALBASE}/lib
+ MANDIR= ${LOCALBASE}/man
+ INCSDIR=${LOCALBASE}/include/libpng12
+
+ LIB= png12
+ SHLIB_MAJOR= 0
+ SHLIB_MINOR= 1.2.5
+ 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_ASSEMBLER_CODE
+ # .endif
+
+ CLEANFILES+=pngtest.o pngtest
+
+ pngtest.o: pngtest.c
+ ${CC} -c ${CPPFLAGS} ${CFLAGS} ${.ALLSRC} -o ${.TARGET}
+
+ pngtest: pngtest.o libpng.a
+ ${CC} ${LDFLAGS} ${.ALLSRC} -o${.TARGET} -lz -lm
+
+ test: pngtest
+ cd ${.CURDIR} && ${.OBJDIR}/pngtest
+
+ .include <bsd.lib.mk>
Index: llvm/runtime/libpng/scripts/makefile.netbsd
diff -c /dev/null llvm/runtime/libpng/scripts/makefile.netbsd:1.1.2.1
*** /dev/null Mon Mar 1 17:58:58 2004
--- llvm/runtime/libpng/scripts/makefile.netbsd Mon Mar 1 17:58:47 2004
***************
*** 0 ****
--- 1,44 ----
+ # makefile for libpng for NetBSD for the standard
+ # make obj && make depend && make && make test
+ # make includes && make install
+ # Copyright (C) 2002 Patrick R.L. Welche
+ # For conditions of distribution and use, see copyright notice in png.h
+
+ # You should also run makefile.ne0bsd
+
+ LOCALBASE?=/usr/local
+ LIBDIR= ${LOCALBASE}/lib
+ MANDIR= ${LOCALBASE}/man
+ INCSDIR=${LOCALBASE}/include/libpng
+
+ LIB= png
+ SHLIB_MAJOR= 3
+ SHLIB_MINOR= 1.2.5
+ 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_ASSEMBLER_CODE
+ # .endif
+
+ CLEANFILES+=pngtest.o pngtest
+
+ pngtest.o: pngtest.c
+ ${CC} -c ${CPPFLAGS} ${CFLAGS} ${.ALLSRC} -o ${.TARGET}
+
+ pngtest: pngtest.o libpng.a
+ ${CC} ${LDFLAGS} ${.ALLSRC} -o${.TARGET} -lz -lm
+
+ test: pngtest
+ cd ${.CURDIR} && ${.OBJDIR}/pngtest
+
+ .include <bsd.lib.mk>
Index: llvm/runtime/libpng/scripts/makefile.openbsd
diff -c /dev/null llvm/runtime/libpng/scripts/makefile.openbsd:1.1.2.1
*** /dev/null Mon Mar 1 17:58:58 2004
--- llvm/runtime/libpng/scripts/makefile.openbsd Mon Mar 1 17:58:47 2004
***************
*** 0 ****
--- 1,72 ----
+ # makefile for libpng
+ # Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc.
+ # For conditions of distribution and use, see copyright notice in png.h
+
+ PREFIX?= /usr/local
+ LIBDIR= ${PREFIX}/lib
+ MANDIR= ${PREFIX}/man/cat
+
+ SHLIB_MAJOR= 0
+ SHLIB_MINOR= 1.2.5
+
+ LIB= png
+ SRCS= png.c pngerror.c pnggccrd.c pngget.c pngmem.c pngpread.c \
+ pngread.c pngrio.c pngrtran.c pngrutil.c pngset.c pngtrans.c \
+ pngwio.c pngwrite.c pngwtran.c pngwutil.c
+
+ HDRS= png.h pngconf.h
+
+ CFLAGS+= -Wall
+ CPPFLAGS+= -I${.CURDIR} -DPNG_NO_ASSEMBLER_CODE -DPNG_USE_PNGGCCRD
+
+ NOPROFILE= Yes
+
+ CLEANFILES+= pngtest.o pngtest
+
+ MAN= libpng.3 libpngpf.3 png.5
+ DOCS= ANNOUNCE CHANGES LICENSE README libpng.txt
+
+ pngtest.o: pngtest.c
+ ${CC} ${CPPFLAGS} ${CFLAGS} -c ${.ALLSRC} -o ${.TARGET}
+
+ pngtest: pngtest.o
+ ${CC} ${LDFLAGS} ${.ALLSRC} -o ${.TARGET} -L${.OBJDIR} -lpng -lz -lm
+
+ test: pngtest
+ cd ${.OBJDIR} && env \
+ LD_LIBRARY_PATH="${.OBJDIR}" ${.OBJDIR}/pngtest
+
+ beforeinstall:
+ if [ ! -d ${DESTDIR}${PREFIX}/include/libpng ]; then \
+ ${INSTALL} -d -o root -g wheel ${DESTDIR}${PREFIX}/include/libpng; \
+ fi
+ if [ ! -d ${DESTDIR}${LIBDIR} ]; then \
+ ${INSTALL} -d -o root -g wheel ${DESTDIR}${LIBDIR}; \
+ fi
+ if [ ! -d ${DESTDIR}${LIBDIR}/debug ]; then \
+ ${INSTALL} -d -o root -g wheel ${DESTDIR}${LIBDIR}/debug; \
+ fi
+ if [ ! -d ${DESTDIR}${MANDIR}3 ]; then \
+ ${INSTALL} -d -o root -g wheel ${DESTDIR}${MANDIR}3; \
+ fi
+ if [ ! -d ${DESTDIR}${MANDIR}5 ]; then \
+ ${INSTALL} -d -o root -g wheel ${DESTDIR}${MANDIR}5; \
+ fi
+ if [ ! -d ${DESTDIR}${PREFIX}/share/doc/png ]; then \
+ ${INSTALL} -d -o root -g wheel ${DESTDIR}${PREFIX}/share/doc/png; \
+ fi
+
+ afterinstall:
+ @rm -f ${DESTDIR}${LIBDIR}/libpng_pic.a
+ @rm -f ${DESTDIR}${LIBDIR}/debug/libpng.a
+ @rm -f ${DESTDIR}${PREFIX}/include/png.h
+ @rm -f ${DESTDIR}${PREFIX}/include/pngconf.h
+ @rmdir ${DESTDIR}${LIBDIR}/debug 2>/dev/null || true
+ ${INSTALL} ${INSTALL_COPY} -o ${SHAREOWN} -g ${SHAREGRP} \
+ -m ${NONBINMODE} ${HDRS} ${DESTDIR}${PREFIX}/include/libpng
+ ${INSTALL} ${INSTALL_COPY} -o ${SHAREOWN} -g ${SHAREGRP} \
+ -m ${NONBINMODE} ${HDRS} ${DESTDIR}${PREFIX}/include
+ ${INSTALL} ${INSTALL_COPY} -o ${SHAREOWN} -g ${SHAREGRP} \
+ -m ${NONBINMODE} ${DOCS} ${DESTDIR}${PREFIX}/share/doc/png
+
+ .include <bsd.lib.mk>
Index: llvm/runtime/libpng/scripts/makefile.os2
diff -c /dev/null llvm/runtime/libpng/scripts/makefile.os2:1.1.2.1
*** /dev/null Mon Mar 1 17:58:58 2004
--- llvm/runtime/libpng/scripts/makefile.os2 Mon Mar 1 17:58:47 2004
***************
*** 0 ****
--- 1,69 ----
+ # makefile for libpng on OS/2 with gcc
+ # For conditions of distribution and use, see copyright notice in png.h
+
+ # Related files: pngos2.def
+
+ CC=gcc -Zomf -s
+
+ # Where the zlib library and include files are located
+ ZLIBLIB=../zlib
+ ZLIBINC=../zlib
+
+ WARNMORE=-Wwrite-strings -Wpointer-arith -Wshadow \
+ -Wmissing-declarations -Wtraditional -Wcast-align \
+ -Wstrict-prototypes -Wmissing-prototypes #-Wconversion
+ CFLAGS=-I$(ZLIBINC) -Wall -O6 -funroll-loops -malign-loops=2 \
+ -malign-functions=2 #$(WARNMORE) -g -DPNG_DEBUG=5
+ LDFLAGS=-L. -L$(ZLIBLIB) -lpng -lzdll -Zcrtdll
+ AR=emxomfar
+
+ PNGLIB=png.lib
+ IMPLIB=emximp
+ SHAREDLIB=png.dll
+ SHAREDLIBIMP=pngdll.lib
+
+ 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
+
+ .SUFFIXES: .c .o
+
+ all: $(PNGLIB) $(SHAREDLIB) $(SHAREDLIBIMP)
+
+ $(PNGLIB): $(OBJS)
+ $(AR) rc $@ $(OBJS)
+
+ $(SHAREDLIB): $(OBJS) pngos2.def
+ $(CC) $(LDFLAGS) -Zdll -o $@ $^
+
+ $(SHAREDLIBIMP): pngos2.def
+ $(IMPLIB) -o $@ $^
+
+ pngtest.exe: pngtest.o png.dll pngdll.lib
+ $(CC) -o $@ $(CFLAGS) $< $(LDFLAGS)
+
+ test: pngtest.exe
+ ./pngtest.exe
+
+ clean:
+ rm -f *.o $(PNGLIB) png.dll pngdll.lib pngtest.exe pngout.png
+
+ # DO NOT DELETE THIS LINE -- make depend depends on it.
+
+ png.o png.pic.o: png.h pngconf.h
+ pngerror.o pngerror.pic.o: png.h pngconf.h
+ pngrio.o pngrio.pic.o: png.h pngconf.h
+ pngwio.o pngwio.pic.o: png.h pngconf.h
+ pngmem.o pngmem.pic.o: png.h pngconf.h
+ pngset.o pngset.pic.o: png.h pngconf.h
+ pngget.o pngget.pic.o: png.h pngconf.h
+ pngread.o pngread.pic.o: png.h pngconf.h
+ pngrtran.o pngrtran.pic.o: png.h pngconf.h
+ pngrutil.o pngrutil.pic.o: png.h pngconf.h
+ pngtrans.o pngtrans.pic.o: png.h pngconf.h
+ pngwrite.o pngwrite.pic.o: png.h pngconf.h
+ pngwtran.o pngwtran.pic.o: png.h pngconf.h
+ pngwutil.o pngwutil.pic.o: png.h pngconf.h
+ pngpread.o pngpread.pic.o: png.h pngconf.h
+
+ pngtest.o: png.h pngconf.h
Index: llvm/runtime/libpng/scripts/makefile.sco
diff -c /dev/null llvm/runtime/libpng/scripts/makefile.sco:1.1.2.1
*** /dev/null Mon Mar 1 17:58:58 2004
--- llvm/runtime/libpng/scripts/makefile.sco Mon Mar 1 17:58:47 2004
***************
*** 0 ****
--- 1,201 ----
+ # makefile for SCO OSr5 ELF and Unixware 7 with Native cc
+ # Contributed by Mike Hopkirk (hops at sco.com) modified from Makefile.lnx
+ # force ELF build dynamic linking, SONAME setting in lib and RPATH in app
+ # Copyright (C) 2002 Glenn Randers-Pehrson
+ # Copyright (C) 1998 Greg Roelofs
+ # Copyright (C) 1996, 1997 Andreas Dilger
+ # For conditions of distribution and use, see copyright notice in png.h
+
+ CC=cc
+
+ # where make install puts libpng.a, libpng.so*, and png.h
+ prefix=/usr/local
+
+ # Where the zlib library and include files are located
+ #ZLIBLIB=/usr/local/lib
+ #ZLIBINC=/usr/local/include
+ ZLIBLIB=../zlib
+ ZLIBINC=../zlib
+
+ CFLAGS= -dy -belf -I$(ZLIBINC) -O3
+ LDFLAGS=-L. -L$(ZLIBLIB) -lpng12 -lz -lm
+
+ #RANLIB=ranlib
+ RANLIB=echo
+
+ PNGMAJ = 0
+ PNGMIN = 1.2.5
+ PNGVER = $(PNGMAJ).$(PNGMIN)
+ LIBNAME = libpng12
+
+ INCPATH=$(prefix)/include/libpng
+ LIBPATH=$(prefix)/lib
+ MANPATH=$(prefix)/man
+ BINPATH=$(prefix)/bin
+
+ # override DESTDIR= on the make install command line to easily support
+ # installing into a temporary location. Example:
+ #
+ # make install DESTDIR=/tmp/build/libpng
+ #
+ # If you're going to install into a temporary location
+ # via DESTDIR, $(DESTDIR)$(prefix) must already exist before
+ # you execute make install.
+ DESTDIR=
+
+ DB=$(DESTDIR)$(BINPATH)
+ DI=$(DESTDIR)$(INCPATH)
+ DL=$(DESTDIR)$(LIBPATH)
+ DM=$(DESTDIR)$(MANPATH)
+
+ 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
+
+ OBJSDLL = $(OBJS:.o=.pic.o)
+
+ .SUFFIXES: .c .o .pic.o
+
+ .c.pic.o:
+ $(CC) -c $(CFLAGS) -KPIC -o $@ $*.c
+
+ all: libpng.a $(LIBNAME).so pngtest libpng.pc libpng-config
+
+ libpng.a: $(OBJS)
+ ar rc $@ $(OBJS)
+ $(RANLIB) $@
+
+ libpng.pc:
+ cat scripts/libpng.pc.in | sed -e s\!@PREFIX@!$(prefix)! > libpng.pc
+
+ libpng-config:
+ ( cat scripts/libpng-config-head.in; \
+ echo prefix=\"$(prefix)\"; \
+ echo I_opts=\"-I$(INCPATH)/$(LIBNAME)\"; \
+ echo ccopts=\"-belf\"; \
+ echo L_opts=\"-L$(LIBPATH)\"; \
+ echo libs=\"-lpng12 -lz -lm\"; \
+ cat scripts/libpng-config-body.in ) > libpng-config
+ chmod +x libpng-config
+
+ $(LIBNAME).so: $(LIBNAME).so.$(PNGMAJ)
+ ln -f -s $(LIBNAME).so.$(PNGMAJ) $(LIBNAME).so
+
+ $(LIBNAME).so.$(PNGMAJ): $(LIBNAME).so.$(PNGVER)
+ ln -f -s $(LIBNAME).so.$(PNGVER) $(LIBNAME).so.$(PNGMAJ)
+
+ $(LIBNAME).so.$(PNGVER): $(OBJSDLL)
+ $(CC) -G -Wl,-h,$(LIBNAME).so.$(PNGMAJ) -o $(LIBNAME).so.$(PNGVER) \
+ $(OBJSDLL)
+
+ libpng.so.3.$(PNGMIN): $(OBJSDLL)
+ $(CC) -G -Wl,-h,libpng.so.3 -o libpng.so.3.$(PNGMIN) \
+ $(OBJSDLL)
+
+ pngtest: pngtest.o $(LIBNAME).so
+ LD_RUN_PATH=.:$(ZLIBLIB) $(CC) -o pngtest $(CFLAGS) pngtest.o $(LDFLAGS)
+
+ test: pngtest
+ ./pngtest
+
+ install-headers: png.h pngconf.h
+ - at if [ ! -d $(DI) ]; then mkdir $(DI); fi
+ - at if [ ! -d $(DI)/$(LIBNAME) ]; then mkdir $(DI)/$(LIBNAME); fi
+ -@/bin/rm -f $(DI)/png.h
+ -@/bin/rm -f $(DI)/pngconf.h
+ cp png.h pngconf.h $(DI)/$(LIBNAME)
+ chmod 644 $(DI)/$(LIBNAME)/png.h $(DI)/$(LIBNAME)/pngconf.h
+ -@/bin/rm -f $(DI)/png.h $(DI)/pngconf.h
+ -@/bin/rm -f $(DI)/libpng
+ (cd $(DI); ln -f -s $(LIBNAME) libpng; ln -f -s $(LIBNAME)/* .)
+
+ install-static: install-headers libpng.a
+ - at if [ ! -d $(DL) ]; then mkdir $(DL); fi
+ cp libpng.a $(DL)/$(LIBNAME).a
+ chmod 644 $(DL)/$(LIBNAME).a
+ -@/bin/rm -f $(DL)/libpng.a
+ (cd $(DL); ln -f -s $(LIBNAME).a libpng.a)
+
+ install-shared: install-headers $(LIBNAME).so.$(PNGVER) libpng.pc \
+ libpng.so.3.$(PNGMIN)
+ - at if [ ! -d $(DL) ]; then mkdir $(DL); fi
+ -@/bin/rm -f $(DL)/$(LIBNAME).so.$(PNGVER)* $(DL)/$(LIBNAME).so
+ -@/bin/rm -f $(DL)/libpng.so
+ -@/bin/rm -f $(DL)/libpng.so.3
+ -@/bin/rm -f $(DL)/libpng.so.3.$(PNGMIN)*
+ cp $(LIBNAME).so.$(PNGVER) $(DL)
+ cp libpng.so.3.$(PNGMIN) $(DL)
+ chmod 755 $(DL)/$(LIBNAME).so.$(PNGVER)
+ chmod 755 $(DL)/libpng.so.3.$(PNGMIN)
+ (cd $(DL); \
+ ln -f -s libpng.so.3.$(PNGMIN) libpng.so.3; \
+ ln -f -s libpng.so.3 libpng.so; \
+ ln -f -s $(LIBNAME).so.$(PNGVER) $(LIBNAME).so.$(PNGMAJ); \
+ ln -f -s $(LIBNAME).so.$(PNGMAJ) $(LIBNAME).so)
+ - at if [ ! -d $(DL)/pkgconfig ]; then mkdir $(DL)/pkgconfig; fi
+ -@/bin/rm -f $(DL)/pkgconfig/$(LIBNAME).pc
+ -@/bin/rm -f $(DL)/pkgconfig/libpng.pc
+ cp libpng.pc $(DL)/pkgconfig/$(LIBNAME).pc
+ chmod 644 $(DL)/pkgconfig/$(LIBNAME).pc
+ (cd $(DL)/pkgconfig; ln -f -s $(LIBNAME).pc libpng.pc)
+
+ install-man: libpng.3 libpngpf.3 png.5
+ - at if [ ! -d $(DM) ]; then mkdir $(DM); fi
+ - at if [ ! -d $(DM)/man3 ]; then mkdir $(DM)/man3; fi
+ -@/bin/rm -f $(DM)/man3/libpng.3
+ -@/bin/rm -f $(DM)/man3/libpngpf.3
+ cp libpng.3 $(DM)/man3
+ cp libpngpf.3 $(DM)/man3
+ - at if [ ! -d $(DM)/man5 ]; then mkdir $(DM)/man5; fi
+ -@/bin/rm -f $(DM)/man5/png.5
+ cp png.5 $(DM)/man5
+
+ install-config: libpng-config
+ - at if [ ! -d $(DB) ]; then mkdir $(DB); fi
+ -@/bin/rm -f $(DB)/libpng-config
+ -@/bin/rm -f $(DB)/$(LIBNAME)-config
+ cp libpng-config $(DB)/$(LIBNAME)-config
+ chmod 755 $(DB)/$(LIBNAME)-config
+ (cd $(DB); ln -sf $(LIBNAME)-config libpng-config)
+
+ install: install-static install-shared install-man install-config
+
+ # If you installed in $(DESTDIR), test-installed won't work until you
+ # move the library to its final location.
+
+ test-installed:
+ $(CC) $(CFLAGS) \
+ `$(BINPATH)/libpng12-config --cflags` pngtest.c \
+ -L$(ZLIBLIB) \
+ -o pngtesti `$(BINPATH)/libpng12-config --ldflags`
+ ./pngtesti pngtest.png
+
+ clean:
+ /bin/rm -f *.o libpng.a pngtest pngout.png libpng-config \
+ $(LIBNAME).so $(LIBNAME).so.$(PNGMAJ)* pngtest-static pngtesti \
+ libpng.so.3.$(PNGMIN) \
+ libpng.pc
+
+ DOCS = ANNOUNCE CHANGES INSTALL KNOWNBUG LICENSE README TODO Y2KINFO
+ writelock:
+ chmod a-w *.[ch35] $(DOCS) scripts/*
+
+ # DO NOT DELETE THIS LINE -- make depend depends on it.
+
+ png.o png.pic.o: png.h pngconf.h
+ pngerror.o pngerror.pic.o: png.h pngconf.h
+ pngrio.o pngrio.pic.o: png.h pngconf.h
+ pngwio.o pngwio.pic.o: png.h pngconf.h
+ pngmem.o pngmem.pic.o: png.h pngconf.h
+ pngset.o pngset.pic.o: png.h pngconf.h
+ pngget.o pngget.pic.o: png.h pngconf.h
+ pngread.o pngread.pic.o: png.h pngconf.h
+ pngrtran.o pngrtran.pic.o: png.h pngconf.h
+ pngrutil.o pngrutil.pic.o: png.h pngconf.h
+ pngtrans.o pngtrans.pic.o: png.h pngconf.h
+ pngwrite.o pngwrite.pic.o: png.h pngconf.h
+ pngwtran.o pngwtran.pic.o: png.h pngconf.h
+ pngwutil.o pngwutil.pic.o: png.h pngconf.h
+ pngpread.o pngpread.pic.o: png.h pngconf.h
+
+ pngtest.o: png.h pngconf.h
Index: llvm/runtime/libpng/scripts/makefile.sggcc
diff -c /dev/null llvm/runtime/libpng/scripts/makefile.sggcc:1.1.2.1
*** /dev/null Mon Mar 1 17:58:58 2004
--- llvm/runtime/libpng/scripts/makefile.sggcc Mon Mar 1 17:58:47 2004
***************
*** 0 ****
--- 1,211 ----
+ # makefile for libpng.a and libpng12.so, SGI IRIX with 'cc'
+ # Copyright (C) 2001-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
+
+ # Where make install puts libpng.a, libpng12.so, and libpng12/png.h
+ # Prefix must be a full pathname.
+
+ prefix=/usr/local
+
+ # Where the zlib library and include files are located
+ #ZLIBLIB=/usr/local/lib32
+ #ZLIBINC=/usr/local/include
+ #ZLIBLIB=/usr/local/lib
+ #ZLIBINC=/usr/local/include
+ ZLIBLIB=../zlib
+ ZLIBINC=../zlib
+
+ LIBNAME=libpng12
+ PNGMAJ = 0
+ PNGMIN = 1.2.5
+ PNGVER = $(PNGMAJ).$(PNGMIN)
+ CC=gcc
+
+ # ABI can be blank to use default for your system, -32, -o32, -n32, or -64
+ # See "man abi". zlib must be built with the same ABI.
+ ABI=
+
+ WARNMORE= # -g -DPNG_DEBUG=5
+ CFLAGS=$(ABI) -I$(ZLIBINC) -O2 $(WARNMORE) -fPIC -mabi=n32
+ LDFLAGS=$(ABI) -L. -L$(ZLIBLIB) -lpng -lz -lm
+ LDSHARED=cc $(ABI) -shared -soname $(LIBNAME).so.$(PNGMAJ) \
+ -set_version sgi$(PNGMAJ).0
+ LDLEGACY=cc $(ABI) -shared -soname libpng.so.3 \
+ -set_version sgi$3.0
+ # See "man dso" for info about shared objects
+
+ RANLIB=echo
+ #RANLIB=ranlib
+
+ INCPATH=$(prefix)/include
+ LIBPATH=$(prefix)/lib
+ #LIBPATH=$(prefix)/lib32
+ MANPATH=$(prefix)/man
+ BINPATH=$(prefix)/bin
+
+ # override DESTDIR= on the make install command line to easily support
+ # installing into a temporary location. Example:
+ #
+ # make install DESTDIR=/tmp/build/libpng
+ #
+ # If you're going to install into a temporary location
+ # via DESTDIR, $(DESTDIR)$(prefix) must already exist before
+ # you execute make install.
+ DESTDIR=
+
+ DB=$(DESTDIR)$(BINPATH)
+ DI=$(DESTDIR)$(INCPATH)
+ DL=$(DESTDIR)$(LIBPATH)
+ DM=$(DESTDIR)$(MANPATH)
+
+ OBJS = pnggccrd.o 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
+
+ all: libpng.a pngtest shared libpng.pc libpng-config
+
+ libpng.a: $(OBJS)
+ ar rc $@ $(OBJS)
+ $(RANLIB) $@
+
+ shared: $(LIBNAME).so.$(PNGVER)
+
+ libpng.pc:
+ cat scripts/libpng.pc.in | sed -e s\!@PREFIX@!$(prefix)! > libpng.pc
+
+ libpng-config:
+ ( cat scripts/libpng-config-head.in; \
+ echo prefix=\"$(prefix)\"; \
+ echo I_opts=\"-I$(INCPATH)/$(LIBNAME)\"; \
+ echo ccopts=\"$(ABI)\"; \
+ echo ldopts=\"$(ABI)\"; \
+ echo L_opts=\"-L$(LIBPATH)\"; \
+ echo libdir=\"$(LIBPATH)\"; \
+ echo libs=\"-lpng12 -lz -lm\"; \
+ cat scripts/libpng-config-body.in ) > libpng-config
+ chmod +x libpng-config
+
+ $(LIBNAME).so: $(LIBNAME).so.$(PNGMAJ)
+ ln -sf $(LIBNAME).so.$(PNGMAJ) $(LIBNAME).so
+
+ $(LIBNAME).so.$(PNGMAJ): $(LIBNAME).so.$(PNGVER)
+ ln -sf $(LIBNAME).so.$(PNGVER) $(LIBNAME).so.$(PNGMAJ)
+
+ $(LIBNAME).so.$(PNGVER): $(OBJS)
+ $(LDSHARED) -o $@ $(OBJS)
+ rm -f $(LIBNAME).so $(LIBNAME).so.$(PNGMAJ)
+
+ libpng.so.3.$(PNGMIN): $(OBJS)
+ $(LDLEGACY) -o $@ $(OBJS)
+
+ pngtest: pngtest.o libpng.a
+ $(CC) -o pngtest $(CFLAGS) pngtest.o $(LDFLAGS)
+
+ test: pngtest
+ echo
+ echo Testing local static library.
+ ./pngtest
+
+ install-headers: png.h pngconf.h
+ - at if [ ! -d $(DI) ]; then mkdir $(DI); fi
+ - at if [ ! -d $(DI)/$(LIBNAME) ]; then mkdir $(DI)/$(LIBNAME); fi
+ cp png.h pngconf.h $(DI)/$(LIBNAME)
+ chmod 644 $(DI)/$(LIBNAME)/png.h $(DI)/$(LIBNAME)/pngconf.h
+ -@/bin/rm -f $(DI)/png.h $(DI)/pngconf.h
+ -@/bin/rm -f $(DI)/libpng
+ (cd $(DI); ln -sf $(LIBNAME) libpng; ln -sf $(LIBNAME)/* .)
+
+ install-static: install-headers libpng.a
+ - at if [ ! -d $(DL) ]; then mkdir $(DL); fi
+ cp libpng.a $(DL)/$(LIBNAME).a
+ chmod 644 $(DL)/$(LIBNAME).a
+ -@/bin/rm -f $(DL)/libpng.a
+ (cd $(DL); ln -sf $(LIBNAME).a libpng.a)
+
+ install-shared: install-headers $(LIBNAME).so.$(PNGVER) libpng.pc \
+ libpng.so.3.$(PNGMIN)
+ - at if [ ! -d $(DL) ]; then mkdir $(DL); fi
+ -@/bin/rm -f $(DL)/$(LIBNAME).so.$(PNGVER)* $(DL)/$(LIBNAME).so
+ -@/bin/rm -f $(DL)/libpng.so
+ -@/bin/rm -f $(DL)/libpng.so.3
+ -@/bin/rm -f $(DL)/libpng.so.3.$(PNGMIN)*
+ cp $(LIBNAME).so.$(PNGVER) $(DL)
+ cp libpng.so.3.$(PNGMIN) $(DL)
+ chmod 755 $(DL)/$(LIBNAME).so.$(PNGVER)
+ chmod 755 $(DL)/libpng.so.3.$(PNGMIN)
+ (cd $(DL); \
+ ln -sf libpng.so.3.$(PNGMIN) libpng.so.3; \
+ ln -sf libpng.so.3 libpng.so; \
+ ln -sf $(LIBNAME).so.$(PNGVER) $(LIBNAME).so.$(PNGMAJ); \
+ ln -sf $(LIBNAME).so.$(PNGMAJ) $(LIBNAME).so)
+ - at if [ ! -d $(DL)/pkgconfig ]; then mkdir $(DL)/pkgconfig; fi
+ -@/bin/rm -f $(DL)/pkgconfig/$(LIBNAME).pc
+ -@/bin/rm -f $(DL)/pkgconfig/libpng.pc
+ cp libpng.pc $(DL)/pkgconfig/$(LIBNAME).pc
+ chmod 644 $(DL)/pkgconfig/$(LIBNAME).pc
+ (cd $(DL)/pkgconfig; ln -sf $(LIBNAME).pc libpng.pc)
+
+ install-man: libpng.3 libpngpf.3 png.5
+ - at if [ ! -d $(DM) ]; then mkdir $(DM); fi
+ - at if [ ! -d $(DM)/man3 ]; then mkdir $(DM)/man3; fi
+ -@/bin/rm -f $(DM)/man3/libpng.3
+ -@/bin/rm -f $(DM)/man3/libpngpf.3
+ cp libpng.3 $(DM)/man3
+ cp libpngpf.3 $(DM)/man3
+ - at if [ ! -d $(DM)/man5 ]; then mkdir $(DM)/man5; fi
+ -@/bin/rm -f $(DM)/man5/png.5
+ cp png.5 $(DM)/man5
+
+ install-config: libpng-config
+ - at if [ ! -d $(DB) ]; then mkdir $(DB); fi
+ -@/bin/rm -f $(DB)/libpng-config
+ -@/bin/rm -f $(DB)/$(LIBNAME)-config
+ cp libpng-config $(DB)/$(LIBNAME)-config
+ chmod 755 $(DB)/$(LIBNAME)-config
+ (cd $(DB); ln -sf $(LIBNAME)-config libpng-config)
+
+ install: install-static install-shared install-man install-config
+
+ # If you installed in $(DESTDIR), test-installed won't work until you
+ # move the library to its final location.
+
+ test-installed:
+ echo
+ echo Testing installed dynamic shared library.
+ $(CC) -I$(ZLIBINC) \
+ `$(BINPATH)/libpng12-config --cflags` pngtest.c \
+ -L$(ZLIBLIB) -rpath $(ZLIBLIB):`$(BINPATH)/libpng12-config --libdir` \
+ -o pngtesti `$(BINPATH)/libpng12-config --ldflags`
+ ./pngtesti pngtest.png
+
+ clean:
+ rm -f *.o libpng.a pngtest pngtesti pngout.png libpng.pc libpng-config \
+ $(LIBNAME).so $(LIBNAME).so.$(PNGMAJ)* \
+ libpng.so.3.$(PNGMIN) \
+ so_locations
+
+ DOCS = ANNOUNCE CHANGES INSTALL KNOWNBUG LICENSE README TODO Y2KINFO
+ writelock:
+ chmod a-w *.[ch35] $(DOCS) scripts/*
+
+ # DO NOT DELETE THIS LINE -- make depend depends on it.
+
+ png.o: png.h pngconf.h
+ pngerror.o: png.h pngconf.h
+ pngrio.o: png.h pngconf.h
+ pngwio.o: png.h pngconf.h
+ pngmem.o: png.h pngconf.h
+ pngset.o: png.h pngconf.h
+ pngget.o: png.h pngconf.h
+ pngread.o: png.h pngconf.h
+ pngrtran.o: png.h pngconf.h
+ pngrutil.o: png.h pngconf.h
+ pngtest.o: png.h pngconf.h
+ pngtrans.o: png.h pngconf.h
+ pngwrite.o: png.h pngconf.h
+ pngwtran.o: png.h pngconf.h
+ pngwutil.o: png.h pngconf.h
+ pngpread.o: png.h pngconf.h
+ pnggccrd.o: png.h pngconf.h
+
Index: llvm/runtime/libpng/scripts/makefile.sgi
diff -c /dev/null llvm/runtime/libpng/scripts/makefile.sgi:1.1.2.1
*** /dev/null Mon Mar 1 17:58:58 2004
--- llvm/runtime/libpng/scripts/makefile.sgi Mon Mar 1 17:58:47 2004
***************
*** 0 ****
--- 1,217 ----
+ # makefile for libpng.a and libpng12.so, SGI IRIX with 'cc'
+ # Copyright (C) 2001-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
+
+ LIBNAME=libpng12
+ PNGMAJ = 0
+ PNGMIN = 1.2.5
+ PNGVER = $(PNGMAJ).$(PNGMIN)
+
+ # Where make install puts libpng.a, libpng12.so, and libpng12/png.h
+ # Prefix must be a full pathname.
+
+ prefix=/usr/local
+
+ # Where the zlib library and include files are located
+ #ZLIBLIB=/usr/local/lib32
+ #ZLIBINC=/usr/local/include
+ #ZLIBLIB=/usr/local/lib
+ #ZLIBINC=/usr/local/include
+ ZLIBLIB=../zlib
+ ZLIBINC=../zlib
+
+ CC=cc
+
+ # ABI can be blank to use default for your system, -32, -o32, -n32, or -64
+ # See "man abi". zlib must be built with the same ABI.
+ 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_ASSEMBLER_CODE
+ LDFLAGS_A=$(ABI) -L. -L$(ZLIBLIB) -lpng12 -lz -lm
+ LDFLAGS=$(ABI) -L. -L$(ZLIBLIB) -lpng -lz -lm
+ LDSHARED=cc $(ABI) -shared -soname $(LIBNAME).so.$(PNGMAJ) \
+ -set_version sgi$(PNGMAJ).0
+ LDLEGACY=cc $(ABI) -shared -soname libpng.so.3 \
+ -set_version sgi$3.0
+ # See "man dso" for info about shared objects
+
+ RANLIB=echo
+ #RANLIB=ranlib
+
+ INCPATH=$(prefix)/include
+ LIBPATH=$(prefix)/lib
+ #LIBPATH=$(prefix)/lib32
+ MANPATH=$(prefix)/man
+ BINPATH=$(prefix)/bin
+
+ # override DESTDIR= on the make install command line to easily support
+ # installing into a temporary location. Example:
+ #
+ # make install DESTDIR=/tmp/build/libpng
+ #
+ # If you're going to install into a temporary location
+ # via DESTDIR, $(DESTDIR)$(prefix) must already exist before
+ # you execute make install.
+ DESTDIR=
+
+ DB=$(DESTDIR)$(BINPATH)
+ DI=$(DESTDIR)$(INCPATH)
+ DL=$(DESTDIR)$(LIBPATH)
+ DM=$(DESTDIR)$(MANPATH)
+
+ OBJS = pnggccrd.o 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
+
+ all: libpng.a pngtest shared libpng.pc libpng-config
+
+ libpng.a: $(OBJS)
+ ar rc $@ $(OBJS)
+ $(RANLIB) $@
+
+ shared: $(LIBNAME).so.$(PNGVER)
+
+ libpng.pc:
+ cat scripts/libpng.pc.in | sed -e s\!@PREFIX@!$(prefix)! > libpng.pc
+
+ libpng-config:
+ ( cat scripts/libpng-config-head.in; \
+ echo prefix=\"$(prefix)\"; \
+ echo I_opts=\"-I$(INCPATH)/$(LIBNAME)\"; \
+ echo cppflags=\"-DPNG_USE_PNGGCCRD -DPNG_NO_ASSEMBLER_CODE\"; \
+ echo ccopts=\"$(ABI)\"; \
+ echo ldopts=\"$(ABI)\"; \
+ echo L_opts=\"-L$(LIBPATH)\"; \
+ echo libdir=\"$(LIBPATH)\"; \
+ echo libs=\"-lpng12 -lz -lm\"; \
+ cat scripts/libpng-config-body.in ) > libpng-config
+ chmod +x libpng-config
+
+ $(LIBNAME).so: $(LIBNAME).so.$(PNGMAJ)
+ ln -sf $(LIBNAME).so.$(PNGMAJ) $(LIBNAME).so
+
+ $(LIBNAME).so.$(PNGMAJ): $(LIBNAME).so.$(PNGVER)
+ ln -sf $(LIBNAME).so.$(PNGVER) $(LIBNAME).so.$(PNGMAJ)
+
+ $(LIBNAME).so.$(PNGVER): $(OBJS)
+ $(LDSHARED) -o $@ $(OBJS)
+ rm -f $(LIBNAME).so $(LIBNAME).so.$(PNGMAJ)
+
+ libpng.so.3.$(PNGMIN): $(OBJS)
+ $(LDLEGACY) -o $@ $(OBJS)
+
+ pngtest: pngtest.o libpng.a
+ $(CC) -o pngtest $(CFLAGS) pngtest.o $(LDFLAGS)
+
+ test: pngtest
+ echo
+ echo Testing local static library.
+ ./pngtest
+
+ install-headers: png.h pngconf.h
+ - at if [ ! -d $(DI) ]; then mkdir $(DI); fi
+ - at if [ ! -d $(DI)/$(LIBNAME) ]; then mkdir $(DI)/$(LIBNAME); fi
+ cp png.h pngconf.h $(DI)/$(LIBNAME)
+ chmod 644 $(DI)/$(LIBNAME)/png.h $(DI)/$(LIBNAME)/pngconf.h
+ -@/bin/rm -f $(DI)/png.h $(DI)/pngconf.h
+ -@/bin/rm -f $(DI)/libpng
+ (cd $(DI); ln -sf $(LIBNAME) libpng; ln -sf $(LIBNAME)/* .)
+
+ install-static: install-headers libpng.a
+ - at if [ ! -d $(DL) ]; then mkdir $(DL); fi
+ cp libpng.a $(DL)/$(LIBNAME).a
+ chmod 644 $(DL)/$(LIBNAME).a
+ -@/bin/rm -f $(DL)/libpng.a
+ (cd $(DL); ln -sf $(LIBNAME).a libpng.a)
+
+ install-shared: install-headers $(LIBNAME).so.$(PNGVER) libpng.pc \
+ libpng.so.3.$(PNGMIN)
+ - at if [ ! -d $(DL) ]; then mkdir $(DL); fi
+ -@/bin/rm -f $(DL)/$(LIBNAME).so.$(PNGVER)* $(DL)/$(LIBNAME).so
+ -@/bin/rm -f $(DL)/libpng.so
+ -@/bin/rm -f $(DL)/libpng.so.3
+ -@/bin/rm -f $(DL)/libpng.so.3.$(PNGMIN)*
+ cp $(LIBNAME).so.$(PNGVER) $(DL)
+ cp libpng.so.3.$(PNGMIN) $(DL)
+ chmod 755 $(DL)/$(LIBNAME).so.$(PNGVER)
+ chmod 755 $(DL)/libpng.so.3.$(PNGMIN)
+ (cd $(DL); \
+ ln -sf libpng.so.3.$(PNGMIN) libpng.so.3; \
+ ln -sf libpng.so.3 libpng.so; \
+ ln -sf $(LIBNAME).so.$(PNGVER) $(LIBNAME).so.$(PNGMAJ); \
+ ln -sf $(LIBNAME).so.$(PNGMAJ) $(LIBNAME).so)
+ - at if [ ! -d $(DL)/pkgconfig ]; then mkdir $(DL)/pkgconfig; fi
+ -@/bin/rm -f $(DL)/pkgconfig/$(LIBNAME).pc
+ -@/bin/rm -f $(DL)/pkgconfig/libpng.pc
+ cp libpng.pc $(DL)/pkgconfig/$(LIBNAME).pc
+ chmod 644 $(DL)/pkgconfig/$(LIBNAME).pc
+ (cd $(DL)/pkgconfig; ln -sf $(LIBNAME).pc libpng.pc)
+
+ install-man: libpng.3 libpngpf.3 png.5
+ - at if [ ! -d $(DM) ]; then mkdir $(DM); fi
+ - at if [ ! -d $(DM)/man3 ]; then mkdir $(DM)/man3; fi
+ -@/bin/rm -f $(DM)/man3/libpng.3
+ -@/bin/rm -f $(DM)/man3/libpngpf.3
+ cp libpng.3 $(DM)/man3
+ cp libpngpf.3 $(DM)/man3
+ - at if [ ! -d $(DM)/man5 ]; then mkdir $(DM)/man5; fi
+ -@/bin/rm -f $(DM)/man5/png.5
+ cp png.5 $(DM)/man5
+
+ install-config: libpng-config
+ - at if [ ! -d $(DB) ]; then mkdir $(DB); fi
+ -@/bin/rm -f $(DB)/libpng-config
+ -@/bin/rm -f $(DB)/$(LIBNAME)-config
+ cp libpng-config $(DB)/$(LIBNAME)-config
+ chmod 755 $(DB)/$(LIBNAME)-config
+ (cd $(DB); ln -sf $(LIBNAME)-config libpng-config)
+
+ install: install-static install-shared install-man install-config
+
+ # If you installed in $(DESTDIR), test-installed won't work until you
+ # move the library to its final location.
+
+ test-installed:
+ echo
+ echo Testing installed dynamic shared library.
+ $(CC) -I$(ZLIBINC) \
+ `$(BINPATH)/libpng12-config --cflags` pngtest.c \
+ -L$(ZLIBLIB) -rpath $(ZLIBLIB):`$(BINPATH)/libpng12-config --libdir` \
+ -o pngtesti `$(BINPATH)/libpng12-config --ldflags`
+ ./pngtesti pngtest.png
+
+ clean:
+ rm -f *.o libpng.a pngtest pngtesti pngout.png libpng.pc libpng-config \
+ $(LIBNAME).so $(LIBNAME).so.$(PNGMAJ)* \
+ libpng.so.3.$(PNGMIN) \
+ so_locations
+
+ DOCS = ANNOUNCE CHANGES INSTALL KNOWNBUG LICENSE README TODO Y2KINFO
+ writelock:
+ chmod a-w *.[ch35] $(DOCS) scripts/*
+
+ # DO NOT DELETE THIS LINE -- make depend depends on it.
+
+ png.o: png.h pngconf.h
+ pngerror.o: png.h pngconf.h
+ pngrio.o: png.h pngconf.h
+ pngwio.o: png.h pngconf.h
+ pngmem.o: png.h pngconf.h
+ pngset.o: png.h pngconf.h
+ pngget.o: png.h pngconf.h
+ pngread.o: png.h pngconf.h
+ pngrtran.o: png.h pngconf.h
+ pngrutil.o: png.h pngconf.h
+ pngtest.o: png.h pngconf.h
+ pngtrans.o: png.h pngconf.h
+ pngwrite.o: png.h pngconf.h
+ pngwtran.o: png.h pngconf.h
+ pngwutil.o: png.h pngconf.h
+ pngpread.o: png.h pngconf.h
+ pnggccrd.o: png.h pngconf.h
+
Index: llvm/runtime/libpng/scripts/makefile.so9
diff -c /dev/null llvm/runtime/libpng/scripts/makefile.so9:1.1.2.1
*** /dev/null Mon Mar 1 17:58:58 2004
--- llvm/runtime/libpng/scripts/makefile.so9 Mon Mar 1 17:58:47 2004
***************
*** 0 ****
--- 1,223 ----
+ # makefile for libpng on Solaris 9 (beta) with Forte cc
+ # Updated by Chad Schrock for Solaris 9
+ # Contributed by William L. Sebok, based on makefile.linux
+ # Copyright (C) 2002 Glenn Randers-Pehrson
+ # Copyright (C) 1998-2001 Greg Roelofs
+ # Copyright (C) 1996-1997 Andreas Dilger
+ # For conditions of distribution and use, see copyright notice in png.h
+
+ # gcc 2.95 doesn't work.
+ CC=cc
+
+ # Where make install puts libpng.a, libpng.so*, and png.h
+ prefix=/usr/local
+
+ # Where the zlib library and include files are located
+ # Changing these to ../zlib poses a security risk. If you want
+ # to have zlib in an adjacent directory, specify the full path instead of "..".
+ #ZLIBLIB=../zlib
+ #ZLIBINC=../zlib
+ #ZLIBLIB=/usr/local/lib
+ #ZLIBINC=/usr/local/include
+ #Use the preinstalled zlib that comes with Solaris 9:
+ ZLIBLIB=/usr/lib
+ ZLIBINC=/usr/include
+
+ #WARNMORE=-Wwrite-strings -Wpointer-arith -Wshadow \
+ -Wmissing-declarations -Wtraditional -Wcast-align \
+ -Wstrict-prototypes -Wmissing-prototypes #-Wconversion
+ #CFLAGS=-I$(ZLIBINC) -Wall -O3 $(WARNMORE) -g -DPNG_DEBUG=5
+ CFLAGS=-I$(ZLIBINC) -O3
+ LDFLAGS=-L. -R. -L$(ZLIBLIB) -R$(ZLIBLIB) -lpng12 -lz -lm
+
+ #RANLIB=ranlib
+ RANLIB=echo
+
+ PNGMAJ = 0
+ PNGMIN = 1.2.5
+ PNGVER = $(PNGMAJ).$(PNGMIN)
+ LIBNAME = libpng12
+
+ INCPATH=$(prefix)/include
+ LIBPATH=$(prefix)/lib
+ MANPATH=$(prefix)/man
+ BINPATH=$(prefix)/bin
+
+ # override DESTDIR= on the make install command line to easily support
+ # installing into a temporary location. Example:
+ #
+ # make install DESTDIR=/tmp/build/libpng
+ #
+ # If you're going to install into a temporary location
+ # via DESTDIR, $(DESTDIR)$(prefix) must already exist before
+ # you execute make install.
+ DESTDIR=
+
+ DB=$(DESTDIR)$(BINPATH)
+ DI=$(DESTDIR)$(INCPATH)
+ DL=$(DESTDIR)$(LIBPATH)
+ DM=$(DESTDIR)$(MANPATH)
+
+ 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
+
+ OBJSDLL = $(OBJS:.o=.pic.o)
+
+ .SUFFIXES: .c .o .pic.o
+
+ .c.pic.o:
+ $(CC) -c $(CFLAGS) -KPIC -o $@ $*.c
+
+ all: libpng.a $(LIBNAME).so pngtest libpng.pc libpng-config
+
+ libpng.a: $(OBJS)
+ ar rc $@ $(OBJS)
+ $(RANLIB) $@
+
+ libpng.pc:
+ cat scripts/libpng.pc.in | sed -e s\!@PREFIX@!$(prefix)! > libpng.pc
+
+ libpng-config:
+ ( cat scripts/libpng-config-head.in; \
+ echo prefix=\"$(prefix)\"; \
+ echo I_opts=\"-I$(INCPATH)/$(LIBNAME)\"; \
+ echo L_opts=\"-L$(LIBPATH)\"; \
+ echo R_opts=\"-R$(LIBPATH)\"; \
+ echo libs=\"-lpng12 -lz -lm\"; \
+ cat scripts/libpng-config-body.in ) > libpng-config
+ chmod +x libpng-config
+
+ $(LIBNAME).so: $(LIBNAME).so.$(PNGMAJ)
+ ln -f -s $(LIBNAME).so.$(PNGMAJ) $(LIBNAME).so
+
+ $(LIBNAME).so.$(PNGMAJ): $(LIBNAME).so.$(PNGVER)
+ ln -f -s $(LIBNAME).so.$(PNGVER) $(LIBNAME).so.$(PNGMAJ)
+
+ $(LIBNAME).so.$(PNGVER): $(OBJSDLL)
+ @case "`type ld`" in *ucb*) \
+ echo; \
+ echo '## WARNING:'; \
+ echo '## The commands "CC" and "LD" must NOT refer to /usr/ucb/cc'; \
+ echo '## and /usr/ucb/ld. If they do, you need to adjust your PATH'; \
+ echo '## environment variable to put /usr/ccs/bin ahead of /usr/ucb.'; \
+ echo '## The environment variable LD_LIBRARY_PATH should not be set'; \
+ echo '## at all. If it is, things are likely to break because of'; \
+ echo '## the libucb dependency that is created.'; \
+ echo; \
+ ;; \
+ esac
+ $(LD) -G -h $(LIBNAME).so.$(PNGMAJ) \
+ -o $(LIBNAME).so.$(PNGVER) $(OBJSDLL)
+
+ libpng.so.3.$(PNGMIN): $(OBJS)
+ $(LD) -G -h libpng.so.3 \
+ -o libpng.so.3.$(PNGMIN) $(OBJSDLL)
+
+ pngtest: pngtest.o $(LIBNAME).so
+ $(CC) -o pngtest $(CFLAGS) pngtest.o $(LDFLAGS)
+
+ test: pngtest
+ ./pngtest
+
+ install-headers: png.h pngconf.h
+ - at if [ ! -d $(DI) ]; then mkdir $(DI); fi
+ - at if [ ! -d $(DI)/$(LIBNAME) ]; then mkdir $(DI)/$(LIBNAME); fi
+ cp png.h pngconf.h $(DI)/$(LIBNAME)
+ chmod 644 $(DI)/$(LIBNAME)/png.h $(DI)/$(LIBNAME)/pngconf.h
+ -@/bin/rm -f $(DI)/png.h $(DI)/pngconf.h
+ -@/bin/rm -f $(DI)/libpng
+ (cd $(DI); ln -f -s $(LIBNAME) libpng; ln -f -s $(LIBNAME)/* .)
+
+ install-static: install-headers libpng.a
+ - at if [ ! -d $(DL) ]; then mkdir $(DL); fi
+ cp libpng.a $(DL)/$(LIBNAME).a
+ chmod 644 $(DL)/$(LIBNAME).a
+ -@/bin/rm -f $(DL)/libpng.a
+ (cd $(DL); ln -f -s $(LIBNAME).a libpng.a)
+
+ install-shared: install-headers $(LIBNAME).so.$(PNGVER) libpng.pc \
+ libpng.so.3.$(PNGMIN)
+ - at if [ ! -d $(DL) ]; then mkdir $(DL); fi
+ -@/bin/rm -f $(DL)/$(LIBNAME).so.$(PNGVER)* $(DL)/$(LIBNAME).so
+ -@/bin/rm -f $(DL)/libpng.so
+ -@/bin/rm -f $(DL)/libpng.so.3
+ -@/bin/rm -f $(DL)/libpng.so.3.$(PNGMIN)*
+ cp $(LIBNAME).so.$(PNGVER) $(DL)
+ cp libpng.so.3.$(PNGMIN) $(DL)
+ chmod 755 $(DL)/$(LIBNAME).so.$(PNGVER)
+ chmod 755 $(DL)/libpng.so.3.$(PNGMIN)
+ (cd $(DL); \
+ ln -f -s libpng.so.3.$(PNGMIN) libpng.so.3; \
+ ln -f -s libpng.so.3 libpng.so; \
+ ln -f -s $(LIBNAME).so.$(PNGVER) $(LIBNAME).so.$(PNGMAJ); \
+ ln -f -s $(LIBNAME).so.$(PNGMAJ) $(LIBNAME).so)
+ - at if [ ! -d $(DL)/pkgconfig ]; then mkdir $(DL)/pkgconfig; fi
+ -@/bin/rm -f $(DL)/pkgconfig/$(LIBNAME).pc
+ -@/bin/rm -f $(DL)/pkgconfig/libpng.pc
+ cp libpng.pc $(DL)/pkgconfig/$(LIBNAME).pc
+ chmod 644 $(DL)/pkgconfig/$(LIBNAME).pc
+ (cd $(DL)/pkgconfig; ln -f -s $(LIBNAME).pc libpng.pc)
+
+ install-man: libpng.3 libpngpf.3 png.5
+ - at if [ ! -d $(DM) ]; then mkdir $(DM); fi
+ - at if [ ! -d $(DM)/man3 ]; then mkdir $(DM)/man3; fi
+ -@/bin/rm -f $(DM)/man3/libpng.3
+ -@/bin/rm -f $(DM)/man3/libpngpf.3
+ cp libpng.3 $(DM)/man3
+ cp libpngpf.3 $(DM)/man3
+ - at if [ ! -d $(DM)/man5 ]; then mkdir $(DM)/man5; fi
+ -@/bin/rm -f $(DM)/man5/png.5
+ cp png.5 $(DM)/man5
+
+ install-config: libpng-config
+ - at if [ ! -d $(DB) ]; then mkdir $(DB); fi
+ -@/bin/rm -f $(DB)/libpng-config
+ -@/bin/rm -f $(DB)/$(LIBNAME)-config
+ cp libpng-config $(DB)/$(LIBNAME)-config
+ chmod 755 $(DB)/$(LIBNAME)-config
+ (cd $(DB); ln -sf $(LIBNAME)-config libpng-config)
+
+ install: install-static install-shared install-man install-config
+
+ # If you installed in $(DESTDIR), test-installed won't work until you
+ # move the library to its final location.
+
+ test-installed:
+ echo
+ echo Testing installed dynamic shared library.
+ $(CC) -I$(ZLIBINC) \
+ `$(BINPATH)/libpng12-config --cflags` pngtest.c \
+ -o pngtesti `$(BINPATH)/libpng12-config --ldflags` \
+ -L$(ZLIBLIB) -R$(ZLIBLIB)
+ ./pngtesti pngtest.png
+
+ clean:
+ /bin/rm -f *.o libpng.a pngtest pngtesti pngout.png \
+ libpng-config $(LIBNAME).so $(LIBNAME).so.$(PNGMAJ)* \
+ libpng.so.3.$(PNGMIN) \
+ libpng.pc
+
+ DOCS = ANNOUNCE CHANGES INSTALL KNOWNBUG LICENSE README TODO Y2KINFO
+ writelock:
+ chmod a-w *.[ch35] $(DOCS) scripts/*
+
+ # DO NOT DELETE THIS LINE -- make depend depends on it.
+
+ png.o png.pic.o: png.h pngconf.h
+ pngerror.o pngerror.pic.o: png.h pngconf.h
+ pngrio.o pngrio.pic.o: png.h pngconf.h
+ pngwio.o pngwio.pic.o: png.h pngconf.h
+ pngmem.o pngmem.pic.o: png.h pngconf.h
+ pngset.o pngset.pic.o: png.h pngconf.h
+ pngget.o pngget.pic.o: png.h pngconf.h
+ pngread.o pngread.pic.o: png.h pngconf.h
+ pngrtran.o pngrtran.pic.o: png.h pngconf.h
+ pngrutil.o pngrutil.pic.o: png.h pngconf.h
+ pngtrans.o pngtrans.pic.o: png.h pngconf.h
+ pngwrite.o pngwrite.pic.o: png.h pngconf.h
+ pngwtran.o pngwtran.pic.o: png.h pngconf.h
+ pngwutil.o pngwutil.pic.o: png.h pngconf.h
+ pngpread.o pngpread.pic.o: png.h pngconf.h
+
+ pngtest.o: png.h pngconf.h
Index: llvm/runtime/libpng/scripts/makefile.solaris
diff -c /dev/null llvm/runtime/libpng/scripts/makefile.solaris:1.1.2.1
*** /dev/null Mon Mar 1 17:58:58 2004
--- llvm/runtime/libpng/scripts/makefile.solaris Mon Mar 1 17:58:47 2004
***************
*** 0 ****
--- 1,220 ----
+ # makefile for libpng on Solaris 2.x with gcc
+ # Copyright (C) 2002 Glenn Randers-Pehrson
+ # Contributed by William L. Sebok, based on makefile.linux
+ # Copyright (C) 1998 Greg Roelofs
+ # Copyright (C) 1996, 1997 Andreas Dilger
+ # For conditions of distribution and use, see copyright notice in png.h
+
+ CC=gcc
+
+ # Where make install puts libpng.a, libpng12.so*, and png.h
+ prefix=/usr/local
+
+ # Where the zlib library and include files are located
+ # Changing these to ../zlib poses a security risk. If you want
+ # to have zlib in an adjacent directory, specify the full path instead of "..".
+ #ZLIBLIB=../zlib
+ #ZLIBINC=../zlib
+
+ ZLIBLIB=/usr/local/lib
+ ZLIBINC=/usr/local/include
+
+ WARNMORE=-Wwrite-strings -Wpointer-arith -Wshadow \
+ -Wmissing-declarations -Wtraditional -Wcast-align \
+ -Wstrict-prototypes -Wmissing-prototypes #-Wconversion
+ CFLAGS=-I$(ZLIBINC) -Wall -O3 \
+ # $(WARNMORE) -g -DPNG_DEBUG=5
+ LDFLAGS=-L. -R. -L$(ZLIBLIB) -R$(ZLIBLIB) -lpng12 -lz -lm
+
+ #RANLIB=ranlib
+ RANLIB=echo
+
+ PNGMAJ = 0
+ PNGMIN = 1.2.5
+ PNGVER = $(PNGMAJ).$(PNGMIN)
+ LIBNAME = libpng12
+
+ INCPATH=$(prefix)/include
+ LIBPATH=$(prefix)/lib
+ MANPATH=$(prefix)/man
+ BINPATH=$(prefix)/bin
+
+ # override DESTDIR= on the make install command line to easily support
+ # installing into a temporary location. Example:
+ #
+ # make install DESTDIR=/tmp/build/libpng
+ #
+ # If you're going to install into a temporary location
+ # via DESTDIR, $(DESTDIR)$(prefix) must already exist before
+ # you execute make install.
+ DESTDIR=
+
+ DB=$(DESTDIR)$(BINPATH)
+ DI=$(DESTDIR)$(INCPATH)
+ DL=$(DESTDIR)$(LIBPATH)
+ DM=$(DESTDIR)$(MANPATH)
+
+ 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
+
+ OBJSDLL = $(OBJS:.o=.pic.o)
+
+ .SUFFIXES: .c .o .pic.o
+
+ .c.pic.o:
+ $(CC) -c $(CFLAGS) -fPIC -o $@ $*.c
+
+ all: libpng.a $(LIBNAME).so pngtest libpng.pc libpng-config
+
+ libpng.a: $(OBJS)
+ ar rc $@ $(OBJS)
+ $(RANLIB) $@
+
+ libpng.pc:
+ cat scripts/libpng.pc.in | sed -e s\!@PREFIX@!$(prefix)! > libpng.pc
+
+ libpng-config:
+ ( cat scripts/libpng-config-head.in; \
+ echo prefix=\"$(prefix)\"; \
+ echo I_opts=\"-I$(INCPATH)/$(LIBNAME)\"; \
+ echo cppflags=\"-DPNG_USE_PNGGCCRD -DPNG_NO_ASSEMBLER_CODE\"; \
+ echo L_opts=\"-L$(LIBPATH)\"; \
+ echo R_opts=\"-R$(LIBPATH)\"; \
+ echo libs=\"-lpng12 -lz -lm\"; \
+ cat scripts/libpng-config-body.in ) > libpng-config
+ chmod +x libpng-config
+
+ $(LIBNAME).so: $(LIBNAME).so.$(PNGMAJ)
+ ln -f -s $(LIBNAME).so.$(PNGMAJ) $(LIBNAME).so
+
+ $(LIBNAME).so.$(PNGMAJ): $(LIBNAME).so.$(PNGVER)
+ ln -f -s $(LIBNAME).so.$(PNGVER) $(LIBNAME).so.$(PNGMAJ)
+
+ $(LIBNAME).so.$(PNGVER): $(OBJSDLL)
+ @case "`type ld`" in *ucb*) \
+ echo; \
+ echo '## WARNING:'; \
+ echo '## The commands "CC" and "LD" must NOT refer to /usr/ucb/cc'; \
+ echo '## and /usr/ucb/ld. If they do, you need to adjust your PATH'; \
+ echo '## environment variable to put /usr/ccs/bin ahead of /usr/ucb.'; \
+ echo '## The environment variable LD_LIBRARY_PATH should not be set'; \
+ echo '## at all. If it is, things are likely to break because of'; \
+ echo '## the libucb dependency that is created.'; \
+ echo; \
+ ;; \
+ esac
+ $(LD) -G -h $(LIBNAME).so.$(PNGMAJ) \
+ -o $(LIBNAME).so.$(PNGVER) $(OBJSDLL)
+
+ libpng.so.3.$(PNGMIN): $(OBJS)
+ $(LD) -G -h libpng.so.3 \
+ -o libpng.so.3.$(PNGMIN) $(OBJSDLL)
+
+ pngtest: pngtest.o $(LIBNAME).so
+ $(CC) -o pngtest $(CFLAGS) pngtest.o $(LDFLAGS)
+
+ test: pngtest
+ ./pngtest
+
+ install-headers: png.h pngconf.h
+ - at if [ ! -d $(DI) ]; then mkdir $(DI); fi
+ - at if [ ! -d $(DI)/$(LIBNAME) ]; then mkdir $(DI)/$(LIBNAME); fi
+ cp png.h pngconf.h $(DI)/$(LIBNAME)
+ chmod 644 $(DI)/$(LIBNAME)/png.h $(DI)/$(LIBNAME)/pngconf.h
+ -@/bin/rm -f $(DI)/png.h $(DI)/pngconf.h
+ -@/bin/rm -f $(DI)/libpng
+ (cd $(DI); ln -f -s $(LIBNAME) libpng; ln -f -s $(LIBNAME)/* .)
+
+ install-static: install-headers libpng.a
+ - at if [ ! -d $(DL) ]; then mkdir $(DL); fi
+ cp libpng.a $(DL)/$(LIBNAME).a
+ chmod 644 $(DL)/$(LIBNAME).a
+ -@/bin/rm -f $(DL)/libpng.a
+ (cd $(DL); ln -f -s $(LIBNAME).a libpng.a)
+
+ install-shared: install-headers $(LIBNAME).so.$(PNGVER) libpng.pc \
+ libpng.so.3.$(PNGMIN)
+ - at if [ ! -d $(DL) ]; then mkdir $(DL); fi
+ -@/bin/rm -f $(DL)/$(LIBNAME).so.$(PNGVER)* $(DL)/$(LIBNAME).so
+ -@/bin/rm -f $(DL)/libpng.so
+ -@/bin/rm -f $(DL)/libpng.so.3
+ -@/bin/rm -f $(DL)/libpng.so.3.$(PNGMIN)*
+ cp $(LIBNAME).so.$(PNGVER) $(DL)
+ cp libpng.so.3.$(PNGMIN) $(DL)
+ chmod 755 $(DL)/$(LIBNAME).so.$(PNGVER)
+ chmod 755 $(DL)/libpng.so.3.$(PNGMIN)
+ (cd $(DL); \
+ ln -f -s libpng.so.3.$(PNGMIN) libpng.so.3; \
+ ln -f -s libpng.so.3 libpng.so; \
+ ln -f -s $(LIBNAME).so.$(PNGVER) $(LIBNAME).so; \
+ ln -f -s $(LIBNAME).so.$(PNGVER) $(LIBNAME).so.$(PNGMAJ))
+ - at if [ ! -d $(DL)/pkgconfig ]; then mkdir $(DL)/pkgconfig; fi
+ -@/bin/rm -f $(DL)/pkgconfig/$(LIBNAME).pc
+ -@/bin/rm -f $(DL)/pkgconfig/libpng.pc
+ cp libpng.pc $(DL)/pkgconfig/$(LIBNAME).pc
+ chmod 644 $(DL)/pkgconfig/$(LIBNAME).pc
+ (cd $(DL)/pkgconfig; ln -f -s $(LIBNAME).pc libpng.pc)
+
+ install-man: libpng.3 libpngpf.3 png.5
+ - at if [ ! -d $(DM) ]; then mkdir $(DM); fi
+ - at if [ ! -d $(DM)/man3 ]; then mkdir $(DM)/man3; fi
+ -@/bin/rm -f $(DM)/man3/libpng.3
+ -@/bin/rm -f $(DM)/man3/libpngpf.3
+ cp libpng.3 $(DM)/man3
+ cp libpngpf.3 $(DM)/man3
+ - at if [ ! -d $(DM)/man5 ]; then mkdir $(DM)/man5; fi
+ -@/bin/rm -f $(DM)/man5/png.5
+ cp png.5 $(DM)/man5
+
+ install-config: libpng-config
+ - at if [ ! -d $(DB) ]; then mkdir $(DB); fi
+ -@/bin/rm -f $(DB)/libpng-config
+ -@/bin/rm -f $(DB)/$(LIBNAME)-config
+ cp libpng-config $(DB)/$(LIBNAME)-config
+ chmod 755 $(DB)/$(LIBNAME)-config
+ (cd $(DB); ln -sf $(LIBNAME)-config libpng-config)
+
+ install: install-static install-shared install-man install-config
+
+ # If you installed in $(DESTDIR), test-installed won't work until you
+ # move the library to its final location.
+
+ test-installed:
+ echo
+ echo Testing installed dynamic shared library.
+ $(CC) -I$(ZLIBINC) \
+ `$(BINPATH)/libpng12-config --cflags` pngtest.c \
+ -o pngtesti `$(BINPATH)/libpng12-config --ldflags` \
+ -L$(ZLIBLIB) -R$(ZLIBLIB)
+ ./pngtesti pngtest.png
+
+ clean:
+ /bin/rm -f *.o libpng.a pngtest pngtesti pngout.png \
+ libpng-config $(LIBNAME).so $(LIBNAME).so.$(PNGMAJ)* \
+ libpng.so.3.$(PNGMIN) \
+ libpng.pc
+
+ DOCS = ANNOUNCE CHANGES INSTALL KNOWNBUG LICENSE README TODO Y2KINFO
+ writelock:
+ chmod a-w *.[ch35] $(DOCS) scripts/*
+
+ # DO NOT DELETE THIS LINE -- make depend depends on it.
+
+ png.o png.pic.o: png.h pngconf.h
+ pngerror.o pngerror.pic.o: png.h pngconf.h
+ pngrio.o pngrio.pic.o: png.h pngconf.h
+ pngwio.o pngwio.pic.o: png.h pngconf.h
+ pngmem.o pngmem.pic.o: png.h pngconf.h
+ pngset.o pngset.pic.o: png.h pngconf.h
+ pngget.o pngget.pic.o: png.h pngconf.h
+ pngread.o pngread.pic.o: png.h pngconf.h
+ pngrtran.o pngrtran.pic.o: png.h pngconf.h
+ pngrutil.o pngrutil.pic.o: png.h pngconf.h
+ pngtrans.o pngtrans.pic.o: png.h pngconf.h
+ pngwrite.o pngwrite.pic.o: png.h pngconf.h
+ pngwtran.o pngwtran.pic.o: png.h pngconf.h
+ pngwutil.o pngwutil.pic.o: png.h pngconf.h
+ pngpread.o pngpread.pic.o: png.h pngconf.h
+
+ pngtest.o: png.h pngconf.h
Index: llvm/runtime/libpng/scripts/makefile.std
diff -c /dev/null llvm/runtime/libpng/scripts/makefile.std:1.1.2.1
*** /dev/null Mon Mar 1 17:58:58 2004
--- llvm/runtime/libpng/scripts/makefile.std Mon Mar 1 17:58:47 2004
***************
*** 0 ****
--- 1,89 ----
+ # makefile for libpng
+ # 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
+
+ # where make install puts libpng.a and png.h
+ prefix=/usr/local
+ INCPATH=$(prefix)/include
+ LIBPATH=$(prefix)/lib
+
+ # override DESTDIR= on the make install command line to easily support
+ # installing into a temporary location. Example:
+ #
+ # make install DESTDIR=/tmp/build/libpng
+ #
+ # If you're going to install into a temporary location
+ # via DESTDIR, $(DESTDIR)$(prefix) must already exist before
+ # you execute make install.
+ DESTDIR=
+
+ # Where the zlib library and include files are located
+ #ZLIBLIB=/usr/local/lib
+ #ZLIBINC=/usr/local/include
+ ZLIBLIB=../zlib
+ ZLIBINC=../zlib
+
+ CC=cc
+ CFLAGS=-I$(ZLIBINC) -O # -g -DPNG_DEBUG=5
+ LDFLAGS=-L. -L$(ZLIBLIB) -lpng -lz -lm
+
+ #RANLIB=echo
+ RANLIB=ranlib
+
+ 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
+
+ all: libpng.a pngtest
+
+ libpng.a: $(OBJS)
+ ar rc $@ $(OBJS)
+ $(RANLIB) $@
+
+ pngtest: pngtest.o libpng.a
+ $(CC) -o pngtest $(CFLAGS) pngtest.o $(LDFLAGS)
+
+ test: pngtest
+ ./pngtest
+
+ install: libpng.a
+ - at mkdir $(DESTDIR)$(INCPATH)
+ - at mkdir $(DESTDIR)$(INCPATH)/libpng
+ - at mkdir $(DESTDIR)$(LIBPATH)
+ - at rm -f $(DESTDIR)$(INCPATH)/png.h
+ - at rm -f $(DESTDIR)$(INCPATH)/pngconf.h
+ cp png.h $(DESTDIR)$(INCPATH)/libpng
+ cp pngconf.h $(DESTDIR)$(INCPATH)/libpng
+ chmod 644 $(DESTDIR)$(INCPATH)/libpng/png.h
+ chmod 644 $(DESTDIR)$(INCPATH)/libpng/pngconf.h
+ (cd $(DESTDIR)$(INCPATH); ln -f -s libpng/* .)
+ cp libpng.a $(DESTDIR)$(LIBPATH)
+ chmod 644 $(DESTDIR)$(LIBPATH)/libpng.a
+
+ clean:
+ rm -f *.o libpng.a pngtest pngout.png
+
+ DOCS = ANNOUNCE CHANGES INSTALL KNOWNBUG LICENSE README TODO Y2KINFO
+ writelock:
+ chmod a-w *.[ch35] $(DOCS) scripts/*
+
+ # DO NOT DELETE THIS LINE -- make depend depends on it.
+
+ png.o: png.h pngconf.h
+ pngerror.o: png.h pngconf.h
+ pngrio.o: png.h pngconf.h
+ pngwio.o: png.h pngconf.h
+ pngmem.o: png.h pngconf.h
+ pngset.o: png.h pngconf.h
+ pngget.o: png.h pngconf.h
+ pngread.o: png.h pngconf.h
+ pngrtran.o: png.h pngconf.h
+ pngrutil.o: png.h pngconf.h
+ pngtest.o: png.h pngconf.h
+ pngtrans.o: png.h pngconf.h
+ pngwrite.o: png.h pngconf.h
+ pngwtran.o: png.h pngconf.h
+ pngwutil.o: png.h pngconf.h
+ pngpread.o: png.h pngconf.h
+
Index: llvm/runtime/libpng/scripts/makefile.sunos
diff -c /dev/null llvm/runtime/libpng/scripts/makefile.sunos:1.1.2.1
*** /dev/null Mon Mar 1 17:58:58 2004
--- llvm/runtime/libpng/scripts/makefile.sunos Mon Mar 1 17:58:47 2004
***************
*** 0 ****
--- 1,93 ----
+ # makefile for libpng
+ # 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
+
+ # where make install puts libpng.a and png.h
+ prefix=/usr/local
+ INCPATH=$(prefix)/include
+ LIBPATH=$(prefix)/lib
+
+ # override DESTDIR= on the make install command line to easily support
+ # installing into a temporary location. Example:
+ #
+ # make install DESTDIR=/tmp/build/libpng
+ #
+ # If you're going to install into a temporary location
+ # via DESTDIR, $(DESTDIR)$(prefix) must already exist before
+ # you execute make install.
+ DESTDIR=
+
+ # Where the zlib library and include files are located
+ #ZLIBLIB=/usr/local/lib
+ #ZLIBINC=/usr/local/include
+ ZLIBLIB=../zlib
+ ZLIBINC=../zlib
+
+
+ WARNMORE=-Wwrite-strings -Wpointer-arith -Wshadow -Wconversion \
+ -Wmissing-declarations -Wtraditional -Wcast-align \
+ -Wstrict-prototypes -Wmissing-prototypes
+ CC=gcc
+ CFLAGS=-I$(ZLIBINC) -O # $(WARNMORE) -DPNG_DEBUG=5
+ LDFLAGS=-L. -L$(ZLIBLIB) -lpng -lz -lm
+
+ RANLIB=ranlib
+ #RANLIB=echo
+
+ 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
+
+ all: libpng.a pngtest
+
+ libpng.a: $(OBJS)
+ ar rc $@ $(OBJS)
+ $(RANLIB) $@
+
+ pngtest: pngtest.o libpng.a
+ $(CC) -o pngtest $(CFLAGS) pngtest.o $(LDFLAGS)
+
+ test: pngtest
+ ./pngtest
+
+ install: libpng.a
+ - at mkdir $(DESTDIR)$(INCPATH)
+ - at mkdir $(DESTDIR)$(INCPATH)/libpng
+ - at mkdir $(DESTDIR)$(LIBPATH)
+ - at rm -f $(DESTDIR)$(INCPATH)/png.h
+ - at rm -f $(DESTDIR)$(INCPATH)/pngconf.h
+ cp png.h $(DESTDIR)$(INCPATH)/libpng
+ cp pngconf.h $(DESTDIR)$(INCPATH)/libpng
+ chmod 644 $(DESTDIR)$(INCPATH)/libpng/png.h
+ chmod 644 $(DESTDIR)$(INCPATH)/libpng/pngconf.h
+ (cd $(DESTDIR)$(INCPATH); ln -f -s libpng/* .)
+ cp libpng.a $(DESTDIR)$(LIBPATH)
+ chmod 644 $(DESTDIR)$(LIBPATH)/libpng.a
+
+ clean:
+ rm -f *.o libpng.a pngtest pngout.png
+
+ DOCS = ANNOUNCE CHANGES INSTALL KNOWNBUG LICENSE README TODO Y2KINFO
+ writelock:
+ chmod a-w *.[ch35] $(DOCS) scripts/*
+
+ # DO NOT DELETE THIS LINE -- make depend depends on it.
+
+ png.o: png.h pngconf.h
+ pngerror.o: png.h pngconf.h
+ pngrio.o: png.h pngconf.h
+ pngwio.o: png.h pngconf.h
+ pngmem.o: png.h pngconf.h
+ pngset.o: png.h pngconf.h
+ pngget.o: png.h pngconf.h
+ pngread.o: png.h pngconf.h
+ pngrtran.o: png.h pngconf.h
+ pngrutil.o: png.h pngconf.h
+ pngtest.o: png.h pngconf.h
+ pngtrans.o: png.h pngconf.h
+ pngwrite.o: png.h pngconf.h
+ pngwtran.o: png.h pngconf.h
+ pngwutil.o: png.h pngconf.h
+ pngpread.o: png.h pngconf.h
+
Index: llvm/runtime/libpng/scripts/makefile.tc3
diff -c /dev/null llvm/runtime/libpng/scripts/makefile.tc3:1.1.2.1
*** /dev/null Mon Mar 1 17:58:58 2004
--- llvm/runtime/libpng/scripts/makefile.tc3 Mon Mar 1 17:58:47 2004
***************
*** 0 ****
--- 1,89 ----
+ # Makefile for libpng
+ # TurboC/C++ (Note: All modules are compiled in C mode)
+
+ # To use, do "make -fmakefile.tc3"
+
+ # ----- Turbo C 3.00 (can be modified to work with earlier versions) -----
+
+ MODEL=l
+ CFLAGS=-O2 -Z -m$(MODEL) -I..\zlib
+ #CFLAGS=-D_NO_PROTO -O2 -Z -m$(MODEL) -I..\zlib # Turbo C older than 3.00
+ CC=tcc
+ LD=tcc
+ LIB=tlib
+ LDFLAGS=-m$(MODEL) -L..\zlib
+ O=.obj
+ E=.exe
+
+ # variables
+ OBJS1 = png$(O) pngset$(O) pngget$(O) pngrutil$(O) pngtrans$(O) pngwutil$(O)
+ OBJS2 = pngmem$(O) pngpread$(O) pngread$(O) pngerror$(O) pngwrite$(O)
+ OBJS3 = pngrtran$(O) pngwtran$(O) pngrio$(O) pngwio$(O)
+ OBJSL1 = +png$(O) +pngset$(O) +pngget$(O) +pngrutil$(O) +pngtrans$(O)
+ OBJSL2 = +pngwutil$(O) +pngmem$(O) +pngpread$(O) +pngread$(O) +pngerror$(O)
+ OBJSL3 = +pngwrite$(O) +pngrtran$(O) +pngwtran$(O) +pngrio$(O) +pngwio$(O)
+
+ all: libpng$(MODEL).lib pngtest$(E)
+
+ pngtest: pngtest$(E)
+
+ test: pngtest$(E)
+ pngtest$(E)
+
+ png$(O): png.h pngconf.h
+ $(CC) -c $(CFLAGS) $*.c
+
+ pngset$(O): png.h pngconf.h
+ $(CC) -c $(CFLAGS) $*.c
+
+ pngget$(O): png.h pngconf.h
+ $(CC) -c $(CFLAGS) $*.c
+
+ pngread$(O): png.h pngconf.h
+ $(CC) -c $(CFLAGS) $*.c
+
+ pngpread$(O): png.h pngconf.h
+ $(CC) -c $(CFLAGS) $*.c
+
+ pngrtran$(O): png.h pngconf.h
+ $(CC) -c $(CFLAGS) $*.c
+
+ pngrutil$(O): png.h pngconf.h
+ $(CC) -c $(CFLAGS) $*.c
+
+ pngerror$(O): png.h pngconf.h
+ $(CC) -c $(CFLAGS) $*.c
+
+ pngmem$(O): png.h pngconf.h
+ $(CC) -c $(CFLAGS) $*.c
+
+ pngrio$(O): png.h pngconf.h
+ $(CC) -c $(CFLAGS) $*.c
+
+ pngwio$(O): png.h pngconf.h
+ $(CC) -c $(CFLAGS) $*.c
+
+ pngtest$(O): png.h pngconf.h
+ $(CC) -c $(CFLAGS) $*.c
+
+ pngtrans$(O): png.h pngconf.h
+ $(CC) -c $(CFLAGS) $*.c
+
+ pngwrite$(O): png.h pngconf.h
+ $(CC) -c $(CFLAGS) $*.c
+
+ pngwtran$(O): png.h pngconf.h
+ $(CC) -c $(CFLAGS) $*.c
+
+ pngwutil$(O): png.h pngconf.h
+ $(CC) -c $(CFLAGS) $*.c
+
+ libpng$(MODEL).lib: $(OBJS1) $(OBJS2) $(OBJS3)
+ $(LIB) libpng$(MODEL) +$(OBJSL1)
+ $(LIB) libpng$(MODEL) +$(OBJSL2)
+ $(LIB) libpng$(MODEL) +$(OBJSL3)
+
+ pngtest$(E): pngtest$(O) libpng$(MODEL).lib
+ $(LD) $(LDFLAGS) pngtest.obj libpng$(MODEL).lib zlib_$(MODEL).lib
+
+ # End of makefile for libpng
Index: llvm/runtime/libpng/scripts/makefile.vcawin32
diff -c /dev/null llvm/runtime/libpng/scripts/makefile.vcawin32:1.1.2.1
*** /dev/null Mon Mar 1 17:58:59 2004
--- llvm/runtime/libpng/scripts/makefile.vcawin32 Mon Mar 1 17:58:47 2004
***************
*** 0 ****
--- 1,94 ----
+ # makefile for libpng
+ # Copyright (C) 1998 Tim Wegner
+ # 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"
+
+ # -------- Microsoft Visual C++ 5.0 and later, uses assembler code --------
+
+ # Caution: the assembler code was introduced at libpng version 1.0.4 and has
+ # not yet been thoroughly tested.
+
+ # If you don't want to use assembler code, use makefile.vcwin32 instead.
+
+ CFLAGS=-DPNG_USE_PNGVCRD -Ox -GA3s -nologo -W3 -I..\zlib
+
+ CC=cl
+ LD=link
+ LDFLAGS=
+ O=.obj
+
+ #uncomment next to put error messages in a file
+ #ERRFILE= >> pngerrs
+
+ # variables
+ OBJS1 = png$(O) pngset$(O) pngget$(O) pngrutil$(O) pngtrans$(O) pngwutil$(O)
+ OBJS2 = pngmem$(O) pngpread$(O) pngread$(O) pngerror$(O) pngwrite$(O)
+ OBJS3 = pngrtran$(O) pngwtran$(O) pngrio$(O) pngwio$(O) pngvcrd$(O)
+
+ all: libpng.lib
+
+ png$(O): png.h pngconf.h
+ $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
+
+ pngset$(O): png.h pngconf.h
+ $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
+
+ pngget$(O): png.h pngconf.h
+ $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
+
+ pngread$(O): png.h pngconf.h
+ $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
+
+ pngpread$(O): png.h pngconf.h
+ $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
+
+ pngrtran$(O): png.h pngconf.h
+ $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
+
+ pngrutil$(O): png.h pngconf.h
+ $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
+
+ pngvcrd$(O): png.h pngconf.h
+ $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
+
+ pngerror$(O): png.h pngconf.h
+ $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
+
+ pngmem$(O): png.h pngconf.h
+ $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
+
+ pngrio$(O): png.h pngconf.h
+ $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
+
+ pngwio$(O): png.h pngconf.h
+ $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
+
+ pngtest$(O): png.h pngconf.h
+ $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
+
+ pngtrans$(O): png.h pngconf.h
+ $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
+
+ pngwrite$(O): png.h pngconf.h
+ $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
+
+ pngwtran$(O): png.h pngconf.h
+ $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
+
+ pngwutil$(O): png.h pngconf.h
+ $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
+
+ libpng.lib: $(OBJS1) $(OBJS2) $(OBJS3)
+ echo something to del > libpng.lib
+ del libpng.lib
+ lib /OUT:libpng.lib $(OBJS1) $(OBJS2) $(OBJS3)
+
+ pngtest.exe: pngtest.obj libpng.lib
+ $(LD) $(LDFLAGS) pngtest.obj libpng.lib ..\zlib\zlib.lib /OUT:pngtest.exe /SUBSYSTEM:CONSOLE
+
+ test: pngtest.exe
+ pngtest
+
+ # End of makefile for libpng
+
Index: llvm/runtime/libpng/scripts/makefile.vcwin32
diff -c /dev/null llvm/runtime/libpng/scripts/makefile.vcwin32:1.1.2.1
*** /dev/null Mon Mar 1 17:58:59 2004
--- llvm/runtime/libpng/scripts/makefile.vcwin32 Mon Mar 1 17:58:47 2004
***************
*** 0 ****
--- 1,87 ----
+ # makefile for libpng
+ # Copyright (C) 1998 Tim Wegner
+ # 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"
+
+ # -------- Microsoft Visual C++ 4.0 and later, no assembler code --------
+ # If you want to use assembler code, use makefile.vcawin32 instead.
+
+ CFLAGS= -Ox -GA3s -nologo -W3 -I..\zlib
+
+ CC=cl
+ LD=link
+ LDFLAGS=
+ O=.obj
+
+ #uncomment next to put error messages in a file
+ #ERRFILE= >> pngerrs
+
+ # variables
+ OBJS1 = png$(O) pngset$(O) pngget$(O) pngrutil$(O) pngtrans$(O) pngwutil$(O)
+ OBJS2 = pngmem$(O) pngpread$(O) pngread$(O) pngerror$(O) pngwrite$(O)
+ OBJS3 = pngrtran$(O) pngwtran$(O) pngrio$(O) pngwio$(O)
+
+ all: libpng.lib
+
+ png$(O): png.h pngconf.h
+ $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
+
+ pngset$(O): png.h pngconf.h
+ $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
+
+ pngget$(O): png.h pngconf.h
+ $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
+
+ pngread$(O): png.h pngconf.h
+ $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
+
+ pngpread$(O): png.h pngconf.h
+ $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
+
+ pngrtran$(O): png.h pngconf.h
+ $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
+
+ pngrutil$(O): png.h pngconf.h
+ $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
+
+ pngerror$(O): png.h pngconf.h
+ $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
+
+ pngmem$(O): png.h pngconf.h
+ $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
+
+ pngrio$(O): png.h pngconf.h
+ $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
+
+ pngwio$(O): png.h pngconf.h
+ $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
+
+ pngtest$(O): png.h pngconf.h
+ $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
+
+ pngtrans$(O): png.h pngconf.h
+ $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
+
+ pngwrite$(O): png.h pngconf.h
+ $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
+
+ pngwtran$(O): png.h pngconf.h
+ $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
+
+ pngwutil$(O): png.h pngconf.h
+ $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
+
+ libpng.lib: $(OBJS1) $(OBJS2) $(OBJS3)
+ echo something to del > libpng.lib
+ del libpng.lib
+ lib /OUT:libpng.lib $(OBJS1) $(OBJS2) $(OBJS3)
+
+ pngtest.exe: pngtest.obj libpng.lib
+ $(LD) $(LDFLAGS) pngtest.obj libpng.lib ..\zlib\zlib.lib /OUT:pngtest.exe /SUBSYSTEM:CONSOLE
+
+ test: pngtest.exe
+ pngtest
+
+ # End of makefile for libpng
+
Index: llvm/runtime/libpng/scripts/makefile.watcom
diff -c /dev/null llvm/runtime/libpng/scripts/makefile.watcom:1.1.2.1
*** /dev/null Mon Mar 1 17:58:59 2004
--- llvm/runtime/libpng/scripts/makefile.watcom Mon Mar 1 17:58:47 2004
***************
*** 0 ****
--- 1,109 ----
+ # Makefile for libpng
+ # Watcom C/C++ 10.0 and later, 32-bit protected mode, flat memory model
+
+ # 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
+
+ # To use, do "wmake /f scripts\makefile.watcom"
+
+
+ # ---------------------- Watcom C/C++ 10.0 and later -----------------------
+
+ # Where the zlib library and include files are located
+ ZLIBLIB=..\zlib
+ ZLIBINC=..\zlib
+
+ # Target OS
+ OS=DOS
+ #OS=NT
+
+ # Target CPU
+ CPU=6 # Pentium Pro
+ #CPU=5 # Pentium
+
+ # Calling convention
+ CALLING=r # registers
+ #CALLING=s # stack
+
+ # Uncomment next to put error messages in a file
+ #ERRFILE=>>pngerrs
+
+ # --------------------------------------------------------------------------
+
+
+ CC=wcc386
+ CFLAGS=-$(CPU)$(CALLING) -fp$(CPU) -fpi87 -oneatx -mf -bt=$(OS) -i=$(ZLIBINC) -zq
+ LD=wcl386
+ LDFLAGS=-zq
+
+ O=.obj
+
+ OBJS1=png$(O) pngset$(O) pngget$(O) pngrutil$(O) pngtrans$(O) pngwutil$(O)
+ OBJS2=pngmem$(O) pngpread$(O) pngread$(O) pngerror$(O) pngwrite$(O)
+ OBJS3=pngrtran$(O) pngwtran$(O) pngrio$(O) pngwio$(O)
+
+
+ all: test
+
+ png$(O): png.h pngconf.h
+ $(CC) $(CFLAGS) $*.c $(ERRFILE)
+
+ pngset$(O): png.h pngconf.h
+ $(CC) $(CFLAGS) $*.c $(ERRFILE)
+
+ pngget$(O): png.h pngconf.h
+ $(CC) $(CFLAGS) $*.c $(ERRFILE)
+
+ pngread$(O): png.h pngconf.h
+ $(CC) $(CFLAGS) $*.c $(ERRFILE)
+
+ pngpread$(O): png.h pngconf.h
+ $(CC) $(CFLAGS) $*.c $(ERRFILE)
+
+ pngrtran$(O): png.h pngconf.h
+ $(CC) $(CFLAGS) $*.c $(ERRFILE)
+
+ pngrutil$(O): png.h pngconf.h
+ $(CC) $(CFLAGS) $*.c $(ERRFILE)
+
+ pngerror$(O): png.h pngconf.h
+ $(CC) $(CFLAGS) $*.c $(ERRFILE)
+
+ pngmem$(O): png.h pngconf.h
+ $(CC) $(CFLAGS) $*.c $(ERRFILE)
+
+ pngrio$(O): png.h pngconf.h
+ $(CC) $(CFLAGS) $*.c $(ERRFILE)
+
+ pngwio$(O): png.h pngconf.h
+ $(CC) $(CFLAGS) $*.c $(ERRFILE)
+
+ pngtest$(O): png.h pngconf.h
+ $(CC) $(CFLAGS) $*.c $(ERRFILE)
+
+ pngtrans$(O): png.h pngconf.h
+ $(CC) $(CFLAGS) $*.c $(ERRFILE)
+
+ pngwrite$(O): png.h pngconf.h
+ $(CC) $(CFLAGS) $*.c $(ERRFILE)
+
+ pngwtran$(O): png.h pngconf.h
+ $(CC) $(CFLAGS) $*.c $(ERRFILE)
+
+ pngwutil$(O): png.h pngconf.h
+ $(CC) $(CFLAGS) $*.c $(ERRFILE)
+
+ libpng.lib: $(OBJS1) $(OBJS2) $(OBJS3)
+ wlib -b -c -n -q libpng.lib $(OBJS1)
+ wlib -b -c -q libpng.lib $(OBJS2)
+ wlib -b -c -q libpng.lib $(OBJS3)
+
+ pngtest.exe: pngtest.obj libpng.lib
+ $(LD) $(LDFLAGS) pngtest.obj libpng.lib $(ZLIBLIB)\zlib.lib
+
+ test: pngtest.exe .symbolic
+ pngtest.exe
+
+
+ # End of makefile for libpng
Index: llvm/runtime/libpng/scripts/makevms.com
diff -c /dev/null llvm/runtime/libpng/scripts/makevms.com:1.1.2.1
*** /dev/null Mon Mar 1 17:58:59 2004
--- llvm/runtime/libpng/scripts/makevms.com Mon Mar 1 17:58:47 2004
***************
*** 0 ****
--- 1,144 ----
+ $! make libpng under VMS
+ $!
+ $!
+ $! Check for MMK/MMS
+ $!
+ $! This procedure accepts one parameter (contrib), which causes it to build
+ $! the programs from the contrib directory instead of libpng.
+ $!
+ $ p1 = f$edit(p1,"UPCASE")
+ $ if p1 .eqs. "CONTRIB"
+ $ then
+ $ set def [.contrib.gregbook]
+ $ @makevms
+ $ set def [-.pngminus]
+ $ @makevms
+ $ set def [--]
+ $ exit
+ $ endif
+ $ Make = ""
+ $ If F$Search ("Sys$System:MMS.EXE") .nes. "" Then Make = "MMS"
+ $ If F$Type (MMK) .eqs. "STRING" Then Make = "MMK"
+ $!
+ $! Look for the compiler used
+ $!
+ $ zlibsrc = "[-.zlib]"
+ $ ccopt="/include=''zlibsrc'"
+ $ if f$getsyi("HW_MODEL").ge.1024
+ $ then
+ $ ccopt = "/prefix=all"+ccopt
+ $ comp = "__decc__=1"
+ $ if f$trnlnm("SYS").eqs."" then define sys sys$library:
+ $ else
+ $ if f$search("SYS$SYSTEM:DECC$COMPILER.EXE").eqs.""
+ $ then
+ $ if f$trnlnm("SYS").eqs."" then define sys sys$library:
+ $ if f$search("SYS$SYSTEM:VAXC.EXE").eqs.""
+ $ then
+ $ comp = "__gcc__=1"
+ $ CC :== GCC
+ $ else
+ $ comp = "__vaxc__=1"
+ $ endif
+ $ else
+ $ if f$trnlnm("SYS").eqs."" then define sys decc$library_include:
+ $ ccopt = "/decc/prefix=all"+ccopt
+ $ comp = "__decc__=1"
+ $ endif
+ $ endif
+ $!
+ $! Build the thing plain or with mms/mmk
+ $!
+ $ write sys$output "Compiling Libpng sources ..."
+ $ if make.eqs.""
+ $ then
+ $ dele pngtest.obj;*
+ $ CALL MAKE png.OBJ "cc ''CCOPT' png" -
+ png.c png.h pngconf.h
+ $ CALL MAKE pngpread.OBJ "cc ''CCOPT' pngpread" -
+ pngpread.c png.h pngconf.h
+ $ CALL MAKE pngset.OBJ "cc ''CCOPT' pngset" -
+ pngset.c png.h pngconf.h
+ $ CALL MAKE pngget.OBJ "cc ''CCOPT' pngget" -
+ pngget.c png.h pngconf.h
+ $ CALL MAKE pngread.OBJ "cc ''CCOPT' pngread" -
+ pngread.c png.h pngconf.h
+ $ CALL MAKE pngpread.OBJ "cc ''CCOPT' pngpread" -
+ pngpread.c png.h pngconf.h
+ $ CALL MAKE pngrtran.OBJ "cc ''CCOPT' pngrtran" -
+ pngrtran.c png.h pngconf.h
+ $ CALL MAKE pngrutil.OBJ "cc ''CCOPT' pngrutil" -
+ pngrutil.c png.h pngconf.h
+ $ CALL MAKE pngerror.OBJ "cc ''CCOPT' pngerror" -
+ pngerror.c png.h pngconf.h
+ $ CALL MAKE pngmem.OBJ "cc ''CCOPT' pngmem" -
+ pngmem.c png.h pngconf.h
+ $ CALL MAKE pngrio.OBJ "cc ''CCOPT' pngrio" -
+ pngrio.c png.h pngconf.h
+ $ CALL MAKE pngwio.OBJ "cc ''CCOPT' pngwio" -
+ pngwio.c png.h pngconf.h
+ $ CALL MAKE pngtrans.OBJ "cc ''CCOPT' pngtrans" -
+ pngtrans.c png.h pngconf.h
+ $ CALL MAKE pngwrite.OBJ "cc ''CCOPT' pngwrite" -
+ pngwrite.c png.h pngconf.h
+ $ CALL MAKE pngwtran.OBJ "cc ''CCOPT' pngwtran" -
+ pngwtran.c png.h pngconf.h
+ $ CALL MAKE pngwutil.OBJ "cc ''CCOPT' pngwutil" -
+ pngwutil.c png.h pngconf.h
+ $ write sys$output "Building Libpng ..."
+ $ CALL MAKE libpng.OLB "lib/crea libpng.olb *.obj" *.OBJ
+ $ write sys$output "Building pngtest..."
+ $ CALL MAKE pngtest.OBJ "cc ''CCOPT' pngtest" -
+ pngtest.c png.h pngconf.h
+ $ call make pngtest.exe -
+ "LINK pngtest,libpng.olb/lib,''zlibsrc'libz.olb/lib" -
+ pngtest.obj libpng.olb
+ $ write sys$output "Testing Libpng..."
+ $ run pngtest
+ $ else
+ $ if f$search("DESCRIP.MMS") .eqs. "" then copy/nolog [.SCRIPTS]DESCRIP.MMS []
+ $ 'make'/macro=('comp',zlibsrc='zlibsrc')
+ $ endif
+ $ write sys$output "Libpng build completed"
+ $ exit
+ $!
+ $!
+ $MAKE: SUBROUTINE !SUBROUTINE TO CHECK DEPENDENCIES
+ $ V = 'F$Verify(0)
+ $! P1 = What we are trying to make
+ $! P2 = Command to make it
+ $! P3 - P8 What it depends on
+ $
+ $ If F$Search(P1) .Eqs. "" Then Goto Makeit
+ $ Time = F$CvTime(F$File(P1,"RDT"))
+ $arg=3
+ $Loop:
+ $ Argument = P'arg
+ $ If Argument .Eqs. "" Then Goto Exit
+ $ El=0
+ $Loop2:
+ $ File = F$Element(El," ",Argument)
+ $ If File .Eqs. " " Then Goto Endl
+ $ AFile = ""
+ $Loop3:
+ $ OFile = AFile
+ $ AFile = F$Search(File)
+ $ If AFile .Eqs. "" .Or. AFile .Eqs. OFile Then Goto NextEl
+ $ If F$CvTime(F$File(AFile,"RDT")) .Ges. Time Then Goto Makeit
+ $ Goto Loop3
+ $NextEL:
+ $ El = El + 1
+ $ Goto Loop2
+ $EndL:
+ $ arg=arg+1
+ $ If arg .Le. 8 Then Goto Loop
+ $ Goto Exit
+ $
+ $Makeit:
+ $ VV=F$VERIFY(0)
+ $ write sys$output P2
+ $ 'P2
+ $ VV='F$Verify(VV)
+ $Exit:
+ $ If V Then Set Verify
+ $ENDSUBROUTINE
Index: llvm/runtime/libpng/scripts/pngdef.pas
diff -c /dev/null llvm/runtime/libpng/scripts/pngdef.pas:1.1.2.1
*** /dev/null Mon Mar 1 17:58:59 2004
--- llvm/runtime/libpng/scripts/pngdef.pas Mon Mar 1 17:58:47 2004
***************
*** 0 ****
--- 1,795 ----
+ unit pngdef;
+
+ // Caution: this file has fallen out of date since version 1.0.5. Write to
+ // png-implement at ccrc.wustl.edu or to randeg at alum.rpi.edu about volunteering
+ // to it up to date.
+
+ interface
+
+ const
+ PNG_LIBPNG_VER_STRING = '1.2.5';
+ PNG_LIBPNG_VER = 10205;
+
+ type
+ png_uint_32 = Cardinal;
+ png_int_32 = Longint;
+ png_uint_16 = Word;
+ png_int_16 = Smallint;
+ png_byte = Byte;
+ png_size_t = png_uint_32;
+ png_charpp = ^png_charp;
+ png_charp = PChar;
+ float = single;
+ int = Integer;
+ png_bytepp = ^png_bytep;
+ png_bytep = ^png_byte;
+ png_uint_16p = ^png_uint_16;
+ png_uint_16pp = ^png_uint_16p;
+ png_voidp = pointer;
+ time_t = Longint;
+ png_doublep = ^png_double;
+ png_double = double;
+
+ user_error_ptr = Pointer;
+ png_error_ptrp = ^png_error_ptr;
+ png_error_ptr = procedure(png_ptr: Pointer; msg: Pointer);
+ stdcall;
+ png_rw_ptrp = ^png_rw_ptr;
+ png_rw_ptr = procedure(png_ptr: Pointer; data: Pointer;
+ length: png_size_t);
+ stdcall;
+ png_flush_ptrp = ^png_flush_ptr;
+ png_flush_ptr = procedure(png_ptr: Pointer);
+ stdcall;
+ png_progressive_info_ptrp = ^png_progressive_info_ptr;
+ png_progressive_info_ptr = procedure(png_ptr: Pointer;
+ info_ptr: Pointer);
+ stdcall;
+ png_progressive_end_ptrp = ^png_progressive_end_ptr;
+ png_progressive_end_ptr = procedure(png_ptr: Pointer;
+ info_ptr: Pointer);
+ stdcall;
+ png_progressive_row_ptrp = ^png_progressive_row_ptr;
+ png_progressive_row_ptr = procedure(png_ptr: Pointer;
+ data: Pointer; length: png_uint_32;
+ count: int);
+ stdcall;
+ png_read_status_ptr = procedure(png_ptr: Pointer;
+ row_number: png_uint_32; pass: int);
+ stdcall;
+ png_write_status_ptr = procedure(png_ptr: Pointer;
+ row_number: png_uint_32; pass: int);
+ stdcall;
+ png_user_chunk_ptr = procedure(png_ptr: Pointer;
+ data: png_unknown_chunkp);
+ stdcall;
+ png_user_transform_ptr = procedure(png_ptr: Pointer;
+ row_info: Pointer; data: png_bytep);
+ stdcall;
+
+ png_colorpp = ^png_colorp;
+ png_colorp = ^png_color;
+ png_color = packed record
+ red, green, blue: png_byte;
+ end;
+
+ png_color_16pp = ^png_color_16p;
+ png_color_16p = ^png_color_16;
+ png_color_16 = packed record
+ index: png_byte; //used for palette files
+ red, green, blue: png_uint_16; //for use in red green blue files
+ gray: png_uint_16; //for use in grayscale files
+ end;
+
+ png_color_8pp = ^png_color_8p;
+ png_color_8p = ^png_color_8;
+ png_color_8 = packed record
+ red, green, blue: png_byte; //for use in red green blue files
+ gray: png_byte; //for use in grayscale files
+ alpha: png_byte; //for alpha channel files
+ end;
+
+ png_textpp = ^png_textp;
+ png_textp = ^png_text;
+ png_text = packed record
+ compression: int; //compression value
+ key: png_charp; //keyword, 1-79 character description of "text"
+ text: png_charp; //comment, may be empty ("")
+ text_length: png_size_t; //length of text field
+ end;
+
+ png_timepp = ^png_timep;
+ png_timep = ^png_time;
+ png_time = packed record
+ year: png_uint_16; //yyyy
+ month: png_byte; //1..12
+ day: png_byte; //1..31
+ hour: png_byte; //0..23
+ minute: png_byte; //0..59
+ second: png_byte; //0..60 (leap seconds)
+ end;
+
+ png_infopp = ^png_infop;
+ png_infop = Pointer;
+
+ png_row_infopp = ^png_row_infop;
+ png_row_infop = ^png_row_info;
+ png_row_info = packed record
+ width: png_uint_32; //width of row
+ rowbytes: png_size_t; //number of bytes in row
+ color_type: png_byte; //color type of row
+ bit_depth: png_byte; //bit depth of row
+ channels: png_byte; //number of channels (1, 2, 3, or 4)
+ pixel_depth: png_byte; //bits per pixel (depth * channels)
+ end;
+
+ png_structpp = ^png_structp;
+ png_structp = Pointer;
+
+ const
+
+ // Supported compression types for text in PNG files (tEXt, and zTXt).
+ // The values of the PNG_TEXT_COMPRESSION_ defines should NOT be changed.
+
+ PNG_TEXT_COMPRESSION_NONE_WR = -3;
+ PNG_TEXT_COMPRESSION_zTXt_WR = -2;
+ PNG_TEXT_COMPRESSION_NONE = -1;
+ PNG_TEXT_COMPRESSION_zTXt = 0;
+
+ // These describe the color_type field in png_info.
+ // color type masks
+
+ PNG_COLOR_MASK_PALETTE = 1;
+ PNG_COLOR_MASK_COLOR = 2;
+ PNG_COLOR_MASK_ALPHA = 4;
+
+ // color types. Note that not all combinations are legal
+
+ PNG_COLOR_TYPE_GRAY = 0;
+ PNG_COLOR_TYPE_PALETTE = PNG_COLOR_MASK_COLOR or
+ PNG_COLOR_MASK_PALETTE;
+ PNG_COLOR_TYPE_RGB = PNG_COLOR_MASK_COLOR;
+ PNG_COLOR_TYPE_RGB_ALPHA = PNG_COLOR_MASK_COLOR or
+ PNG_COLOR_MASK_ALPHA;
+ PNG_COLOR_TYPE_GRAY_ALPHA = PNG_COLOR_MASK_ALPHA;
+
+ // This is for compression type. PNG 1.0 only defines the single type.
+
+ PNG_COMPRESSION_TYPE_BASE = 0; // Deflate method 8, 32K window
+ PNG_COMPRESSION_TYPE_DEFAULT = PNG_COMPRESSION_TYPE_BASE;
+
+ // This is for filter type. PNG 1.0 only defines the single type.
+
+ PNG_FILTER_TYPE_BASE = 0; // Single row per-byte filtering
+ PNG_FILTER_TYPE_DEFAULT = PNG_FILTER_TYPE_BASE;
+
+ // These are for the interlacing type. These values should NOT be changed.
+
+ PNG_INTERLACE_NONE = 0; // Non-interlaced image
+ PNG_INTERLACE_ADAM7 = 1; // Adam7 interlacing
+
+ // These are for the oFFs chunk. These values should NOT be changed.
+
+ PNG_OFFSET_PIXEL = 0; // Offset in pixels
+ PNG_OFFSET_MICROMETER = 1; // Offset in micrometers (1/10^6 meter)
+
+ // These are for the pCAL chunk. These values should NOT be changed.
+
+ PNG_EQUATION_LINEAR = 0; // Linear transformation
+ PNG_EQUATION_BASE_E = 1; // Exponential base e transform
+ PNG_EQUATION_ARBITRARY = 2; // Arbitrary base exponential transform
+ PNG_EQUATION_HYPERBOLIC = 3; // Hyperbolic sine transformation
+
+ // These are for the pHYs chunk. These values should NOT be changed.
+
+ PNG_RESOLUTION_UNKNOWN = 0; // pixels/unknown unit (aspect ratio)
+ PNG_RESOLUTION_METER = 1; // pixels/meter
+
+ // These are for the sRGB chunk. These values should NOT be changed.
+ PNG_sRGB_INTENT_PERCEPTUAL = 0;
+ PNG_sRGB_INTENT_RELATIVE = 1;
+ PNG_sRGB_INTENT_SATURATION = 2;
+ PNG_sRGB_INTENT_ABSOLUTE = 3;
+
+ // Handle alpha and tRNS by replacing with a background color.
+ PNG_BACKGROUND_GAMMA_UNKNOWN = 0;
+ PNG_BACKGROUND_GAMMA_SCREEN = 1;
+ PNG_BACKGROUND_GAMMA_FILE = 2;
+ PNG_BACKGROUND_GAMMA_UNIQUE = 3;
+
+ // Values for png_set_crc_action() to say how to handle CRC errors in
+ // ancillary and critical chunks, and whether to use the data contained
+ // therein. Note that it is impossible to "discard" data in a critical
+ // chunk. For versions prior to 0.90, the action was always error/quit,
+ // whereas in version 0.90 and later, the action for CRC errors in ancillary
+ // chunks is warn/discard. These values should NOT be changed.
+
+ // value action:critical action:ancillary
+
+ PNG_CRC_DEFAULT = 0; // error/quit warn/discard data
+ PNG_CRC_ERROR_QUIT = 1; // error/quit error/quit
+ PNG_CRC_WARN_DISCARD = 2; // (INVALID) warn/discard data
+ PNG_CRC_WARN_USE = 3; // warn/use data warn/use data
+ PNG_CRC_QUIET_USE = 4; // quiet/use data quiet/use data
+ PNG_CRC_NO_CHANGE = 5; // use current value use current value
+
+ // Flags for png_set_filter() to say which filters to use. The flags
+ // are chosen so that they don't conflict with real filter types
+ // below, in case they are supplied instead of the #defined constants.
+ // These values should NOT be changed.
+
+ PNG_NO_FILTERS = $00;
+ PNG_FILTER_NONE = $08;
+ PNG_FILTER_SUB = $10;
+ PNG_FILTER_UP = $20;
+ PNG_FILTER_AVG = $40;
+ PNG_FILTER_PAETH = $80;
+ PNG_ALL_FILTERS = PNG_FILTER_NONE or PNG_FILTER_SUB or
+ PNG_FILTER_UP or PNG_FILTER_AVG or
+ PNG_FILTER_PAETH;
+
+ // Filter values (not flags) - used in pngwrite.c, pngwutil.c for now.
+ // These defines should NOT be changed.
+
+ PNG_FILTER_VALUE_NONE = 0;
+ PNG_FILTER_VALUE_SUB = 1;
+ PNG_FILTER_VALUE_UP = 2;
+ PNG_FILTER_VALUE_AVG = 3;
+ PNG_FILTER_VALUE_PAETH = 4;
+
+ // Heuristic used for row filter selection. These defines should NOT be
+ // changed.
+
+ PNG_FILTER_HEURISTIC_DEFAULT = 0; // Currently "UNWEIGHTED"
+ PNG_FILTER_HEURISTIC_UNWEIGHTED = 1; // Used by libpng < 0.95
+ PNG_FILTER_HEURISTIC_WEIGHTED = 2; // Experimental feature
+ PNG_FILTER_HEURISTIC_LAST = 3; // Not a valid value
+
+ procedure png_build_grayscale_palette(bit_depth: int; palette: png_colorp);
+ stdcall;
+ function png_check_sig(sig: png_bytep; num: int): int;
+ stdcall;
+ procedure png_chunk_error(png_ptr: png_structp;
+ const mess: png_charp);
+ stdcall;
+ procedure png_chunk_warning(png_ptr: png_structp;
+ const mess: png_charp);
+ stdcall;
+ procedure png_convert_from_time_t(ptime: png_timep; ttime: time_t);
+ stdcall;
+ function png_convert_to_rfc1123(png_ptr: png_structp; ptime: png_timep):
+ png_charp;
+ stdcall;
+ function png_create_info_struct(png_ptr: png_structp): png_infop;
+ stdcall;
+ function png_create_read_struct(user_png_ver: png_charp;
+ error_ptr: user_error_ptr; error_fn: png_error_ptr;
+ warn_fn: png_error_ptr): png_structp;
+ stdcall;
+ function png_get_copyright(png_ptr: png_structp): png_charp;
+ stdcall;
+ function png_get_header_ver(png_ptr: png_structp): png_charp;
+ stdcall;
+ function png_get_header_version(png_ptr: png_structp): png_charp;
+ stdcall;
+ function png_get_libpng_ver(png_ptr: png_structp): png_charp;
+ stdcall;
+ function png_create_write_struct(user_png_ver: png_charp;
+ error_ptr: user_error_ptr; error_fn: png_error_ptr;
+ warn_fn: png_error_ptr): png_structp;
+ stdcall;
+ procedure png_destroy_info_struct(png_ptr: png_structp;
+ info_ptr_ptr: png_infopp);
+ stdcall;
+ procedure png_destroy_read_struct(png_ptr_ptr: png_structpp;
+ info_ptr_ptr, end_info_ptr_ptr: png_infopp);
+ stdcall;
+ procedure png_destroy_write_struct(png_ptr_ptr: png_structpp;
+ info_ptr_ptr: png_infopp);
+ stdcall;
+ function png_get_IHDR(png_ptr: png_structp; info_ptr: png_infop;
+ var width, height: png_uint_32; var bit_depth,
+ color_type, interlace_type, compression_type,
+ filter_type: int): png_uint_32;
+ stdcall;
+ function png_get_PLTE(png_ptr: png_structp; info_ptr: png_infop;
+ var palette: png_colorp; var num_palette: int):
+ png_uint_32;
+ stdcall;
+ function png_get_bKGD(png_ptr: png_structp; info_ptr: png_infop;
+ var background: png_color_16p): png_uint_32;
+ stdcall;
+ function png_get_bit_depth(png_ptr: png_structp; info_ptr: png_infop):
+ png_byte;
+ stdcall;
+ function png_get_cHRM(png_ptr: png_structp; info_ptr: png_infop;
+ var white_x, white_y, red_x, red_y, green_x, green_y,
+ blue_x, blue_y: double): png_uint_32;
+ stdcall;
+ function png_get_channels(png_ptr: png_structp; info_ptr: png_infop):
+ png_byte;
+ stdcall;
+ function png_get_color_type(png_ptr: png_structp; info_ptr: png_infop):
+ png_byte;
+ stdcall;
+ function png_get_compression_type(png_ptr: png_structp;
+ info_ptr: png_infop): png_byte;
+ stdcall;
+ function png_get_error_ptr(png_ptr: png_structp): png_voidp;
+ stdcall;
+ function png_get_filter_type(png_ptr: png_structp; info_ptr: png_infop):
+ png_byte;
+ stdcall;
+ function png_get_gAMA(png_ptr: png_structp; info_ptr: png_infop;
+ var file_gamma: double): png_uint_32;
+ stdcall;
+ function png_get_hIST(png_ptr: png_structp; info_ptr: png_infop;
+ var hist: png_uint_16p): png_uint_32;
+ stdcall;
+ function png_get_image_height(png_ptr: png_structp; info_ptr: png_infop):
+ png_uint_32;
+ stdcall;
+ function png_get_image_width(png_ptr: png_structp; info_ptr: png_infop):
+ png_uint_32;
+ stdcall;
+ function png_get_interlace_type(png_ptr: png_structp;
+ info_ptr: png_infop): png_byte;
+ stdcall;
+ function png_get_io_ptr(png_ptr: png_structp): png_voidp;
+ stdcall;
+ function png_get_oFFs(png_ptr: png_structp; info_ptr: png_infop;
+ var offset_x, offset_y: png_uint_32;
+ var unit_type: int): png_uint_32;
+ stdcall;
+ function png_get_sCAL(png_ptr: png_structp; info_ptr: png_infop;
+ var unit:int; var width: png_uint_32; height: png_uint_32):
+ png_uint_32;
+ stdcall
+ function png_get_pCAL(png_ptr: png_structp; info_ptr: png_infop;
+ var purpose: png_charp; var X0, X1: png_int_32;
+ var typ, nparams: int; var units: png_charp;
+ var params: png_charpp): png_uint_32;
+ stdcall;
+ function png_get_pHYs(png_ptr: png_structp; info_ptr: png_infop;
+ var res_x, res_y: png_uint_32; var unit_type: int):
+ png_uint_32;
+ stdcall;
+ function png_get_pixel_aspect_ratio(png_ptr: png_structp;
+ info_ptr: png_infop): float;
+ stdcall;
+ function png_get_pixels_per_meter(png_ptr: png_structp;
+ info_ptr: png_infop): png_uint_32;
+ stdcall;
+ function png_get_progressive_ptr(png_ptr: png_structp): png_voidp;
+ stdcall;
+ function png_get_rgb_to_gray_status(png_ptr: png_structp);
+ stdcall;
+ function png_get_rowbytes(png_ptr: png_structp; info_ptr: png_infop):
+ png_uint_32;
+ stdcall;
+ function png_get_rows(png_ptr: png_structp; info_ptr: png_infop):
+ png_bytepp;
+ stdcall;
+ function png_get_sBIT(png_ptr: png_structp; info_ptr: png_infop;
+ var sig_bits: png_color_8p): png_uint_32;
+ stdcall;
+ function png_get_sRGB(png_ptr: png_structp; info_ptr: png_infop;
+ var file_srgb_intent: int): png_uint_32;
+ stdcall;
+ function png_get_signature(png_ptr: png_structp; info_ptr: png_infop):
+ png_bytep;
+ stdcall;
+ function png_get_tIME(png_ptr: png_structp; info_ptr: png_infop;
+ var mod_time: png_timep): png_uint_32;
+ stdcall;
+ function png_get_tRNS(png_ptr: png_structp; info_ptr: png_infop;
+ var trans: png_bytep; var num_trans: int;
+ var trans_values: png_color_16p): png_uint_32;
+ stdcall;
+ function png_get_text(png_ptr: png_structp; info_ptr: png_infop;
+ var text_ptr: png_textp; var num_text: int):
+ png_uint_32;
+ stdcall;
+ function png_get_user_chunk_ptr(png_ptr: png_structp):
+ png_voidp;
+ stdcall;
+ function png_get_valid(png_ptr: png_structp; info_ptr: png_infop;
+ flag: png_uint_32): png_uint_32;
+ stdcall;
+ function png_get_x_offset_microns(png_ptr: png_structp;
+ info_ptr: png_infop): png_uint_32;
+ stdcall;
+ function png_get_x_offset_pixels(png_ptr: png_structp;
+ info_ptr: png_infop): png_uint_32;
+ stdcall;
+ function png_get_x_pixels_per_meter(png_ptr: png_structp;
+ info_ptr: png_infop): png_uint_32;
+ stdcall;
+ function png_get_y_offset_microns(png_ptr: png_structp;
+ info_ptr: png_infop): png_uint_32;
+ stdcall;
+ function png_get_y_offset_pixels(png_ptr: png_structp;
+ info_ptr: png_infop): png_uint_32;
+ stdcall;
+ function png_get_y_pixels_per_meter(png_ptr: png_structp;
+ info_ptr: png_infop): png_uint_32;
+ stdcall;
+ procedure png_process_data(png_ptr: png_structp; info_ptr: png_infop;
+ buffer: png_bytep; buffer_size: png_size_t);
+ stdcall;
+ procedure png_progressive_combine_row(png_ptr: png_structp;
+ old_row, new_row: png_bytep);
+ stdcall;
+ procedure png_read_end(png_ptr: png_structp; info_ptr: png_infop);
+ stdcall;
+ procedure png_read_image(png_ptr: png_structp; image: png_bytepp);
+ stdcall;
+ procedure png_read_info(png_ptr: png_structp; info_ptr: png_infop);
+ stdcall;
+ procedure png_read_row(png_ptr: png_structp; row, dsp_row: png_bytep);
+ stdcall;
+ procedure png_read_rows(png_ptr: png_structp; row, display_row:
+ png_bytepp; num_rows: png_uint_32);
+ stdcall;
+ procedure png_read_update_info(png_ptr: png_structp; info_ptr: png_infop);
+ stdcall;
+ procedure png_set_IHDR(png_ptr: png_structp; info_ptr: png_infop;
+ width, height: png_uint_32; bit_depth, color_type,
+ interlace_type, compression_type, filter_type: int);
+ stdcall;
+ procedure png_set_PLTE(png_ptr: png_structp; info_ptr: png_infop;
+ palette: png_colorp; num_palette: int);
+ stdcall;
+ procedure png_set_bKGD(png_ptr: png_structp; info_ptr: png_infop;
+ background: png_color_16p);
+ stdcall;
+ procedure png_set_background(png_ptr: png_structp;
+ background_color: png_color_16p;
+ background_gamma_code, need_expand: int;
+ background_gamma: double);
+ stdcall;
+ procedure png_set_bgr(png_ptr: png_structp);
+ stdcall;
+ procedure png_set_cHRM(png_ptr: png_structp; info_ptr: png_infop;
+ white_x, white_y, red_x, red_y, green_x, green_y,
+ blue_x, blue_y: double);
+ stdcall;
+ procedure png_set_cHRM_fixed(png_ptr: png_structp; info_ptr: png_infop;
+ white_x, white_y, red_x, red_y, green_x, green_y,
+ blue_x, blue_y: png_fixed_point);
+ stdcall;
+ procedure png_set_compression_level(png_ptr: png_structp; level: int);
+ stdcall;
+ procedure png_set_compression_mem_level(png_ptr: png_structp;
+ mem_level: int);
+ stdcall;
+ procedure png_set_compression_method(png_ptr: png_structp; method: int);
+ stdcall;
+ procedure png_set_compression_strategy(png_ptr: png_structp;
+ strategy: int);
+ stdcall;
+ procedure png_set_compression_window_bits(png_ptr: png_structp;
+ window_bits: int);
+ stdcall;
+ procedure png_set_crc_action(png_ptr: png_structp;
+ crit_action, ancil_action: int);
+ stdcall;
+ procedure png_set_dither(png_ptr: png_structp; plaette: png_colorp;
+ num_palette, maximum_colors: int;
+ histogram: png_uint_16p; full_dither: int);
+ stdcall;
+ procedure png_set_error_fn(png_ptr: png_structp; error_ptr: png_voidp;
+ error_fn, warning_fn: png_error_ptr);
+ stdcall;
+ procedure png_set_expand(png_ptr: png_structp);
+ stdcall;
+ procedure png_set_filler(png_ptr: png_structp; filler: png_uint_32;
+ filler_loc: int);
+ stdcall;
+ procedure png_set_filter(png_ptr: png_structp; method, filters: int);
+ stdcall;
+ procedure png_set_filter_heuristics(png_ptr: png_structp;
+ heuristic_method, num_weights: int;
+ filter_weights, filter_costs: png_doublep);
+ stdcall;
+ procedure png_set_flush(png_ptr: png_structp; nrows: int);
+ stdcall;
+ procedure png_set_gAMA(png_ptr: png_structp; info_ptr: png_infop;
+ file_gamma: double);
+ stdcall;
+ procedure png_set_gAMA_fixed(png_ptr: png_structp; info_ptr: png_infop;
+ file_gamma: png_fixed_point);
+ stdcall;
+ procedure png_set_gamma(png_ptr: png_structp; screen_gamma,
+ default_file_gamma: double);
+ stdcall;
+ procedure png_set_gray_1_2_4_to_8(png_ptr: png_structp);
+ stdcall;
+ procedure png_set_gray_to_rgb(png_ptr: png_structp);
+ stdcall;
+ procedure png_set_hIST(png_ptr: png_structp; info_ptr: png_infop;
+ hist: png_uint_16p);
+ stdcall;
+ function png_set_interlace_handling(png_ptr: png_structp): int;
+ stdcall;
+ procedure png_set_invalid(png_ptr: png_structp; info_ptr:png_infop;
+ mask: int);
+ stdcall;
+ procedure png_set_invert_alpha(png_ptr: png_structp);
+ stdcall;
+ procedure png_set_invert_mono(png_ptr: png_structp);
+ stdcall;
+ procedure png_set_oFFs(png_ptr: png_structp; info_ptr: png_infop;
+ offset_x, offset_y: png_uint_32; unit_type: int);
+ stdcall;
+ procedure png_set_palette_to_rgb(png_ptr: png_structp);
+ stdcall;
+ procedure png_set_pCAL(png_ptr: png_structp; info_ptr: png_infop;
+ purpose: png_charp; X0, X1: png_int_32;
+ typ, nparams: int; units: png_charp;
+ params: png_charpp);
+ stdcall;
+ procedure png_set_pHYs(png_ptr: png_structp; info_ptr: png_infop;
+ res_x, res_y: png_uint_32; unit_type: int);
+ stdcall;
+ procedure png_set_packing(png_ptr: png_structp);
+ stdcall;
+ procedure png_set_packswap(png_ptr: png_structp);
+ stdcall;
+ procedure png_set_progressive_read_fn(png_ptr: png_structp;
+ progressive_ptr: png_voidp;
+ info_fn: png_progressive_info_ptr;
+ row_fn: png_progressive_row_ptr;
+ end_fn: png_progressive_end_ptr);
+ stdcall;
+ procedure png_set_read_fn(png_ptr: png_structp;
+ io_ptr: png_voidp; read_data_fn: png_rw_ptr);
+ stdcall;
+ procedure png_set_read_status_fn(png_ptr: png_structp;
+ read_row_fn: png_read_status_ptr);
+ stdcall;
+ procedure png_set_read_user_chunk_fn(png_ptr: png_structp;
+ read_user_chunk_fn: png_user_chunk_ptr);
+ stdcall;
+ procedure png_set_read_user_transform_fn(png_ptr: png_structp;
+ read_user_transform_fn: png_user_transform_ptr);
+ stdcall;
+ procedure png_set_rgb_to_gray(png_ptr: png_structp; int: error_action;
+ red_weight, green_weight: double);
+ stdcall;
+ procedure png_set_rgb_to_gray_fixed(png_ptr: png_structp; int: error_action;
+ red_weight, green_weight: png_fixed_point);
+ stdcall;
+ procedure png_set_rows(png_ptr: png_structp; info_ptr: png_infop;
+ row_pointers: png_bytepp);
+ stdcall;
+ procedure png_set_sBIT(png_ptr: png_structp; info_ptr: png_infop;
+ sig_bits: png_color_8p);
+ stdcall;
+ procedure png_set_sRGB(png_ptr: png_structp; info_ptr: png_infop;
+ intent: int);
+ stdcall;
+ procedure png_set_sRGB_gAMA_and_cHRM(png_ptr: png_structp;
+ info_ptr: png_infop; intent: int);
+ stdcall;
+ procedure png_set_shift(png_ptr: png_structp; true_bits: png_color_8p);
+ stdcall;
+ procedure png_set_sig_bytes(png_ptr: png_structp; num_bytes: int);
+ stdcall;
+ procedure png_set_strip_16(png_ptr: png_structp);
+ stdcall;
+ procedure png_set_strip_alpha(png_ptr: png_structp);
+ stdcall;
+ procedure png_set_swap(png_ptr: png_structp);
+ stdcall;
+ procedure png_set_swap_alpha(png_ptr: png_structp);
+ stdcall;
+ procedure png_set_tIME(png_ptr: png_structp; info_ptr: png_infop;
+ mod_time: png_timep);
+ stdcall;
+ procedure png_set_tRNS(png_ptr: png_structp; info_ptr: png_infop;
+ trans: png_bytep; num_trans: int;
+ trans_values: png_color_16p);
+ stdcall;
+ procedure png_set_tRNS_to_alpha(png_ptr: png_structp);
+ stdcall;
+ procedure png_set_text(png_ptr: png_structp; info_ptr: png_infop;
+ text_ptr: png_textp; num_text: int);
+ stdcall;
+ procedure png_set_write_fn(png_ptr: png_structp;
+ io_ptr: png_voidp; write_data_fn: png_rw_ptr;
+ output_flush_fn: png_flush_ptr);
+ stdcall;
+ procedure png_set_write_status_fn(png_ptr: png_structp;
+ write_row_fn: png_write_status_ptr);
+ stdcall;
+ procedure png_set_write_user_transform_fn(png_ptr: png_structp;
+ write_user_transform_fn: png_user_transform_ptr);
+ stdcall;
+ function png_sig_cmp(sig: png_bytep; start, num_to_check: png_size_t):
+ int;
+ stdcall;
+ procedure png_start_read_image(png_ptr: png_structp);
+ stdcall;
+ procedure png_write_chunk(png_ptr: png_structp;
+ chunk_name, data: png_bytep; length: png_size_t);
+ stdcall;
+ procedure png_write_chunk_data(png_ptr: png_structp;
+ data: png_bytep; length: png_size_t);
+ stdcall;
+ procedure png_write_chunk_end(png_ptr: png_structp);
+ stdcall;
+ procedure png_write_chunk_start(png_ptr: png_structp;
+ chunk_name: png_bytep; length: png_uint_32);
+ stdcall;
+ procedure png_write_end(png_ptr: png_structp; info_ptr: png_infop);
+ stdcall;
+ procedure png_write_flush(png_ptr: png_structp);
+ stdcall;
+ procedure png_write_image(png_ptr: png_structp; image: png_bytepp);
+ stdcall;
+ procedure png_write_info(png_ptr: png_structp; info_ptr: png_infop);
+ stdcall;
+ procedure png_write_info_before_PLTE(png_ptr: png_structp; info_ptr: png_infop);
+ stdcall;
+ procedure png_write_row(png_ptr: png_structp; row: png_bytep);
+ stdcall;
+ procedure png_write_rows(png_ptr: png_structp; row: png_bytepp;
+ num_rows: png_uint_32);
+ stdcall;
+ procedure png_get_iCCP(png_ptr: png_structp; info_ptr: png_infop;
+ name: png_charpp; compression_type: int *; profile: png_charpp;
+ proflen: png_int_32): png_bytep;
+ stdcall;
+ procedure png_get_sPLT(png_ptr: png_structp;
+ info_ptr: png_infop; entries: png_spalette_pp): png_uint_32;
+ stdcall;
+ procedure png_set_iCCP(png_ptr: png_structp; info_ptr: png_infop;
+ name: png_charp; compression_type: int; profile: png_charp;
+ proflen: int);
+ stdcall;
+ procedure png_free_data(png_ptr: png_structp; info_ptr: png_infop; num: int);
+ stdcall;
+ procedure png_set_sPLT(png_ptr: png_structp; info_ptr: png_infop;
+ entries: png_spalette_p; nentries: int);
+ stdcall;
+
+ implementation
+
+ const
+ pngDLL = 'png32bd.dll';
+
+ procedure png_build_grayscale_palette; external pngDLL;
+ function png_check_sig; external pngDLL;
+ procedure png_chunk_error; external pngDLL;
+ procedure png_chunk_warning; external pngDLL;
+ procedure png_convert_from_time_t; external pngDLL;
+ function png_convert_to_rfc1123; external pngDLL;
+ function png_create_info_struct; external pngDLL;
+ function png_create_read_struct; external pngDLL;
+ function png_create_write_struct; external pngDLL;
+ procedure png_destroy_info_struct; external pngDLL;
+ procedure png_destroy_read_struct; external pngDLL;
+ procedure png_destroy_write_struct; external pngDLL;
+ function png_get_IHDR; external pngDLL;
+ function png_get_PLTE; external pngDLL;
+ function png_get_bKGD; external pngDLL;
+ function png_get_bit_depth; external pngDLL;
+ function png_get_cHRM; external pngDLL;
+ function png_get_channels; external pngDLL;
+ function png_get_color_type; external pngDLL;
+ function png_get_compression_type; external pngDLL;
+ function png_get_error_ptr; external pngDLL;
+ function png_get_filter_type; external pngDLL;
+ function png_get_gAMA; external pngDLL;
+ function png_get_hIST; external pngDLL;
+ function png_get_image_height; external pngDLL;
+ function png_get_image_width; external pngDLL;
+ function png_get_interlace_type; external pngDLL;
+ function png_get_io_ptr; external pngDLL;
+ function png_get_oFFs; external pngDLL;
+ function png_get_pCAL; external pngDLL;
+ function png_get_pHYs; external pngDLL;
+ function png_get_pixel_aspect_ratio; external pngDLL;
+ function png_get_pixels_per_meter; external pngDLL;
+ function png_get_progressive_ptr; external pngDLL;
+ function png_get_rowbytes; external pngDLL;
+ function png_get_rows; external pngDLL;
+ function png_get_sBIT; external pngDLL;
+ function png_get_sRGB; external pngDLL;
+ function png_get_signature; external pngDLL;
+ function png_get_tIME; external pngDLL;
+ function png_get_tRNS; external pngDLL;
+ function png_get_text; external pngDLL;
+ function png_get_user_chunk_ptr; external pngDLL;
+ function png_get_valid; external pngDLL;
+ function png_get_x_offset_microns; external pngDLL;
+ function png_get_x_offset_pixels; external pngDLL;
+ function png_get_x_pixels_per_meter; external pngDLL;
+ function png_get_y_offset_microns; external pngDLL;
+ function png_get_y_offset_pixels; external pngDLL;
+ function png_get_y_pixels_per_meter; external pngDLL;
+ procedure png_process_data; external pngDLL;
+ procedure png_progressive_combine_row; external pngDLL;
+ procedure png_read_end; external pngDLL;
+ procedure png_read_image; external pngDLL;
+ procedure png_read_info; external pngDLL;
+ procedure png_read_row; external pngDLL;
+ procedure png_read_rows; external pngDLL;
+ procedure png_read_update_info; external pngDLL;
+ procedure png_set_IHDR; external pngDLL;
+ procedure png_set_PLTE; external pngDLL;
+ procedure png_set_bKGD; external pngDLL;
+ procedure png_set_background; external pngDLL;
+ procedure png_set_bgr; external pngDLL;
+ procedure png_set_cHRM; external pngDLL;
+ procedure png_set_cHRM_fixed; external pngDLL;
+ procedure png_set_compression_level; external pngDLL;
+ procedure png_set_compression_mem_level; external pngDLL;
+ procedure png_set_compression_method; external pngDLL;
+ procedure png_set_compression_strategy; external pngDLL;
+ procedure png_set_compression_window_bits; external pngDLL;
+ procedure png_set_crc_action; external pngDLL;
+ procedure png_set_dither; external pngDLL;
+ procedure png_set_error_fn; external pngDLL;
+ procedure png_set_expand; external pngDLL;
+ procedure png_set_filler; external pngDLL;
+ procedure png_set_filter; external pngDLL;
+ procedure png_set_filter_heuristics; external pngDLL;
+ procedure png_set_flush; external pngDLL;
+ procedure png_set_gAMA; external pngDLL;
+ procedure png_set_gAMA_fixed; external pngDLL;
+ procedure png_set_gamma; external pngDLL;
+ procedure png_set_gray_to_rgb; external pngDLL;
+ procedure png_set_hIST; external pngDLL;
+ function png_set_interlace_handling; external pngDLL;
+ procedure png_set_invert_alpha; external pngDLL;
+ procedure png_set_invert_mono; external pngDLL;
+ procedure png_set_oFFs; external pngDLL;
+ procedure png_set_pCAL; external pngDLL;
+ procedure png_set_pHYs; external pngDLL;
+ procedure png_set_packing; external pngDLL;
+ procedure png_set_packswap; external pngDLL;
+ procedure png_set_progressive_read_fn; external pngDLL;
+ procedure png_set_read_fn; external pngDLL;
+ procedure png_set_read_status_fn; external pngDLL;
+ procedure png_set_read_user_transform_fn; external pngDLL;
+ procedure png_set_rgb_to_gray; external pngDLL;
+ procedure png_set_rgb_to_gray_fixed; external pngDLL;
+ procedure png_set_rows; external pngDLL;
+ procedure png_set_sBIT; external pngDLL;
+ procedure png_set_sRGB; external pngDLL;
+ procedure png_set_sRGB_gAMA_and_cHRM; external pngDLL;
+ procedure png_set_shift; external pngDLL;
+ procedure png_set_sig_bytes; external pngDLL;
+ procedure png_set_strip_16; external pngDLL;
+ procedure png_set_strip_alpha; external pngDLL;
+ procedure png_set_swap; external pngDLL;
+ procedure png_set_swap_alpha; external pngDLL;
+ procedure png_set_tIME; external pngDLL;
+ procedure png_set_tRNS; external pngDLL;
+ procedure png_set_text; external pngDLL;
+ procedure png_set_user_chunk_fn; external pngDLL;
+ procedure png_set_write_fn; external pngDLL;
+ procedure png_set_write_status_fn; external pngDLL;
+ procedure png_set_write_user_transform_fn; external pngDLL;
+ function png_sig_cmp; external pngDLL;
+ procedure png_start_read_image; external pngDLL;
+ procedure png_write_chunk; external pngDLL;
+ procedure png_write_chunk_data; external pngDLL;
+ procedure png_write_chunk_end; external pngDLL;
+ procedure png_write_chunk_start; external pngDLL;
+ procedure png_write_end; external pngDLL;
+ procedure png_write_flush; external pngDLL;
+ procedure png_write_image; external pngDLL;
+ procedure png_write_info; external pngDLL;
+ procedure png_write_info_before_PLTE; external pngDLL;
+ procedure png_write_row; external pngDLL;
+ procedure png_write_rows; external pngDLL;
+ procedure png_get_iCCP; external pngDLL;
+ procedure png_get_sPLT; external pngDLL;
+ procedure png_set_iCCP; external pngDLL;
+ procedure png_set_sPLT; external pngDLL;
+ procedure png_free_data; external pngDLL;
+
+ end.
Index: llvm/runtime/libpng/scripts/pngos2.def
diff -c /dev/null llvm/runtime/libpng/scripts/pngos2.def:1.1.2.1
*** /dev/null Mon Mar 1 17:58:59 2004
--- llvm/runtime/libpng/scripts/pngos2.def Mon Mar 1 17:58:47 2004
***************
*** 0 ****
--- 1,241 ----
+ ;----------------------------------------
+ ; PNG.LIB module definition file for OS/2
+ ;----------------------------------------
+
+ ; Version 1.2.5
+
+ LIBRARY PNG
+ DESCRIPTION "PNG image compression library for OS/2"
+ CODE PRELOAD MOVEABLE DISCARDABLE
+ DATA PRELOAD MOVEABLE MULTIPLE
+
+ EXPORTS
+
+
+ png_build_grayscale_palette
+ png_check_sig
+ png_chunk_error
+ png_chunk_warning
+ png_convert_from_struct_tm
+ png_convert_from_time_t
+ png_create_info_struct
+ png_create_read_struct
+ png_create_write_struct
+ png_data_freer
+ png_destroy_info_struct
+ png_destroy_read_struct
+ png_destroy_write_struct
+ png_error
+ png_free
+ png_free_data
+ png_get_IHDR
+ png_get_PLTE
+ png_get_bKGD
+ png_get_bit_depth
+ png_get_cHRM
+ png_get_cHRM_fixed
+ png_get_channels
+ png_get_color_type
+ png_get_compression_buffer_size
+ png_get_compression_type
+ png_get_copyright
+ png_get_error_ptr
+ png_get_filter_type
+ png_get_gAMA
+ png_get_gAMA_fixed
+ png_get_hIST
+ png_get_header_ver
+ png_get_header_version
+ png_get_iCCP
+ png_get_image_height
+ png_get_image_width
+ png_get_interlace_type
+ png_get_io_ptr
+ png_get_libpng_ver
+ png_get_oFFs
+ png_get_pCAL
+ png_get_pHYs
+ png_get_pixel_aspect_ratio
+ png_get_pixels_per_meter
+ png_get_progressive_ptr
+ png_get_rgb_to_gray_status
+ png_get_rowbytes
+ png_get_rows
+ png_get_sBIT
+ png_get_sCAL
+ png_get_sPLT
+ png_get_sRGB
+ png_get_signature
+ png_get_tIME
+ png_get_tRNS
+ png_get_text
+ png_get_unknown_chunks
+ png_get_user_chunk_ptr
+ png_get_user_transform_ptr
+ png_get_valid
+ png_get_x_offset_microns
+ png_get_x_offset_pixels
+ png_get_x_pixels_per_meter
+ png_get_y_offset_microns
+ png_get_y_offset_pixels
+ png_get_y_pixels_per_meter
+ png_malloc
+ png_memcpy_check
+ png_memset_check
+ png_permit_empty_plte
+ png_process_data
+ png_progressive_combine_row
+ png_read_end
+ png_read_image
+ png_read_info
+ png_read_init ; deprecated
+ png_read_png
+ png_read_row
+ png_read_rows
+ png_read_update_info
+ png_reset_zstream
+ png_set_IHDR
+ png_set_PLTE
+ png_set_bKGD
+ png_set_background
+ png_set_bgr
+ png_set_cHRM
+ png_set_cHRM_fixed
+ png_set_compression_buffer_size
+ png_set_compression_level
+ png_set_compression_mem_level
+ png_set_compression_method
+ png_set_compression_strategy
+ png_set_compression_window_bits
+ png_set_crc_action
+ png_set_dither
+ png_set_error_fn
+ png_set_expand
+ png_set_filler
+ png_set_filter
+ png_set_filter_heuristics
+ png_set_flush
+ png_set_gAMA
+ png_set_gAMA_fixed
+ png_set_gamma
+ png_set_gray_1_2_4_to_8
+ png_set_gray_to_rgb
+ png_set_hIST
+ png_set_iCCP
+ png_set_interlace_handling
+ png_set_invert_alpha
+ png_set_invert_mono
+ png_set_keep_unknown_chunks
+ png_set_oFFs
+ png_set_pCAL
+ png_set_pHYs
+ png_set_packing
+ png_set_packswap
+ png_set_palette_to_rgb
+ png_set_progressive_read_fn
+ png_set_read_fn
+ png_set_read_status_fn
+ png_set_read_user_chunk_fn
+ png_set_read_user_transform_fn
+ png_set_rgb_to_gray
+ png_set_rgb_to_gray_fixed
+ png_set_rows
+ png_set_sBIT
+ png_set_sCAL
+ png_set_sPLT
+ png_set_sRGB
+ png_set_sRGB_gAMA_and_cHRM
+ png_set_shift
+ png_set_sig_bytes
+ png_set_strip_16
+ png_set_strip_alpha
+ png_set_swap
+ png_set_swap_alpha
+ png_set_tIME
+ png_set_tRNS
+ png_set_tRNS_to_alpha
+ png_set_text
+ png_set_unknown_chunk_location
+ png_set_unknown_chunks
+ png_set_user_transform_info
+ png_set_write_fn
+ png_set_write_status_fn
+ png_set_write_user_transform_fn
+ png_sig_cmp
+ png_start_read_image
+ png_warning
+ png_write_chunk
+ png_write_chunk_data
+ png_write_chunk_end
+ png_write_chunk_start
+ png_write_end
+ png_write_flush
+ png_write_image
+ png_write_info
+ png_write_info_before_PLTE
+ png_write_init ; deprecated
+ png_write_png
+ png_write_row
+ png_write_rows
+ png_read_init_2
+ png_write_init_2
+ png_access_version_number
+ png_init_io
+ png_convert_to_rfc1123
+ png_set_invalid
+
+ ; Added at version 1.2.0:
+ png_mmx_support
+ png_permit_empty_plte
+ png_permit_mng_features
+ png_get_mmx_flagmask
+ png_get_asm_flagmask
+ png_get_asm_flags
+ png_get_mmx_bitdepth_threshold
+ png_get_mmx_rowbytes_threshold
+ png_set_asm_flags
+ png_init_mmx_flags
+
+ ; Added at version 1.2.2:
+ png_handle_as_unknown
+
+ ; Added at version 1.2.2 and deleted from 1.2.3:
+ ; png_zalloc
+ ; png_zfree
+
+ ; Added at version 1.2.4
+ png_malloc_warn
+
+ ; These are not present when libpng is compiled with PNG_NO_GLOBAL_ARRAYS
+ png_libpng_ver
+ png_pass_start
+ png_pass_inc
+ png_pass_ystart
+ png_pass_yinc
+ png_pass_mask
+ png_pass_dsp_mask
+ ; png_pass_width
+ ; png_pass_height
+
+ ; These are not present when libpng is compiled with PNG_NO_GLOBAL_ARRAYS
+ png_IHDR
+ png_IDAT
+ png_IEND
+ png_PLTE
+ png_bKGD
+ png_cHRM
+ png_gAMA
+ png_hIST
+ png_iCCP
+ png_iTXt
+ png_oFFs
+ png_pCAL
+ png_pHYs
+ png_sBIT
+ png_sCAL
+ png_sPLT
+ png_sRGB
+ png_tEXt
+ png_tIME
+ png_tRNS
+ png_zTXt
Index: llvm/runtime/libpng/scripts/smakefile.ppc
diff -c /dev/null llvm/runtime/libpng/scripts/smakefile.ppc:1.1.2.1
*** /dev/null Mon Mar 1 17:58:59 2004
--- llvm/runtime/libpng/scripts/smakefile.ppc Mon Mar 1 17:58:47 2004
***************
*** 0 ****
--- 1,30 ----
+ # Amiga powerUP (TM) Makefile
+ # makefile for libpng and SAS C V6.58/7.00 PPC compiler
+ # Copyright (C) 1998 by Andreas R. Kleinert
+ # For conditions of distribution and use, see copyright notice in png.h
+
+ CC = scppc
+ CFLAGS = NOSTKCHK NOSINT OPTIMIZE OPTGO OPTPEEP OPTINLOCAL OPTINL IDIR /zlib \
+ OPTLOOP OPTRDEP=8 OPTDEP=8 OPTCOMP=8
+ LIBNAME = libpng.a
+ AR = ppc-amigaos-ar
+ AR_FLAGS = cr
+ RANLIB = ppc-amigaos-ranlib
+ LDFLAGS = -r -o
+ LDLIBS = ../zlib/libzip.a LIB:scppc.a
+ LN = ppc-amigaos-ld
+ RM = delete quiet
+ MKDIR = makedir
+
+ OBJS = png.o pngset.o pngget.o pngrutil.o pngtrans.o pngwutil.o pngread.o \
+ pngerror.o pngpread.o pngwrite.o pngrtran.o pngwtran.o pngrio.o pngwio.o pngmem.o
+
+ all: $(LIBNAME) pngtest
+
+ $(LIBNAME): $(OBJS)
+ $(AR) $(AR_FLAGS) $@ $(OBJS)
+ $(RANLIB) $@
+
+ pngtest: pngtest.o $(LIBNAME)
+ $(LN) $(LDFLAGS) pngtest LIB:c_ppc.o pngtest.o $(LIBNAME) $(LDLIBS) \
+ LIB:end.o
More information about the llvm-commits
mailing list