diff options
author | Glenn Randers-Pehrson <glennrp at users.sourceforge.net> | 1999-10-01 14:22:25 -0500 |
---|---|---|
committer | Glenn Randers-Pehrson <glennrp at users.sourceforge.net> | 2009-04-06 16:04:36 -0500 |
commit | bcfd15d9f2142d1e5d2a0e21a643ba9e70e953eb (patch) | |
tree | 5f9dd7f1ca6145f049934ebfbf7462ef09513d18 /scripts | |
parent | 54a066a8a9a40c91065a7941e877a0ba4ad20097 (diff) | |
download | libpng-bcfd15d9f2142d1e5d2a0e21a643ba9e70e953eb.tar.gz |
Imported from libpng-1.0.4c.tarv1.0.4c
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/makefile.beos | 4 | ||||
-rw-r--r-- | scripts/makefile.borland | 4 | ||||
-rw-r--r-- | scripts/makefile.dec | 2 | ||||
-rw-r--r-- | scripts/makefile.linux | 4 | ||||
-rw-r--r-- | scripts/makefile.msc | 2 | ||||
-rw-r--r-- | scripts/makefile.sco | 2 | ||||
-rw-r--r-- | scripts/makefile.solaris | 4 | ||||
-rw-r--r-- | scripts/makefile.turboc3 | 2 | ||||
-rw-r--r-- | scripts/makefile.vcawin32 (renamed from scripts/makefile.win32vc) | 10 | ||||
-rw-r--r-- | scripts/makefile.vcwin32 | 87 | ||||
-rw-r--r-- | scripts/makefile.watcom | 2 | ||||
-rw-r--r-- | scripts/pngdef.pas | 4 |
12 files changed, 111 insertions, 16 deletions
diff --git a/scripts/makefile.beos b/scripts/makefile.beos index bc7be4af3..0a8915133 100644 --- a/scripts/makefile.beos +++ b/scripts/makefile.beos @@ -1,5 +1,5 @@ # makefile for libpng on BeOS x86 ELF with gcc -# modified from makefile.lnx by Sander Stoks +# modified from makefile.linux by Sander Stoks # Copyright (C) 1996, 1997 Andreas Dilger # Copyright (C) 1999 Greg Roelofs # For conditions of distribution and use, see copyright notice in png.h @@ -31,7 +31,7 @@ RANLIB=ranlib # read libpng.txt or png.h to see why PNGMAJ is 2. You should not # have to change it. PNGMAJ = 2 -PNGMIN = 1.0.4 +PNGMIN = 1.0.4c PNGVER = $(PNGMAJ).$(PNGMIN) # where make install puts libpng.a, libpng.so*, and png.h diff --git a/scripts/makefile.borland b/scripts/makefile.borland index 57f374f60..2d3fe5b26 100644 --- a/scripts/makefile.borland +++ b/scripts/makefile.borland @@ -2,8 +2,8 @@ # Borland C++ 4.5 (Note: All modules are compiled in C mode) # Will work with C++ 4.02 also # To build the library, do: -# "make -fmakefile.bor -DMODEL=m" -# or: "make -fmakefile.bor -DMODEL=l" +# "make -fmakefile.borland -DMODEL=m" +# or: "make -fmakefile.borland -DMODEL=l" # # ------------- Borland C++ 4.5 ------------- diff --git a/scripts/makefile.dec b/scripts/makefile.dec index 6f252e45e..51403caa4 100644 --- a/scripts/makefile.dec +++ b/scripts/makefile.dec @@ -14,7 +14,7 @@ ZLIBINC=../zlib # read libpng.txt or png.h to see why PNGMAJ is 2. You should not # have to change it. PNGMAJ = 2 -PNGMIN = 1.0.4 +PNGMIN = 1.0.4c PNGVER = $(PNGMAJ).$(PNGMIN) CC=cc diff --git a/scripts/makefile.linux b/scripts/makefile.linux index 42012015c..c84b6cea9 100644 --- a/scripts/makefile.linux +++ b/scripts/makefile.linux @@ -22,6 +22,8 @@ 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 us it. + CFLAGS=-I$(ZLIBINC) -Wall -O3 -funroll-loops \ $(ALIGN) # $(WARNMORE) -g -DPNG_DEBUG=5 LDFLAGS=-L. -Wl,-rpath,. -L$(ZLIBLIB) -Wl,-rpath,$(ZLIBLIB) -lpng -lz -lm @@ -32,7 +34,7 @@ RANLIB=ranlib # read libpng.txt or png.h to see why PNGMAJ is 2. You should not # have to change it. PNGMAJ = 2 -PNGMIN = 1.0.4 +PNGMIN = 1.0.4c PNGVER = $(PNGMAJ).$(PNGMIN) INCPATH=$(prefix)/include diff --git a/scripts/makefile.msc b/scripts/makefile.msc index 6356218ae..96b2cfc62 100644 --- a/scripts/makefile.msc +++ b/scripts/makefile.msc @@ -3,7 +3,7 @@ # 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 ------------- +# -------- Microsoft C 5.1 and later, does not use assembler code ----- MODEL=-AL CFLAGS=-Oait -Gs -nologo -W3 $(MODEL) -I..\zlib #-Ox generates bad code with MSC 5.1 diff --git a/scripts/makefile.sco b/scripts/makefile.sco index 9eee4a2d5..1e5100449 100644 --- a/scripts/makefile.sco +++ b/scripts/makefile.sco @@ -25,7 +25,7 @@ RANLIB=echo # read libpng.txt or png.h to see why PNGMAJ is 2. You should not # have to change it. PNGMAJ = 2 -PNGMIN = 1.0.4 +PNGMIN = 1.0.4c PNGVER = $(PNGMAJ).$(PNGMIN) INCPATH=$(prefix)/include diff --git a/scripts/makefile.solaris b/scripts/makefile.solaris index 5f3a412c9..fcc307800 100644 --- a/scripts/makefile.solaris +++ b/scripts/makefile.solaris @@ -1,5 +1,5 @@ # makefile for libpng on Solaris 2.x with gcc -# Contributed by William L. Sebok, based on makefile.lnx +# Contributed by William L. Sebok, based on makefile.linux # Copyright (C) 1996, 1997 Andreas Dilger # Copyright (C) 1998 Greg Roelofs # For conditions of distribution and use, see copyright notice in png.h @@ -36,7 +36,7 @@ RANLIB=echo # read libpng.txt or png.h to see why PNGMAJ is 2. You should not # have to change it. PNGMAJ = 2 -PNGMIN = 1.0.4 +PNGMIN = 1.0.4c PNGVER = $(PNGMAJ).$(PNGMIN) INCPATH=$(prefix)/include diff --git a/scripts/makefile.turboc3 b/scripts/makefile.turboc3 index c925831d4..f9a2269d2 100644 --- a/scripts/makefile.turboc3 +++ b/scripts/makefile.turboc3 @@ -1,7 +1,7 @@ # Makefile for libpng # TurboC++ 3.0 (Note: All modules are compiled in C mode) -# To use, do "make -fmakefile.tc3" +# To use, do "make -fmakefile.turboc3" # ------------- Turbo C++ 3.0 ------------- MODEL=-ml diff --git a/scripts/makefile.win32vc b/scripts/makefile.vcawin32 index 52934c34a..be7fcc8a2 100644 --- a/scripts/makefile.win32vc +++ b/scripts/makefile.vcawin32 @@ -2,9 +2,15 @@ # 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.w32" +# 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. -# ------------- Microsoft Visual C++ 4.0 and later ------------- MODEL=- CFLAGS=-DPNG_USE_PNGVCRD -Ox -GA3s -nologo -W3 -I..\zlib diff --git a/scripts/makefile.vcwin32 b/scripts/makefile.vcwin32 new file mode 100644 index 000000000..5b62fc316 --- /dev/null +++ b/scripts/makefile.vcwin32 @@ -0,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. + +MODEL=- +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 pngasmrd.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 /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 + diff --git a/scripts/makefile.watcom b/scripts/makefile.watcom index a7d99c224..e14f162ac 100644 --- a/scripts/makefile.watcom +++ b/scripts/makefile.watcom @@ -5,7 +5,7 @@ # 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 "wmake /f scripts\makefile.wat" +# To use, do "wmake /f scripts\makefile.watcom" # ------------- Watcom 10.0 and later ------------- MODEL=-mf diff --git a/scripts/pngdef.pas b/scripts/pngdef.pas index 94e859acf..1441808a1 100644 --- a/scripts/pngdef.pas +++ b/scripts/pngdef.pas @@ -3,8 +3,8 @@ unit pngdef; interface const - PNG_LIBPNG_VER_STRING = '1.0.4'; - PNG_LIBPNG_VER = 10004; + PNG_LIBPNG_VER_STRING = '1.0.4c'; + PNG_LIBPNG_VER = 10005; type png_uint_32 = Cardinal; |