-# makefile for libpng using gcc (generic, static library)
-# Copyright (C) 2008 Glenn Randers-Pehrson
-# Copyright (C) 2000 Cosmin Truta
-# Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc.
-# For conditions of distribution and use, see copyright notice in png.h
-
-# Location of the zlib library and include files
-ZLIBINC = ../zlib
-ZLIBLIB = ../zlib
-
-# Compiler, linker, lib and other tools
-CC = gcc
-LD = $(CC)
-AR_RC = ar rcs
-RANLIB = ranlib
-RM_F = rm -f
-
-CDEBUG = -g -DPNG_DEBUG=5
-LDDEBUG =
-CRELEASE = -O2
-LDRELEASE = -s
-#CFLAGS = -W -Wall $(CDEBUG)
-CFLAGS = -W -Wall $(CRELEASE)
-#LDFLAGS = $(LDDEBUG)
-LDFLAGS = $(LDRELEASE)
-LIBS = -lz -lm
-
-# File extensions
-O=.o
-A=.a
-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)
-
-# Targets
-all: static
-
-.c$(O):
- $(CC) -c $(CFLAGS) -I$(ZLIBINC) $<
-
-static: libpng$(A) pngtest$(EXE)
-
-shared:
- @echo This is a generic makefile that cannot create shared libraries.
- @echo Please use a configuration that is specific to your platform.
- @false
-
-libpng$(A): $(OBJS)
- $(AR_RC) $@ $(OBJS)
- $(RANLIB) $@
-
-test: pngtest$(EXE)
- ./pngtest$(EXE)
-
-pngtest$(EXE): pngtest$(O) libpng$(A)
- $(LD) $(LDFLAGS) -L$(ZLIBLIB) -o $@ pngtest$(O) libpng$(A) $(LIBS)
-
-clean:
- $(RM_F) *$(O) libpng$(A) pngtest$(EXE) 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
-
+# makefile for libpng using gcc (generic, static library)\r
+# Copyright (C) 2008 Glenn Randers-Pehrson\r
+# Copyright (C) 2000 Cosmin Truta\r
+# Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc.\r
+#\r
+# This code is released under the libpng license.\r
+# For conditions of distribution and use, see the disclaimer\r
+# and license in png.h\r
+\r
+# Location of the zlib library and include files\r
+ZLIBINC = ../zlib\r
+ZLIBLIB = ../zlib\r
+\r
+# Compiler, linker, lib and other tools\r
+CC = gcc\r
+LD = $(CC)\r
+AR_RC = ar rcs\r
+RANLIB = ranlib\r
+RM_F = rm -f\r
+\r
+CDEBUG = -g -DPNG_DEBUG=5\r
+LDDEBUG =\r
+CRELEASE = -O2\r
+LDRELEASE = -s\r
+#CFLAGS = -W -Wall $(CDEBUG)\r
+CFLAGS = -W -Wall $(CRELEASE)\r
+#LDFLAGS = $(LDDEBUG)\r
+LDFLAGS = $(LDRELEASE)\r
+LIBS = -lz -lm\r
+\r
+# File extensions\r
+O=.o\r
+A=.a\r
+EXE=\r
+\r
+# Variables\r
+OBJS = png$(O) pngerror$(O) pngget$(O) pngmem$(O) pngpread$(O) \\r
+ pngread$(O) pngrio$(O) pngrtran$(O) pngrutil$(O) pngset$(O) \\r
+ pngtrans$(O) pngwio$(O) pngwrite$(O) pngwtran$(O) pngwutil$(O)\r
+\r
+# Targets\r
+all: static\r
+\r
+# see scripts/pnglibconf.mak for more options\r
+pnglibconf.h: scripts/pnglibconf.h.prebuilt\r
+ cp scripts/pnglibconf.h.prebuilt $@\r
+\r
+.c$(O):\r
+ $(CC) -c $(CFLAGS) -I$(ZLIBINC) $<\r
+\r
+static: libpng$(A) pngtest$(EXE)\r
+\r
+shared:\r
+ @echo This is a generic makefile that cannot create shared libraries.\r
+ @echo Please use a configuration that is specific to your platform.\r
+ @false\r
+\r
+libpng$(A): $(OBJS)\r
+ $(AR_RC) $@ $(OBJS)\r
+ $(RANLIB) $@\r
+\r
+test: pngtest$(EXE)\r
+ ./pngtest$(EXE)\r
+\r
+pngtest$(EXE): pngtest$(O) libpng$(A)\r
+ $(LD) $(LDFLAGS) -L$(ZLIBLIB) -o $@ pngtest$(O) libpng$(A) $(LIBS)\r
+\r
+clean:\r
+ $(RM_F) *$(O) libpng$(A) pngtest$(EXE) pngout.png pnglibconf.h\r
+\r
+png$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h\r
+pngerror$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h\r
+pngget$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h\r
+pngmem$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h\r
+pngpread$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h\r
+pngread$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h\r
+pngrio$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h\r
+pngrtran$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h\r
+pngrutil$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h\r
+pngset$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h\r
+pngtrans$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h\r
+pngwio$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h\r
+pngwrite$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h\r
+pngwtran$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h\r
+pngwutil$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h\r
+\r
+pngtest$(O): png.h pngconf.h pnglibconf.h\r